Re: Error: (Type initializer threw an exception)
- From: "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxxxxx>
- Date: Tue, 3 Feb 2009 13:38:03 +0100
Florian,
In my idea you have a failure in either running your program in the new Visual Studio or either running your programm in Vista.
Can you not first try what it does by installing VS2008 on the XP and debug it then in that environment.
Now you make in my idea searching much to wide.
(Dit you know that there was a perfect VB newsgroup for the German Visual Studio Environment.)
news\\:microsoft.public.de.german.entwickler.dotnet.vb
Most here are probably using the English version.
Cor
microsoft.
"Florian" <Florian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D921E129-BEA3-48FD-9B3A-0477B62DDEFC@xxxxxxxxxxxxxxxx
Hi,
I have written an application in VB 2005 (XP).. Now we want to upgrade to
Vista and VB 2008 + Framework 3.5, but while testing our applications the
Debugger shows following exception:
An unhandled exception of type 'System.InvalidOperationException' occurred
in App.exe
Additional information: Fehler beim Erstellen des Formulars. Weitere
Informationen finden Sie in Exception.InnerException. Fehler: Der
Typeninitialisierer für "App.ModuleMain" hat eine Ausnahme verursacht..
Apart from the buttons "Break" and "Continue" there is no more information
to view (NO InnerException!)
Only in the Debug-Output window shows messages that a dll-file is loaded
again and again, but unloaded each time:
'App.exe': Loaded
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.8' 2.6001.18000_none_886786f450a74a05\comctl32.dll'
'App.exe': Unloaded
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.8' 2.6001.18000_none_886786f450a74a05\comctl32.dll'
That's it...
I've checked all paths and filenames in the solution and found no issue.
The solution contains 4 projects: 1 app and 3 class libraries which are
included by the app. The applications starts with a Splash form, but the
error raises before the applications runs any line of (my) code
.
- Follow-Ups:
- Re: Error: (Type initializer threw an exception)
- From: Florian
- Re: Error: (Type initializer threw an exception)
- References:
- Error: (Type initializer threw an exception)
- From: Florian
- Error: (Type initializer threw an exception)
- Prev by Date: Re: verify VPN connection?
- Next by Date: Can I include an MSI file from another vendor in my setup ?
- Previous by thread: Error: (Type initializer threw an exception)
- Next by thread: Re: Error: (Type initializer threw an exception)
- Index(es):
Loading