System.Runtime.InteropServices.COMException

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {79A2867E-EA02-4683-8199-ED426387BA05} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

今天使用COM interop的时候,碰到了下面这个错误,研究了很久。在浏览下面这个网页的时候,找到了解决方案。

http://stackoverflow.com/questions/4663994/system-runtime-interopservices-comexception-0x80040154

在IIS7的Application Pools中,选中对应的应用程序池 -> Advanced Settings... -> Set the value of "Enable 32-Bit Applications" to True.

时间: 2024-08-06 11:29:51

System.Runtime.InteropServices.COMException的相关文章

System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESU

错误信息: System.Runtime.InteropServices.COMException (0x8004E00F): COM+ 无法与 Microsoft 分布式事务协调程序交谈 (异常来自 HRESULT:0x8004E00F) 解决方案: 1.删除注册表中的键:     HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSDTC HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSDTC HKEY

System.Runtime.InteropServices.COMException (0x800A03EC): 无法访问文件

使用Microsoft.Office.Interop.Excel 操作 今天在服务器部署,操作程序csv文件转xsl文件的时候,遇到一下问题: System.Runtime.InteropServices.COMException (0x800A03EC): 无法访问文件.请尝试下列方法之一: • 确认所指定的文件夹已存在. • 确认文件所在的文件夹不是只读的.• 确认给出的文件名不包含下列字符: < > ? [ ] : | 或 * .• 确认文件/路径名长度不超过 218 个字符.在 Mic

arcgis二次开发遇到System.Runtime.InteropServices.COMException (0x80040228) :异常来自HRESULT:0x80040228

出现此问题只需要在控件上拖入一个LicenseControl就可以了 参考资料:http://yaogu.blog.163.com/blog/static/1849990662012101283256465/

System.Runtime.InteropServices.COMException:“服务器出现意外情况。 (异常来自

.Net MVC导出Excel的时候,一直报错,如题.原因是因为福昕阅读器,这样设置 execl->点击文件>选项>加载项,选择com加载项,把祈福阅读器勾掉. 原文地址:https://www.cnblogs.com/yunquan/p/8674915.html

System.Runtime.InteropServices

http://www.readnovel.com/novel/52620/4908.htmlhttp://www.readnovel.com/novel/52620/4909.htmlhttp://www.readnovel.com/novel/52620/4910.htmlhttp://www.readnovel.com/novel/52620/4911.htmlhttp://www.readnovel.com/novel/52620/4912.htmlhttp://www.readnovel

project处理 InteropServices.COMException 异常

project文件无法上传,在上传中的hangfire出现了这个异常 System.Runtime.InteropServices.COMException 这个是因为website的权限是IUser,而DCOM的权限是admin,admin可以操作DCom,但是IUser不可以,所以吧website的权限提升为admin的权限就可以了,但是可能会存在安全隐患的问题 原文地址:https://www.cnblogs.com/weloveshare/p/8405980.html

System.Runtime.Serialization.cs

ylbtech-System.Runtime.Serialization.cs 允许对象控制其自己的序列化和反序列化过程. 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\msco

System.Runtime.Serialezation.StreamingContext.cs

ylbtech-System.Runtime.Serialezation.StreamingContext.cs 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\mscorli

System.Runtime.Serialezation.SerialezationInfo.cs

ylbtech-System.Runtime.Serialezation.SerialezationInfo.cs 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\mscorl