locked
'System.TypeInitializationException' occurred!! RRS feed

  • Question

  • Hello, does anyone know what's going on?? Somehow after I debug my project (without any error), when I run it, it comes with this error message.

    "An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module."

    I have no problem if I release my project and run it but just debug. Any idea? Thank you!!

     

    Luis

    Sunday, August 20, 2006 7:34 PM

Answers

  • Sounds like you've got a problem with a static initializer in the assembly that just got loaded.  Check the InnerException for that exception.  Also verify that you've copied the assembly DLLs your program uses...
    Sunday, August 20, 2006 8:22 PM

All replies

  • Sounds like you've got a problem with a static initializer in the assembly that just got loaded.  Check the InnerException for that exception.  Also verify that you've copied the assembly DLLs your program uses...
    Sunday, August 20, 2006 8:22 PM
  • It's maybe beacuse of you are not initializing your object correctly.

     

    Try this:

    object myobject = null;

     

    Once it's initialized like a null, you'll be able to use it.

     

    Hope it helps...

     

     

    Regards.

    Friday, November 2, 2007 5:01 AM
  • Hey,
    I'm havin the same prob.
    pls lemme know if u get the fix.

    thanx

    Saud
    Friday, February 15, 2008 7:48 AM