|
-
Oct 14th, 2007, 03:57 AM
#1
Thread Starter
Junior Member
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:
-
Oct 15th, 2007, 09:02 AM
#2
Fanatic Member
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" %>
If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!
Show Appreciation. Rate Posts!
-
Oct 16th, 2007, 08:51 AM
#3
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.
-
Oct 22nd, 2007, 12:59 AM
#4
Thread Starter
Junior Member
Re: publishing error with 2005
when i copy it after i build is when i get the error, it runs fine in Visual Studio
-
Oct 22nd, 2007, 11:31 AM
#5
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|