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

前端 未结 2 488
深忆病人
深忆病人 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.

提交回复
热议问题