C#(DotNetBar2)主窗体在Load事件后抛异常:"公共语言运行时检测到无效的程序"。

使用DotNetBar控件。
用自己笔记本电脑启动程序正常加载,换了台电脑显示主窗体时抛异常。
VS已经重装过了,.net版本、和Dotnetbar2版本也没问题 新建项目使用Dotnetbar2也正常使用。
异常信息:
未经处理的异常: System.InvalidProgramException: 公共语言运行时检测到无效的程序。
在 DevComponents.DotNetBar.Metro.Rendering.?.Render(MetroRendererInfo renderingInfo)
在 DevComponents.DotNetBar.Metro.MetroStatusBar.PaintControlBackground(ItemPaintArgs pa)
在 DevComponents.DotNetBar.ItemControl.PaintControl(ItemPaintArgs pa)
在 DevComponents.DotNetBar.ItemControl.?(PaintEventArgs ?, Boolean ?)
在 DevComponents.DotNetBar.ItemControl.OnPaint(PaintEventArgs e)
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
在 System.Windows.Forms.Control.WmPaint(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 DevComponents.DotNetBar.ItemControl.WndProc(Message& m)
在 DevComponents.DotNetBar.Metro.MetroStatusBar.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

img

dotnetbar控件没在报错的那台机器上安装好,导致窗体运行时抛出异常了。应该不是程序的问题,还是安装环境造成的问题。有帮助请采纳,谢谢!

操作系统是否一样?vs什么版本?
参考:


[bug]”System.InvalidProgramException:公共语言运行时检测到无效程序“解决方案 - 吴旭标 - 博客园 Visual Studio 2017版本15.8.x运行某些程序会报这样的错误:“System.InvalidProgramException:公共语言运行时检测到无效程序” 此问题的临时解决方案: https://www.cnblogs.com/wuxubiao/p/9790386.html

现在确定是这个(DevComponents.DotNetBar.Metro.MetroStatusBar)控件报错,删掉这个控件后不会在抛异常了。
这个控件可以不用,但是为什么笔记本电脑这个控件正常使用换了台式机就抛异常。