Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

asp.net

iis-7

Evening folks!!

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.

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.

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.

Much appreciated.

like image 260
Aman Avatar asked Dec 29 '11 17:12

Aman


1 Answers

You probably need to set the mywebsite folder as an application in IIS.

like image 128
SLaks Avatar answered Sep 21 '22 00:09

SLaks