views:

314

answers:

2

I have develop a simple website using VS8 and C# when I debug everything works fine, then I built using Ctrl + Shift + B and when I upload the site to a godaddy server it display the next error:


Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'testDemo._Default'.

Source Error:

Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="testDemo._Default"%> Line 2:
Line 3:


A solution I found is removing the part Inherits="testDemo._Default", but when debuging it do not execute the "Page_Load(object sender, EventArgs e)".

Do anyone knows what is causing this error?

Jerry

A: 

Are you sure you uploaded the compiled .dll files in the /bin folder for the site?

Lance McNearney
A: 

What the class name for your designer file? Does it match "_default" and is it in the namespace "testDemo"?

citronas
I believe this solve both questions:namespace testDemo{ public partial class _Default : System.Web.UI.Page
Gerardo Abdo
I found the problem! As I´m using a subfolder called "testDemo/" on the server I had to add the /bin at root/bin/testDemo.dll
Gerardo Abdo