Hi Luis,
It sounds to me as if you are missing to distribute the 'App_Code' folder to your destination server.
If you compile your web site the aspx files are getting marked with the info for the according code behind (which is compiled inside a dll in the 'App_Code' folder).
Take a look at the file 'Default.aspx' at your destination server and open it with an editor / VS. The first line should contain something like '..._Default.aspx.cs...'
Do you have set to use ASPNET 2.0 for this application inside IIS (properties page for this virtual directory / application)?
HTH
>Hello everyone, I created a simple web site, it compiles fine and it
>runs fine when I launch it from within Visual Studio, after I published in my
>local computer and run it I get the error "Could not load type '_Default'",
>I look all over the place without getting a straight answer, any ideas?
>
>
>Thanks in advance.
robert.oh.