我在Visual Studio 2008中遇到了C#ASP .NET項目的問題 當我用Windows 7旗艦版(x64)重新安裝我的電腦時, 。爲了這個我還使用Office 2007的System.UnauthorizedAccessException:爲Word Interop檢索COM類工廠失敗,錯誤80070005
我得到的錯誤信息是:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. at xxx.Utility.WordDocument..ctor(String filePath, HttpServerUtility util) at customer_communication.BuCreate_click(Object sender, EventArgs e) in c:\xxx\Website\customer\communication.aspx.cs:line 127
也許您應該向我們展示'c:\ xxx \ Website \ customer \ communication.aspx.cs'文件的內容,以便我們可以瞭解您要做什麼。 – Joren
COM Guid在谷歌上回復了很多關於Microsoft Office的引用,特別是版本2003.我認爲這是沒有安裝2003的互操作組件的直接結果? – Gregory
史詩題目!我喜歡它:D –