Parser Error Message: Could not load type ‘_Default’

While developing a .Net web app in C# with Visual Studio 2005, I got this error:

Parser Error Message: Could not load type ‘_Default’

The reason: My website configuration was using the wrong .NET framework version (1.1.4322).

The solution: Change it to use a .NET 2.0 version. In my case, 2.0.50727

The result: a nicely displayed page :)

If you’re experiencing something similar, I hope this sheds some light ;)

7 Comments

  1. David
    Posted January 29, 2007 at 2:14 pm | Permalink

    Absolutely, thanks!
    Exactly the same problem!

  2. Posted January 29, 2007 at 2:22 pm | Permalink

    Glad to be of help ;)

  3. erzlan
    Posted August 9, 2007 at 2:33 am | Permalink

    u r gr8t man …. i was searching for this solution for the past 6 fukin’ hrs

  4. Mridula
    Posted October 30, 2007 at 6:55 am | Permalink

    Hi
    I checked my website config, it points to 2.0 but still i get the same parser error. Do you know of any other reasons that mite cause this

    thanks
    mridula

  5. Posted October 30, 2007 at 10:09 am | Permalink

    Sorry, Mridula… I don’t, maybe this can be of help?

  6. Posted July 29, 2008 at 11:39 pm | Permalink

    I’ve solve my problem here. Thank you

  7. Posted October 14, 2008 at 2:15 am | Permalink

    This problem comes when the project is in the higher framework version and the project is running in the lower framework version settings. Change the framework version settings from the properties in the Inet manager. and the n the page will execute.

    kshitij