Accessing Office Word object model through asp.net results in “failed due to the following error: 80070005 Access is denied.”

后端 未结 6 1884
刺人心
刺人心 2020-11-27 13:13

I have developed a website that allows users to upload office documents then uses the office object model to convert the document to an HTML file that it then displays in an

6条回答
  •  一整个雨季
    2020-11-27 13:49

    Ok, I resolved this problem with this steps:

    1. In the command line put DCOMCNFG
    2. Expand Console Root > Component Service > Computers, right-click on My Computer, And Select Properties
    3. In the Tab COM Security > Launch and Activation Permissions Click in Edit Default
    4. Add the User (Ex. IIS_IUSRS) or service
    5. Check Allow Local Launch and Local Activation

    Then Excel, Word and other applications can work, good luck.

提交回复
热议问题