分析器错误信息:文件'/Site.master'不存在 [英] Parser Error Message: The file '/Site.master' does not exist

查看:1919
本文介绍了分析器错误信息:文件'/Site.master'不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

晚报乡亲!

与此相当乏味的问题卡住了。我已经部署了我的网站在我的本地(即C:\\的Inetpub \\ wwwroot的\\ MyWebSite),但是当我在浏览器中访问它,我得到这个错误信息:

Stuck with this rather dull problem. I have deployed my website on my localhost (i.e. C:\inetpub\wwwroot\MyWebSite) but when i access it in the browser, I get this error message:

Parser Error Message: The file '/Site.master' does not exist.

这很奇怪怎么把的Site.Master是正确的,在根文件夹。我有在我的网站2个文件夹已经得到了每个web.config中,我已经从IIS中转换这些文件夹的应用程序。当我从这些文件夹访问的网页,以及会出现此错误。

It's weird coz the Site.Master is right there in the root folder. I have got 2 more folders in my website that have got a web.config each and i have converted these folders to applications from within the IIS. This error occurs when i access pages from these folders as well.

这样的网址:的http://本地主机/ mywebsite 并的 HTTP://本地主机/ mywebsite / mysubfolder ,都有上述问题。而在这两种情况下,母版页文件,并在相应的文件夹存在。我检查了的MasterPageFile的路径在我Default.aspx页和〜/的Site.Master,而我可以成功地从Visual Studio(即卡西尼)中运行Web应用程序。

so the urls: http://localhost/mywebsite and http://localhost/mywebsite/mysubfolder, both have the aforementioned problem. And in both cases, the master page file does exist in the corresponding folders. I have checked the path of the MasterPageFile in my Default.aspx page and its "~/Site.Master" and the i can successfully run the web app from within Visual Studio (i.e. Cassini).

这将是非常巨大的,如果有人能帮助我解开这个谜。让我知道如果你需要更多的信息。

It would be really great if anyone can help me solve this mystery. Let me know if you need more info.

大部分AP preciated。

Much appreciated.

推荐答案

原来,在IIS中的默认网站使用相同的端口,我用不同的主机头创建的。停止默认网站,然后创建该网站指向C:\\的Inetpub \\ wwwroot文件,然后在根文件夹中的网站转换为一个应用程序,其下所有需要的文件夹,修正了这个问题。但是你如何访问即会是什么的网址,使用相同的端口,但定义不同的主机头一个网站吗?这仍然需要理解

Turns out, the Default website in IIS was using the same port as the one that i created with a different host header. Stopping the Default website, then creating the website to point to C:\Inetpub\wwwroot and then converting the root website folder to an application and all the needed folders under it, fixed this problem. But how do you access i.e. what would be the URL for, a website that uses the same port but has a different host header defined? this still needs to be understood.

这篇关于分析器错误信息:文件'/Site.master'不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆