2016-01-11 52 views
0

我真的很煩,請幫幫我。 我按照這篇文章 http://www.codeproject.com/Tips/742895/Upload-Any-File-txt-doc-docx-xls-xlsx-ppt-pptx-rtf在asp.net中將ppt轉換爲幻燈片時發生錯誤

我已經創建了一個系統樣本項目PPT轉換成幻燈片和其工作正常,但用我的我的辦公室的開發機有一個問題來了,我不能解決這個問題

Microsoft.Office.Interop.PowerPoint.Application ppApp = new Microsoft.Office.Interop.PowerPoint.Application(); 

雖然來這條線就表現出了錯誤

Additional information: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

我與其中安裝了Office另一個系統檢查,另一個錯誤來

Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

請幫幫我。

+0

您應該安裝PowerPoint。你有嗎? –

回答

0

這聽起來像是一個框架或平臺問題。

嘗試:

項目 - >屬性 - >生成選項卡 ​​- >更改平臺目標,以86(或任何你還沒有被使用至今)。

+0

嗨我也試過這個。但是這不起作用,我也改爲32位調試,但同樣的問題。 –