关于System.Runtime.InteropServices.COMException 库没有注册的问题
在 System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
在 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
在 Microsoft.VisualBasic.CompilerServices.VBBinder.InvokeMember(String name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object target, Object[] args, String[] namedParameters)
在 Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
在 Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
在 Windows7Master.Helper.x2c0ff660fe041e73.x9d0e019f05b1ffc0()
在 Windows7Master.MemoryMaster.xc447809891322395.xdc31845e6cf8335f(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MemoryMaster
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///D:/Windows7Master/MemoryMaster.exe
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Controls
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///D:/Windows7Master/Controls.DLL
----------------------------------------
Helper
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///D:/Windows7Master/Helper.DLL
----------------------------------------
Microsoft.VisualBasic
程序集版本: 8.0.0.0
Win32 版本: 8.0.50727.5420 (Win7SP1.050727-5400)
基本代码: file:///C:/windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
请各位高手帮忙解决一下,谢谢了。
相关推荐
System.Runtime.InteropServices.COMException的解决方法
完美解决“换另一台电脑上用VS2008继续开发web项目时出现 “System.Runtime.InteropServices.COMException”,然后是加载不了项目。” 只需要打开项目配置文件*.csproj,将True 改为 False,然后可以正常加载项目,接着重新配置为正常的IIS. 您可能感兴趣的文章:System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 登录失败。System.Data.SQLite 数据库详细介绍SQL Server出现Syst
COMException(解决方案).md
项目中碰到的,记录一下解决方案
C#开发Excel文件操作异常处理:HRESULT 0X80010105错误解决方案与COM加载项配置
内容概要:本文介绍了在使用C#操作Excel文件时可能遇到的错误“System.Runtime.InteropServices.COMException: 服务器出现意外情况(异常来自 HRESULT: 0x80010105)”及其成因与解决方案。文章指出该问题通常出现在调用Excel COM组件时,由于第三方软件(特别是PDF阅读器或编辑器)注册了相关的COM加载项,导致Excel在初始化过程中发生冲突。解决方法为手动禁用Excel中的COM加载项中与PDF相关的插件,从而消除故障源。此外,文中还提示若该问题为近期出现,则很可能是因安装或更新PDF工具所致,进一步支持了这一判断。 适合人群:使用C#进行Office自动化开发的程序员,尤其是遇到Excel互操作异常的初、中级开发者;熟悉COM技术或Windows平台开发的技术人员。 使用场景及目标:①排查并解决C#调用Excel时因COM加载项引发的运行时异常;②理解外部插件对Office自动化程序的影响机制,提升程序稳定性与兼容性;③在部署环境中快速定位类似问题并实施修复。
Microsoft script control 64位.rar
C#或者VB.Net 如果要调用JS,必不可少要用到Microsoft script control组件, 用过的人都知道有多方便, 但是官方版本只支持32位系统的, 64位系统使用会报错System.Runtime.InteropServices.COMException:“检索 COM 类工厂中 CLSID 为 {0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC} 的组件失败,原因是出现以下错误: 80040154 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))。” 那么64位系统就用这个组件来替换原来的组件即可, 打开setup.exe--点击Install即可安装,如果要恢复则点击Uninstall 卸载,使用方法不变, 不支持scriptControl.UseSafeSubset方法
62、.NET 与非托管代码交互:System.Runtime.InteropServices 命名空间详解
本文详细介绍了 .NET 中使用 System.Runtime.InteropServices 命名空间与非托管代码进行交互的技术。内容涵盖封送处理、调用约定、字符集选择、自定义属性、包装类以及异常处理等关键知识点,并提供了实际的代码示例和最佳实践建议,帮助开发者高效实现 .NET 与非托管代码的互操作性。


