我的.net web應用程序有一個上傳excel文件的選項,該文件有大約1k條產品,當我在localhost上運行應用程序時,上傳工作正常,但在下面的錯誤結果,當它託管在IIS7 &由網絡上其它一些計算機訪問..在c#.net web應用程序中上傳excel文件導致出錯
錯誤
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
我googld它,並發現了一些談論的32位或64位操作系統。
謝謝。
似乎是權限問題.. – Pranav 2013-03-13 07:27:55
@Pranav是否有任何可以完成 – Nikhar 2013-03-13 07:46:55
嘗試給予DefaultAppPool的許可......查看此鏈接: - http://www.iis.net/learn/manage/配置安全/應用程序池身份 – Pranav 2013-03-13 08:00:43