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

后端 未结 10 1189
无人及你
无人及你 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:55

    I test all above methods that also marked as answer but in windows server when user is not active or logoff, get access exception. so:

    1. I created a user on local computer and add it to two group: IIS_USER and Administrator
    2. Component Services -> Computers -> My Computer -> DCOM Config
    3. In com+ object i change to run Microsoft Word 97 – 2003 Document component with this user. See it here
    4. also add IIS_USER and also Application-identity user (IIS APPPool\[Name]) to all three section on security section and make the full permission as possible. See it here

    office will run with settings from user that you create in first step, so if you change any setting with this user. 120% Working with no problem. tried over 3 different server.

提交回复
热议问题