Parser Error: Could not load type

A

Abbas

I receive the error given below whenever I add a new page to my
project. I've tried rebuilding the project, as well as deleting the
DLLs myself and building again. I even tried making a new virtual
directory in IIS but I still receive the same error message? Any ideas
what could be causing it?

Parser Error Message: Could not load type 'XXX.XXX.WebForm1'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="WebForm1.aspx.cs" Inherits=XXX.XXX.WebForm1" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /xxx/webform1.aspx Line: 1
 
A

Abbas

I receive the error given below whenever I add a new page to my
project.  I've tried rebuilding the project, as well as deleting the
DLLs myself and building again.   I even tried making a new virtual
directory in IIS but I still receive the same error message? Any ideas
what could be causing it?

Parser Error Message: Could not load type 'XXX.XXX.WebForm1'.

Source Error:

Line 1:  <%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="WebForm1.aspx.cs" Inherits=XXX.XXX.WebForm1" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /xxx/webform1.aspx    Line: 1


I've also used a reflector to make sure that the class exists in the
DLL and this is the (empty) code behind

namespace XXX.XXX
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top