Microsoft.Office.Interop.Excel.Application() Access denied After Publish

China☆狼群 提交于 2020-03-06 04:21:08

问题


Exception: 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)).

I am trying to generate excel file and it is working fine on debugging on visual studio 2015 but as we publish it and run through IIS its start giving this exception...

tried run -> mmc -32 -> component services –> Computers –> My Computer –> DCOM Config and configuration as per many solutions ..

xlApp = new Microsoft.Office.Interop.Excel.Application();

we get exception on this line ... please help ..

来源:https://stackoverflow.com/questions/42247471/microsoft-office-interop-excel-application-access-denied-after-publish

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!