Quote Originally Posted by forstudy3 View Post
Hello,

I have a C# application created using VS 2008 , then those DLLs areimported to another application created using VS 2005. There were no build errors at all for all the application module.When I created an installer & distributed to non-development m/c's I got an error message saying "Error: the type initializer for <module> threw an exception" the module it points to is a C# DLL.

Please let me know what care I should take to work it properly?
Do you know the missing C# dll? Is it a VS2008 dll or a VS2005 dll? Can you spot it both on the developer and target machine?

In case it is VS2008 dll it might use types that were not available (or not right version) on the target system. You then would need to install VS2008 redistributables to the target system.

Regards, Alex