TypeInitializationException error

  • Thread starter Thread starter Kodiak
  • Start date Start date
K

Kodiak

I am getting a System.TypeInitializationException on a static class
and I cannot figure out why the error is occuring. The inner
exception says the likely cause of the error is because the FMS lib
folder is not in the system path. This is not true because the path
being referenced is in the Environment Path variable. I run the same
code in Visual Studio 2008 and the code works perfect, but when I
deploy the code to IIS 6 running on Windows 2003 SP2 server I get the
error. I cannot figure out what is going on when I VS it works, but
fails in IIS 6. Any help or suggestions is really appreciated!!!
 
I am getting a System.TypeInitializationException on a static class
and I cannot figure out why the error is occuring.  The inner
exception says the likely cause of the error is because the FMS lib
folder is not in the system path.  This is not true because the path
being referenced is in the Environment Path variable.  I run the same
code in Visual Studio 2008 and the code works perfect, but when I
deploy the code to IIS 6 running on Windows 2003 SP2 server I get the
error.  I cannot figure out what is going on when I VS it works, but
fails in IIS 6.  Any help or suggestions is really appreciated!!!

What is FMS lib? Is it possible to see any example of the code?

More about TypeInitializationException
http://msdn.microsoft.com/en-us/library/ms242144(VS.80).aspx

Some threads that may help
http://www.justskins.com/forums/unhandled-exception-system-typeinitializationexception-110812.html
http://weblogs.asp.net/rosherove/archive/2004/09/04/225467.aspx
 
Back
Top