Results 1 to 5 of 5

Thread: publishing error with 2005

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    22

    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:

  2. #2
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    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!

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    22

    Re: publishing error with 2005

    when i copy it after i build is when i get the error, it runs fine in Visual Studio

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width