The Issue When openning an existing ASP.NET project for the first time in Visual Studio 2008 it returns the error “System.Runtime.InteropServices.COMException” without any HRESULT code. The problem I experienced was specificly on a Windows 7 machine,…
更新至服务器后运行出错: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472 解决方法 注册excel 组件,运行命令:excel.exe /regserver…
提示“操作失败:无法获取MAC地址.”错误的解决方法. .NET 获取 MAC地址可能会遇到   System.Runtime.InteropServices.COMException (0x800706BA)   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)   at System.Management.ManagementObje…
在VS2008环境中编译调试运行不报错,但在发布的exe文件运行就报错 System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)),不得其解. See the end of this message for details on invoking just-in-time (JIT) de…
使用Microsoft.Office.Interop.Excel 操作 今天在服务器部署,操作程序csv文件转xsl文件的时候,遇到一下问题: System.Runtime.InteropServices.COMException (0x800A03EC): 无法访问文件.请尝试下列方法之一: • 确认所指定的文件夹已存在. • 确认文件所在的文件夹不是只读的.• 确认给出的文件名不包含下列字符: < > ? [ ] : | 或 * .• 确认文件/路径名长度不超过 218 个字符.在 Mic…
iis7.5中设定应用程序池中<进程模型>中<标识>为localSystem 提示:System.Runtime.InteropServices.COMException: 命令失败 在<组件服务>中配置 <Microsoft Word 97 - 2003>的 <标识>选择为<下列用户>(开始为 <交互式>,但这个方式可以理解为需要有登录的账号活动,所以不可行)…
System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况. (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT)) 出现此问题是C#调用Microsoft.Office.Interop.Excel 导出excel时提示此错误. 但是在安装360和某pdf阅读器前都可以正常导出. 解决此问题时,可在调用open前设置xapp.Visible=true; xapp.Visible=tru…
最近做一个winform项目,在里面用了webbrowser控件进行html文档打印,遇到了标题所示问题.根据查到的一些资料,在调试>异常>查找中输入“System.Runtime.InteropServices.COMException”,勾选查找到的项目后的复选框.重新调试程序,终于爆出了真正的问题:试图吊销一个未注册的拖放目标 (异常来自 HRESULT:0x80040100 (DRAGDROP_E_NOTREGISTERED)). 查看原来的代码: browser.DocumentTe…
应用程序中发生了无法处理的异常.如果单击“退出”,应用程序将立即关闭.无法启动服务,原因可能是已被禁用或其相关联设备没有启动.(异常来自HRESULT:0X80070422).点击详细内容:有关调用实时(JIT)调试而不是此对话框的详细信息,请参见此消息的结尾.************** 异常文本 **************System.Runtime.InteropServices.COMException (0x80070422): 无法启动服务,原因可能是已被禁用或与其相关联的设备没有…
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: 0x800…