Parser Error Message: Could not load type ‘_Default’

20 12 2006

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 ;)


Actions

Informations

7 responses to “Parser Error Message: Could not load type ‘_Default’”

29 01 2007
David (14:14:22) :

Absolutely, thanks!
Exactly the same problem!

29 01 2007
Juan Wong (14:22:05) :

Glad to be of help ;)

9 08 2007
erzlan (02:33:42) :

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

30 10 2007
Mridula (06:55:51) :

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

30 10 2007
Juan Wong (10:09:01) :

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

29 07 2008
Nop (23:39:58) :

I’ve solve my problem here. Thank you

14 10 2008
kshitij kumar (02:15:36) :

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




LiveSTRONG