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.
You probably need to set the mywebsite
folder as an application in IIS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With