gpt4 book ai didi

c# - 应用程序未启动

转载 作者:太空狗 更新时间:2023-10-29 23:27:06 25 4
gpt4 key购买 nike

我遇到了一个相当奇怪的问题,我在我的机器上部署了 2 个 .NET 应用程序。两者都在 v2.0 上运行。

现在,虽然其中一个运行顺利,但另一个甚至无法启动!此外,它不会抛出任何错误,我在事件查看器中看不到任何错误列表。

变得难以调试。在所有其他机器上,这两个 exe 都工作得很好!

有任何已知问题吗?

编辑:我捕获了一个未处理的异常,异常是这样的;

System.Runtime.InteropServices.COMException (0x80040154): Class not registered(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid) at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid) at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid) at System.Windows.Forms.AxHost.CreateInstance() at System.Windows.Forms.AxHost.GetOcxCreate() at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state) at System.Windows.Forms.AxHost.CreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at BrowsingFiles.Form1.InitializeComponent() at BrowsingFiles.Form1..ctor() at BrowsingFiles.Program.Main(String[] args)

谢谢

最佳答案

您正在调用未在该计算机上注册的 COM 组件。

理想情况下,您的部署项目将注册任何 COM 依赖项:How To Register COM Objects in Visual Studio .NET: Steps to Register a COM Module in a Visual Studio .Net Deployment Project

关于c# - 应用程序未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3031312/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com