Deployment issue - TypeInitializationException
My application run perfectly using the .exe file or when running from vs.net.
I created a setup project (within the same solution) and its also running well without any build errors. Deployment seems to be fine as well - all required files are copied to their destination.
When I try to run the new installed program, i get the following error message: "An unhandled exception of type 'System.TypeInitializationException' has occured in AppRT12.exe".
The debugger writes also: "Additional information: The type initializer for "AppRT12.FModule" threw an exception."
FModule is a module where I have shared members and methods.
The application has a Sub Main() as a startup object. The debugger break on the first call to a method on FModule.
Does module has to be initialized ??? what's type initializer ?
Also, as I mentioned, no errors running it from vs.net
Any ideas.... Thanks!