Win2003 Server uses WPS's COM component some problem-solving methods _php Tips

Source: Internet
Author: User
Tags stack trace
Because a COM component can only be used on Windows, the program must be run on a Windows server. In the local XP system installed on the installation of no problems, installed on the server Win2003, encountered n a problem, finally, or Gump classmate shot to solve, a full toss of not less than 10 hours to finish.

After installing the latest 12012 version of the WPS Office Personal Edition, it is logically finished, but the running program reported errors on the server as follows:

Fatal error:uncaught exception ' com_exception ' with message ' Failed to create COM object ' WPS. Application ': Access denied. ' In D:\www\9enjoy.com\hx.php:12 Stack trace: #0 D:\www\9enjoy.com\hx.php: com->com (' WPS. Application ') #1 {main} thrown in D:\www\9enjoy.com\hx.php to line 12

is to run this sentence on $wps = new COM ("WPS.") Application "); After a search, in the DCOM configuration has been configured to solve this hint.

1, open Control Panel-management tools-Component Services

2. In the Component Services panel, turn on Console Root-Component Services-computer-My Computer-DCOM configuration

3, find Kingsoft Writer application Class (Jinshan Document application services), open the Properties window, switch to the security label. Select Custom, edit, and add everyone permissions to start and activate permissions. The same is the case with access rights.

This error message is passed, run to $doc = $wps->documents->open ($src _filename); Error occurred again

Fatal error:uncaught exception ' com_exception ' with message ' ERROR [0X800706BE] Remote procedure call failed. ' In D:\www\9enjoy.com\hx.php:15 Stack trace: #0 D:\www\9enjoy.com\hx.php: Variant->open (' d:\www\9enjoy.com ... ') #1 {main} thrown in D:\www\9enjoy.com\hx.php to line 15

In the Identity tab, the startup user is changed to an interactive user, and another error message appears:

Fatal error:uncaught exception ' com_exception ' with message ' Failed to create COM object ' WPS. Application ': The system could not start the server process because the configuration type is incorrect. Please check the user name and password. ' In D:\www\9enjoy.com\hx.php:15 Stack trace: #0 D:\www\9enjoy.com\hx.php: com->com (' WPS. Application ') #1 {main} thrown in D:\www\9enjoy.com\hx.php to line 15

Try again and again, not all, including reloading WPS.

After the "Logo" tab, use the specified user to run, first use the site with the user to run, pass. Then use the Administrator account to run, click OK will also pop-up error message. It should be that both options (startup user and specified user) are not able to start this COM component. If you are using an interactive user, it is OK to prompt the username and password incorrectly: (

After the test sometimes a long time to run, has not been an error ... The following error has occurred:
Fatal error:uncaught exception ' com_exception ' with message ' Failed to create COM object ' WPS. Application ': Server Run failed ' in d:\www\9enjoy.com\hx.php:30 Stack trace: #0 D:\www\9enjoy.com\hx.php: com->com (' WPS. Application ') #1 {main} thrown in D:\www\9enjoy.com\hx.php to line 30

The period also found that, because the execution to $wps->documents->open stopped, will appear in the process of a WPS or wpsupdate process, each refresh occurs one at a time. At most one discovery has more than 30 such processes, and sometimes affect the program, need to manually delete one by one.

Finally, the use of a very BT approach, the site IIS authentication method to use administrator account to run, incredibly good!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.