Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 16, 2012 02:29 PM by kraznodar
Apr 15, 2012 10:50 PM|LINK
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.
'An error occured during the parsing of a resource.....'
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 from the menu that has the navigation in it uses a single /csc/cschome.aspx - 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)
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???
Apr 16, 2012 11:57 AM|LINK
Do you have a folder called "csc" in your 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.
Apr 16, 2012 02:29 PM|LINK
As mm10 pointed out, the ~ does indeed point to the virtual directory which is generally root for the site. Microsoft seems to have difficulty with the transition from localhost to server environment. 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.
As for the images, I haven't really found a good solution because the ~ messes up the image path for images in sub folders. I usually just replace the ~/ with ../ in the subfolders.