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

后端 未结 6 1894
刺人心
刺人心 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条回答
  •  猫巷女王i
    2020-11-27 14:07

    If you cannot find Microsoft Word Application in DCOM

    On 64 bit system with 32 bit Office try this:

    1. List item
    2. Start
    3. Run
    4. mmc-32
    5. File
    6. Add Remove Snap-in
    7. Component Services
    8. Add
    9. OK
    10. Console Root
    11. Component Services
    12. Computers
    13. My Computer
    14. DCOM Config

    after that

    1. Find "Microsoft Word 97 - 2003 Document" (If it is missing check if your Word is also 64 bit (if your Windows is))
    2. Right click -> Properties
    3. Go To Tab Security and Edit the "Customize" radio buttons so that IIS_IUSRS could have rights for launch and access
    4. Go to Tab Identity and choose "The interactive user" Apply changes and try again
    5. If all this fails, go also to tab "General" and in "Authentication Level" drop down choose "None".

提交回复
热议问题