dlbranson
2007-12-02 20:55:01 UTC
I have just converted an application to VS2005. It was previously converted
from VB6 to VS2003 and has many global variables. The application works
perfectly when running in debug in my development environment. After
creating an .MSI and installing on a computer that has VS2005, the runtime
also works perfectly.
When installed on a PC without VS2005, I get the following error "The type
initializer for 'PPC.modMain' threw an exception." the first time the load of
frmMain attempts to assign a value to a Public variable declaried in modMain.
I have put a Try Catch around the assignment statement and attempt to print
out the innerexception. However, when I run this code, instead of an
exception window I get a window telling me the application had an internal
error and do I want to send a report to Microsoft. I get no description of
what the real issue is.
Any help would be greatly appreciated.
from VB6 to VS2003 and has many global variables. The application works
perfectly when running in debug in my development environment. After
creating an .MSI and installing on a computer that has VS2005, the runtime
also works perfectly.
When installed on a PC without VS2005, I get the following error "The type
initializer for 'PPC.modMain' threw an exception." the first time the load of
frmMain attempts to assign a value to a Public variable declaried in modMain.
I have put a Try Catch around the assignment statement and attempt to print
out the innerexception. However, when I run this code, instead of an
exception window I get a window telling me the application had an internal
error and do I want to send a report to Microsoft. I get no description of
what the real issue is.
Any help would be greatly appreciated.