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!!!