Re: Could not load type
- From: "Matt Dinovo" <matt_at_swiftus_dot_com>
- Date: Tue, 31 Jan 2006 10:16:58 -0500
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
"Jim McGivney" <mcgiv1@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:O8yZaEhJGHA.208@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>
>
.
- References:
- Could not load type
- From: Jim McGivney
- Could not load type
- Prev by Date: Re: How to Return pure XML (no WS)
- Next by Date: Re: Creating first project
- Previous by thread: Could not load type
- Next by thread: Re: grid view button field
- Index(es):