Win2003 Server uses WPS COM components for some problem solving methods _php Tutorial

Source: Internet
Author: User
Tags stack trace
Because COM components can only be used on Windows, programs must be running on Windows servers. Install on the local XP system without any problems, installed on the server Win2003, encountered n problems, and finally Gump classmate shot to solve, a full toss of not less than 10 hours to fix.

After installing the latest 12012 version of the WPS Office Personal Edition, it was supposed to be done, but the running program reported the error on the server as follows:

Fatal error:uncaught exception ' com_exception ' with the 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 on line 12

is to run this sentence on $wps = new COM ("WPS". Application "); error. After a search, the DCOM configuration was configured to resolve this hint.

1. Open Control Panel-Administrative Tools-Component Services

2. Open the console root in the Component Services panel-Component Services-computers-My Computer-DCOM config

3, find Kingsoft Writer application Class (Jinshan Document Application Service), open the Properties window, switch to the Security tab. Select "Launch and Activation Permissions" to customize, edit, and add the Everyone permission. "Access rights" is also handled as well.

This error message is passed, run to $doc = $wps->documents->open ($src _filename); Error occurs 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 on line 15

On the Identity tab, change the startup user to an interactive user, and another error message appears:

Fatal error:uncaught exception ' com_exception ' with the message ' Failed to create COM object ' WPS. Application ': The system cannot 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 on line 15

Try again, not all, including re-install WPS.

After the "Identification" label, run with the specified user, first use the site with the user run, not pass. Then use the Administrator account to run, click OK will also pop up error message. It should be that both options (both the startup user and the specified user) cannot start up this COM component. If you use an interactive user, it is possible to prompt the user name and password is incorrect: (

After the test sometimes appear long time running, has not been error ... The following error has occurred:
Fatal error:uncaught exception ' com_exception ' with the 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 on line 30

Also found during the execution to $wps->documents->open, a WPS or wpsupdate process occurs in the process, one at a time each refresh occurs. At most one time, more than 30 of these processes are found, sometimes affecting the program, and need to be deleted manually.

Finally, the use of a very BT approach, the site's IIS authentication method using the Administrator administrator account to run, incredibly well!

http://www.bkjia.com/PHPjc/324946.html www.bkjia.com true http://www.bkjia.com/PHPjc/324946.html techarticle Because COM components can only be used on Windows, programs must be running on Windows servers. Install on the local XP system without any problems, install on the server Win2003, encounter ...

  • 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.