C
Chris
I have created a site with VS2005, using asp.net/c#. When I try to
deploy this site to our intranet asp server all of my links that were
"~/Folder/Site.aspx" no longer work because when I move it to
production it says that it cannot find the site.
So I'm working on a site on my own local PC which looks like this: C:
\ASP.net Website
When I move it to my production environment I copy to a folder X:
\MetaDim\Main where X is my mapped network drive.
All the files copy over, but when I move it over the links that use
the root character "~/" get messed up. They should be: "X:\MetaDim
\Main\Default.aspx" but the site sees it as "X:\Default.aspx" but that
file doesn't exist there.
So my question is, is there a way in the web.config to tell my website
where I want the root directory to be? For example, can I create an
entry in web.config that would say something like <rootdir="MetaDim
\Main"/> so when I move it over to production, I can just add that?
Thanks
deploy this site to our intranet asp server all of my links that were
"~/Folder/Site.aspx" no longer work because when I move it to
production it says that it cannot find the site.
So I'm working on a site on my own local PC which looks like this: C:
\ASP.net Website
When I move it to my production environment I copy to a folder X:
\MetaDim\Main where X is my mapped network drive.
All the files copy over, but when I move it over the links that use
the root character "~/" get messed up. They should be: "X:\MetaDim
\Main\Default.aspx" but the site sees it as "X:\Default.aspx" but that
file doesn't exist there.
So my question is, is there a way in the web.config to tell my website
where I want the root directory to be? For example, can I create an
entry in web.config that would say something like <rootdir="MetaDim
\Main"/> so when I move it over to production, I can just add that?
Thanks