我有一个网站项目,其中包含一个名为 - /pix
的文件夹。在pix文件夹下我有一个aspx页面 - BPDList.aspx
。此页面与母版页相关。这是页面上的第一行 -
<%@ Page Title="K online" Language="C#" MasterPageFile="../MasterPage.master"
AutoEventWireup="true" CodeFile="BPDPage.aspx.cs" Inherits="BPDPage" %>
文件MasterPage.master
存在于我的网站项目的根目录中(文件夹pix上方一级)。
我收到以下错误:
"Parser Error Message: The virtual path '/MasterPage.master' maps to another application, which is not allowed."
将路径更改为 - "~/MasterPage.master"
时,我收到此错误:
"Parser Error Message: The file '/pix/MasterPage.master' does not exist."
如何查看另一个目录中的文件? 为什么'pix'文件夹被定义为应用程序?