msdeveloper
Goto Top

Fehler beim Programmstart

Hallo,

seit kurzem habe ich folgenden Fehler beim Programmstar, obwohl ich eigentlich keinen Code verändert habe:

System.InvalidOperationException wurde nicht behandelt.
Message="Fehler beim Erstellen des Formulars. Weitere Informationen finden Sie in Exception.InnerException. Fehler: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.."
Source="Verwaltung"
StackTrace:
bei Verwaltung.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 190.
bei Verwaltung.My.MyProject.MyForms.get_frmmain()
bei Verwaltung.My.MyApplication.OnCreateMainForm() in D:\Projekte\Verwaltung\My Project\Application.Designer.vb:Zeile 35.
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String commandLine)
bei SenkVerwaltung.My.MyApplication.Main(String Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain.nExecuteAssembly(Assembly assembly, String args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()

Ich kann mir das echt nicht erklären!!! In Application.Designer.vb Zeile 35 steht folgendes:

<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = New Global.SenkVerwaltung.frmmain
End Sub


Hat jemand Rat???

Gruß marcel

Content-Key: 40755

Url: https://administrator.de/contentid/40755

Printed on: April 23, 2024 at 19:04 o'clock