0
我正在尝试为我正在制作的游戏制作启动程序。该程序在我的另一台电脑上工作得很好。我最近将源代码转移到了我的电脑上。我遇到问题,但我尝试调试应用程序,并且出现此错误。其他电脑的VB.NET程序崩溃
我想出了这个问题。此代码在这里
.GetVersionInfo("C:\Users\eriger777\Desktop\test\bin\Launcher.exe")
正试图执行不在那里的文件:3。
An error occurred creating the form.
下面是导致错误的代码。
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.Launcher.frmMain
End Sub
End Class
堆栈跟踪
at Launcher.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Launcher.My.MyProject.MyForms.get_frmMain()
at Launcher.My.MyApplication.OnCreateMainForm() in C:\Users\Gryphon\Downloads\Launcher\Launcher Source Main\Launcher Source\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Launcher.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
你是否实例化了frmMain类?嗯,这并不能解释它如何在你的其他电脑上工作...我会在这里开始调查:'C:\ Users \ Gryphon \ Downloads \ Launcher \ Launcher Source Main \ Launcher Source \ My Project \ Application.Designer.vb:第35行' –
是的,我相信是的。就像我说的那样在我的另一台电脑上工作。但它不适用于新的。 –
您是否使用任何可能未在新计算机上注册的ActiveX控件或Dll? –