The win2003 server USES WPS's COM component for some problem solving

  • 2020-05-12 02:18:23
  • OfStack

Since the COM component can only be used on windows, the program must be run on windows's server. There was no problem in building and installing the local xp system, but when installing it on the server win2003, I encountered N problems, which were finally solved by students of gump, which took no less than 10 hours.

After installing the latest version of Wps office personal edition, version 12012, it is supposed to be finished, but the running program reports the following errors on the server:

Fatal error: Uncaught exception exception 'exception' with message 'Failed to COM object 'WPS' Application': access denied. 'in D:\www\ 9enjoy.com \ hx.php: #0 D:\www\ 9enjoy.com (12): com- > com('WPS.Application') #1 {main} thrown in D:\www\9enjoy.com\hx.php on line 12

Is to run this sentence on $wps = new COM(" WPS.Application "); An error. After 1 search, configuration was done in DCOM configuration to solve this prompt.

1. Open the control panel -- management tools -- component services

2. In the component services panel, open the console root directory - component services - computer - my computer - DCOM configuration

3. Find Kingsoft Writer Application Class (kingsoft's document application service), open the properties window and switch to the security label. Select "enable and activate permissions" to customize, edit, and add everyone permissions. "Access rights" is also treated like 1.

This error is passed, run to $doc = $wps- > Documents- > Open ($src_filename); The error occurred again

Fatal error: Uncaught exception com_exception' with message 'Error [0x800706be] remote procedure call failed. 'in D:\www :\ Wpsjoy.com \ hx.php: #0 D:\ com\ hx.php (15): variant- > Open('d:\www\9enjoy.com...') #1 {main} thrown in D:\www\9enjoy.com\hx.php on line 15

In the "identify" TAB, change the launch user to an interactive user, and another error appears:

Fatal error: Uncaught com_exception with Failed COM object WPS. Application': the system could not start the server process because of the incorrect configuration type. Please check the username and password. 'in D:\www\ 9enjoy. com\ hx. php: #0 D:\ com\ 9hx. php(15): com- > com('WPS.Application') #1 {main} thrown in D:\www\9enjoy.com\hx.php on line 15

Repeated attempts failed, including reinstalling WPS.

After the "logo" label, use the specified user to run, first use the website with the user to run, but not through. Then use the administrator account to run, click ok will also pop up error messages. Neither of these options (start user and specify user) will enable the com component. If you use an interactive user, it is ok to tell the user name and password are incorrect :(

After the test sometimes appear a long run, 1 straight no error... The following errors occurred:
Fatal error: Uncaught com exception message Failed create WPS The server failed to run 'in D:\ enjoy. com\ hx. php: #0 D:\www\ 9enjoy. com\ hx. php(30): com- > com('WPS.Application') #1 {main} thrown in D:\www\9enjoy.com\hx.php on line 30

It was also found during the execution to $wps- > Documents- > Open stops, and one wps or wpsupdate process appears in the process, one for every refresh. At most 1 time found more than 30 such processes, sometimes also affect the program, need to manually 1 1 to delete.

Finally, using a very BT practice, the site's IIS authentication method using administrator administrator account to run, surprisingly good! .

Related articles: