Could not load type

J

Jim McGivney

In Web Developer Express I make a very simple aspx page. The page name is
Hoho.aspx. The page has a label, the label text is "Hello World".
To test the page on my computer, I press CTRL-F5 and the page loads and
displays the message.
I now use Copy Web Site from the Website menu to copy all files to my hosted
website (ASP.net 2.0). I navigate in IE6 to my new aspx page and I get the
message:

Server Error in '/' Application.
--------------------------------------------------------------------------------

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 '_Hoho'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Hoho.aspx.cs" Inherits="_Hoho" %>
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: E:\web\winidcom000\htdocs\Hoho.aspx Line: 1
_________________________________________________________

The code of my CS page is:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

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

What do I need to do to get this simple page to run ?

Thanks in advance for your help,

Jim
 
M

Matt Dinovo

Did you put the CS file in the App_Code directory? Any files there are
automatically compiled into the project on request.

HTH,

Matt Dinovo
 

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

No members online now.

Forum statistics

Threads
473,836
Messages
2,569,748
Members
45,545
Latest member
rapter____0

Latest Threads

Top