Broken Master Page in prodhttp://forums.asp.net/t/1793134.aspx/1?Broken+Master+Page+in+prodMon, 16 Apr 2012 14:29:29 -040017931344933524http://forums.asp.net/p/1793134/4933524.aspx/1?Broken+Master+Page+in+prodBroken Master Page in prod <p>The app has a main Site.master page at the root. There is a folder (registrations) that has a new, different master page that is the master menu for the pages in the folder. The setup works fine in the dev arena. WHen I send the folder to production I get errors when trying to retreive the pages.</p> <p>'An error occured during the parsing of a resource.....'</p> <p>The filename '/csc/csc/cscmainmaster.master' does not exist. For some reason the server is appending an extra /csc/ to the web address. The link&nbsp;from the&nbsp;menu that has the navigation in&nbsp;it&nbsp;uses a single /csc/cschome.aspx&nbsp;- which is the location of the file. I can get the page to resolve if I change the declaration in the child page from ~/csc/cscmainmaster.master to ~/cscmainmaster.master (I have to do the same thing for images)</p> <p>I am running a local version of IIS on my machine and the remote site is IIS also. I tried deleting the remote directory and recreated it with the same results???</p> <p>Thanks</p> 2012-04-15T22:50:52-04:004934644http://forums.asp.net/p/1793134/4934644.aspx/1?Re+Broken+Master+Page+in+prodRe: Broken Master Page in prod <p>Do you have a&nbsp;folder called &quot;csc&quot;&nbsp;in your&nbsp;virtual directory (x:\inetpub\wwwroot\csc) ? In that case you should probably move all contents from x:\inetpub\wwwroot\csc\csc to x:\inetpub\wwwroot\csc\. The ~refers to the virtual directory.</p> 2012-04-16T11:57:33-04:004934934http://forums.asp.net/p/1793134/4934934.aspx/1?Re+Broken+Master+Page+in+prodRe: Broken Master Page in prod <p>As mm10 pointed out, the ~ does indeed point to the virtual directory which is generally root for the site.&nbsp; Microsoft seems to have difficulty with the transition from localhost to server environment.&nbsp; What I ended up doing is creating the aspx page at root and then moving it to the sub folder so the path didn't have the extra /projectname in it.&nbsp;</p> <p>As for the images, I haven't really found a good solution because the ~ messes up the image path for images in sub folders.&nbsp; I usually just replace the ~/ with ../ in the subfolders.</p> 2012-04-16T14:29:29-04:00