Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 24-Apr-20 20:36pm

Are the sites under IIS configured with the correct version of ASP.net?
 
Share this answer
 
Comments
I.explore.code 29-Dec-11 11:06am    
The app pool for my website shows its using ASP.NET version 4.0, so i reckon its correct. What do u think?
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?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900