0x80040111错误排查:RemoteConnectionTool无法创建AxMSTSCLib类实例
RemoteConnectionTool 部分Win10/Win11设备启动故障排查
故障概况
3台Win10/Win11笔记本设备上,RemoteConnectionTool无法启动,弹出以下COM异常:
ClassFactory kann angeforderte Klasse nicht liefern (Ausnahme von HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)) Geworfene Exception: System.Runtime.InteropServices.COMException bei System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) bei System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid) bei System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid) bei System.Windows.Forms.AxHost.CreateInstance() bei System.Windows.Forms.AxHost.GetOcxCreate() bei System.Windows.Forms.AxHost.TransitionUpTo(Int32 state) bei System.Windows.Forms.AxHost.CreateHandle() bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.AxHost.EndInit() bei RemoteConnectTool.Form1.InitializeComponent() in C:\Users\username\Documents\GitRepos\Tools\RemoteConnectTool\RemoteConnectTool\Form1.Designer.cs:Zeile 94. bei RemoteConnectTool.Form1..ctor() in C:\Users\myUsername\Documents\GitRepos\Tools\RemoteConnectTool\RemoteConnectTool\Form1.cs:Zeile 24. bei RemoteConnectTool.Program.Main() in C:\Users\myUsername\Documents\GitRepos\Tools\RemoteConnectTool\RemoteConnectTool\Program.cs:Zeile 18.
- 即使在故障设备上使用我个人账号(该账号在我自己电脑上可正常运行程序),仍无法启动
- 错误信息中显示的是我开发环境的个人账号路径,而非故障设备当前登录账号的路径
已完成排查步骤
- 切换故障设备上的不同用户账号,排除权限问题
- 重建项目后重新部署,故障未解决
- 确认其他笔记本设备可正常运行该程序
待解决问题
- 已知有文章建议用
regsvr32重新注册COM类,但无法确定需要注册的具体DLL文件
相关代码片段
- Program.cs 第18行:
Application.Run(new Form1()); - Form1.cs 第24行:
ADUser = new List<User>();
内容的提问来源于stack exchange,提问作者darkiyy
相关产品推荐
相关产品推荐

