problem with code behind

Discussion in 'Visual Studio' started by renevazquez, Mar 17, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi I am having the following problem. I publish my website with the option Build>Publish. I select the option "Only files needed to rn this application". When I copy the content of my site without the code behind files i get this error in every page.

    Parser Error

    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]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: The file '/Default.aspx.cs' does not exist.

    Source Error:

    Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>Line 2: Line 3: <%@ Register Src="Controls/Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
    Source File: /default.aspx Line: 1


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082[/FONT]
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    try unchecking the "Only files needed to rn this application" and see if it works.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page