System.UnauthorizedAccessException: Retrieving the COM class factory for Word Interop fails with error 80070005

后端 未结 10 1206
无人及你
无人及你 2020-11-27 16:01

I have a problem with a C# ASP .NET project in Visual Studio 2008 This problem started when I reinstalled my computer with Windows 7 Ultimate (x64). To this I\'m also using

10条回答
  •  日久生厌
    2020-11-27 16:43

    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)
    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".

提交回复
热议问题