ASP.net MasterPage.master不存在 [英] ASP.net MasterPage.master does not exist
问题描述
我有一个问题,同时公布我的网站在IIS服务器上,我不必直接访问它,所以我必须依靠另外一个人来配置我的网站上的IIS。
然而,当我上传我的网站这个错误出现:
I am having a problem while publishing my website on the IIS server, i don't have direct access to it so i have to rely on some one else to configure my website on the IIS. however when i upload my website this error comes up:
1号线:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Untitled Page" %>
2号线:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
分析器错误信息:文件'/server/website/MasterPage.master'不存在
我的母版是在网站的根文件夹和 Default.aspx的
是根也,我已经搜索互联网上的答案,但我已经找到了最好的改变的MasterPageFile =〜/ MasterPage.master
到的MasterPageFile =./ MasterPage.master
,但没有没有尝试到星期一。
my masterpage is in the root folder of the website and default.aspx
is on the root also, i have searched on internet for answer but the best i have found is changing MasterPageFile="~/MasterPage.master"
to MasterPageFile="./MasterPage.master"
but haven't tried yet till Monday.
我将AP preciate你的帮助。
i would appreciate your help.
推荐答案
(一)确保该服务器正在运行下的用户帐户有权访问该目录。
(i)Make sure that the user account that the server is running under has permissions to access that directory.
(ii)当在一个文件路径中使用〜,确保当前的应用程序部署相信根目录是相同的,因为它以前。
(ii)When using "~" in a file path, make sure that the current application deployment believes the root directory is the same as it was before.
(三)打开IIS,在虚拟目录文件夹右键单击该网站,并选择转换为应用程序。刷新并再次检查。
(iii)Open IIS, right-click on the virtual directory folder for this site, and selected "Convert to Application." Refresh and check again.
这篇关于ASP.net MasterPage.master不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!