环境及异常信息说明 环境说明: Win2008 R2 企业版 x64 .IIS 7.0 功能说明:服务端操作Excel,(上传Excel到服务器,并在服务器端读取Excel中的数据) 异常信息:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问. (Excep…
异常信息:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). 由于用户没有操作excel的权限,需要通过如下操作对 Microsoft Excel…
最近,把一个网站部署到另一个服务器上,网站中一个功能word转pdf报下面错误: 在此附上解决方案: 方法1:配置Web.Config文件,在每次请求时模拟本地系统的账户. 具体操作:在Web.Config文件中添加如下节点:    <identity impersonate="true" userName="accountname" password="password" />    其中:userName是要模拟的本地账号,pas…
这几天在写一个导出word的功能,使用 Microsoft.Vbe.Interop.dll和Office.dll 在本地都可以正常运行,但是上传到服务器后就报错,如下图: 对于此问题,也在网上查了一些资料,原因就是 这个服务组件的权限问题. 在服务器上,首先需要安装OFFICE软件 1,运行dcomcnfg打开组件服务 2,依次展开"组件服务"->"计算机"->"我的电脑"->"DCOM配置" 3,找到&qu…
环境说明: Win2008 R2(中文版) x64 .IIS 7.0 功能说明:上传Excel到服务器,并在服务器端读取Excel中的数据: 异常信息:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 拒绝访问. (Exception from HRESULT: 0x…
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. 1:在“组件服务”中 依次找到 "组件服务"->"计算机"->"我的电脑"->"DCOM配置".运行"中输入dcomc…
异常:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. 解决方法:服务器上:“控制面板”——“管理工具”——“组件服务”——“我的电脑”——“DCOM配置”——“Microsoft Excel Application”——右击“属性”——“启用和激活权限”选择“自定…
在系统中需要把数据导出到excel并且压缩,然后报了这个问题: 我在网站上找到了方法: 地址:https://social.msdn.microsoft.com/Forums/vstudio/en-US/2f923b6d-aebb-42ff-804d-21a3763d491b/com-class-factory-error-8000401a?forum=csharpgeneral Hi Varun, It should be the permissions problem.Please have…
1. Exeption Error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} failed due to the following error: 80040154. solution: It means the class id…
异常信息如下 捕获到执行这句时异常: Excel.Application ep = new Excel.ApplicationClass(); Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a. 解决: com组件中修改如下…