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

后端 未结 6 1885
刺人心
刺人心 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:51

    This worked for me:

    1. In the command line put DCOMCNFG
    2. Component Services -> Computers -> My Computer -> DCOM Config
    3. Find "Microsoft Word 97 - 2003 Document" (If it is missing check if your Word is also 64 bit (if your Windows is) if it is not run mmc comexp.msc /32 instead of DCOMCNFG on step 1 as suggested by Darkseal here)
    4. Right click -> Properties
    5. Go To Tab Security and Edit the "Customize" radio buttons so that IIS_IUSRS could have rights for launch and access
    6. Go to Tab Identity and choose "The interactive user"
    7. Apply changes and try again
    8. If all this fails, go also to tab "General" and in "Authentication Level" drop down choose "None".

提交回复
热议问题