publishing error with 2005
when I publish a 2005 asp.net web project to c:\inetpub\wwwroot\somesite\ and then go to http://localhost/somesite/webform1.aspx i get the following 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 'WebApplication2.WebForm1'.
Source Error:
Re: publishing error with 2005
My guess is that a namespace was changed somewhere and the HTML Markup is pointing to the wrong class. Something like:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %>
However, you may have changed WebForm1 to something more descriptive, so it prolly looks like this now:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SomePage.aspx.cs" Inherits="WebApplication2.WebForm1" %>
If you changed the class name from WebForm1 to SomePage, then you need to update this Inherits to:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SomePage.aspx.cs" Inherits="WebApplication2.SomePage" %>
Re: publishing error with 2005
Build your application before deploying. Also, there's no point 'publishing' to another location on your own machine. Just build it then copy and paste your files over to C:\inetpub\whatever.
Re: publishing error with 2005
when i copy it after i build is when i get the error, it runs fine in Visual Studio
Re: publishing error with 2005
That then indicates that the build is not completing.
After you build, are there any DLLs in the bin folder?
Does it build successfully? Any errors in the Task List?