I published my web application project with the option "Only files needed to run this application", that is, just aspx files were included in the virtual directory of iis, not codebehind files.
But when I run the application, I got a parser error:
Server Error in '/Common' 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: The file '/Common/Mec/Channel/ChannelList.aspx.cs' does not exist.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Mec/Default.master" CodeFile="ChannelList.aspx.cs" Inherits="Apecn.IPTV.Mec.Admin_ChannelList" %>
Line 2:
Line 3: <%@ Register Src="~/Controls/PagingBar.ascx" TagName="PagingBar" TagPrefix="IPTV" %>
|
Source File: /Common/Mec/Channel/ChannelList.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
The file ChannelList.aspx is in a subfolder named "Channel" of my project "Mec".
When I visit pages in the root folder of Mec, no error happened. but When I visit pages in a subfolder of Mec, the same error happened.
The project "Mec" is a nested subproject of project "Common"
anyone could help me, thanks.