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

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

    This one was sticky for me to figure out, maybe my Windows mojo skills are just sub-par. But I could not get Component Services to run in 32 bit mode on Windows Server 2008. Hopefully this can help someone else with the same problem:

    1. Run Component Services by either method previously mentioned (Run box or Administrative Tools); close this program
    2. Paste "C:\Windows\System32\mmc.exe" /32 into the Run box and hit Enter (verify in Task Manager that you see mmc.exe *32)
    3. Go to File and you should see comexp.msc in the list (because of step 1), select it and it'll open Component Services in your 32 bit mode MMC console.

    EDIT: just for completeness sake, in order to get Word Interop working on Windows Server 2008 I also had to create the Desktop folder as outlined in this answer.

提交回复
热议问题