I've written a J# program that runs just fine on my computer (where my Visual
Studio .NET IDE resides).
I try to run the program on another computer (it has Windows 2000) and I get
a dialog that says it has encountered an unhandled exception. Clicking
Cancel on that dialog causes a DOS window to pop up that reports:
Unable to determine existence of prolog, if any.
Unhandled exception generated: <System.TypeInitializationException>
(in the FormaMain part of my program)
_message="The type initializer for "_MyProgram.FormMain" threw an exception
_innerException= <System.io.FileNotFoundException>
Thread 0x364 R --- Class initialization ---
I figured I needed to at least catch that TypeInitializationException so I
put a try/catch around main part, as follows:
public static void main(String[] args)
{
try
{
Application.Run(new FormMain());
}
catch (System.TypeInitializationException typeInititializationException)
{
MessageBox.Show("Caught the initialization exception");
}
}
but that had no effect, it still caused the above problem, reporting the
same exception.
Any suggestions?
- Roger
Lars-Inge T?nnessen [VJ# MVP] - 17 Apr 2005 00:37 GMT
Does you Windows 2000 have the .NET and the J# redists installed?
.NET redist:
Please do a Windows Update on your Win2000 computer, or go to:
http://msdn.microsoft.com/netframework/downloads/updates/default.aspx
Or as a download for IT pros:
http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157
-034D1E7CF3A3&displaylang=en
J# redist::
http://www.microsoft.com/downloads/details.aspx?FamilyId=E3CF70A9-84CA-4FEA-9E7D
-7D674D2C7CA1&displaylang=en
Regards,
Lars-Inge T?nnessen
Roger Garrett - 18 Apr 2005 01:46 GMT
I did as you suggested and installed the .NET and J# redistributables on my
other computer, and restarted the computer, but I still getthe exact same
errors when I attempt to run the J# program.
Suggestions?
- Roger
Lars-Inge Tønnessen [VJ# MVP] - 19 May 2005 21:52 GMT
Maybe you should open a support incident?
http://support.microsoft.com/oas/default.aspx?&c1=501&gprid=7611&
Regards,
Lars-Inge Tønnessen