Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046}

前端 未结 2 470
深忆病人
深忆病人 2021-01-20 00:16

i use Windows XP_SP_3 and IIS 5 (local host), build site with asp.net4 and use this code:

Application appClass = new Application();
Document wordDoc = appClas         


        
相关标签:
2条回答
  • 2021-01-20 00:37
    1. Goto Control panel -> Administrative Tools -> Component Services
    2. Expand Tree by clicking on Component Services -> Computers -> My Computer -> DCOM Config
    3. Search CLSId 00020906-0000-0000-C000-000000000046 (which is for word application) Note: If Search CLSId not finds then search by "Windows Word Application".
    4. By selecting 00020906-0000-0000-C000-000000000046 this CLSId now right click on Properties
    5. In the Propeties area, click on Security TAB.
    6. Select Customize option from all (Launch and Activations Permissions, Access Pemissions, Configuration Permissions).
    7. Add new name as NETWORK SERVICE in all, and Allow all permissions for this name.
    8. Go to Identity TAB in the same properties area, select option as a This user and then add username (which is administrator of this machine) and password. Click on Apply, Ok.
    9. Refresh Component Services and check your application is working fine or not.
    0 讨论(0)
  • 2021-01-20 01:00

    Start Internet Information Services (IIS). Right-click your application's virtual directory, and then click Properties. Click the Directory Security tab. Under Anonymous access and authentication control, click Edit. Make sure the Anonymous access check box is not selected and that Integrated Windows authentication is the only selected check box. Configure ASP.NET to use Windows authentication with impersonation, use the following configuration

    ...
    <authentication mode="Windows"/>
    <identity impersonate="true"/>
    ...
    

    0 讨论(0)
提交回复
热议问题