Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Master Page Loading Path Problem

Hi Guys,

I'm stuck with this for a while, and here's the scenario.

I've recently moved my master page web app. to production.
The master page works on Visual Studio's web server, but not on IIS.

Under IIS, I get a parse error as follows:
Parser Error Message: The file '/Forms/MasterPages/AppMaster.master' does not exist.

The reason? Under IIS, I'd to map the home directory path to:
"\Forms"

But, where as under VS the path is mapped to:
"\"

Under IIS, mapping to "\" soloves the problem of course, my other 3000 odd pages are failing.

Here's the @Page directive under my host file which hosts the master page,

<%@ Page AutoEventWireup="true" Codebehind="ClientList.aspx.cs" Inherits="Forms.Client.ClientList"
Language="C#" MasterPageFile="~/Forms/MasterPages/AppMaster.master" %>


Issue? My host file is having trouble figuring out the relative path of the master page.
Any pointers? Thanks a lot!!
Jey
[1075 byte] By [licensed2code] at [2007-11-11 8:33:16]