Hello all...
The Setting
I recently upgraded to Visual Studio 2005 (from 2002). At the same time, I started working on a ASP.NET website developed by someone else. The website was designed so that path references start with the root (\), so when referencing an image, the path looks like this \some foler\images\image.jpg. I have the website installed on the root folder of IIS (inetpub) on my Windows 2000 machine. I can run the application/website by typing " on IE.
The Problem
For debuggin purposes, I want to run my application using Visual Studio (duh). Thus, I open the application and hit F5. When I do this, though, the website runs uder and this causes the paths I mentioned above not to work. I can easily fix this by removing the initial backslash (\) from all the paths. However, if I do this, certain paths won't work. For example, I have a master page that is used for some pages on two different folders: \folder1, and also \folder1\subFolder1. For pages located at \folder1, everything is fine, but for pages at \folder1\subFolder1, paths on the master page will be incorrect as they would be relative to \folder1 which is where the master page is located. I hope I'm making myself clear.
So the question is, how can I have Visual Studio run under as opposed to so that everything works as epected? Or better yet, am I approaching this the right way? How should this be accomplished?
Thanks
_________________________________
I think, therefore I am. [Rene Descartes]
The Setting
I recently upgraded to Visual Studio 2005 (from 2002). At the same time, I started working on a ASP.NET website developed by someone else. The website was designed so that path references start with the root (\), so when referencing an image, the path looks like this \some foler\images\image.jpg. I have the website installed on the root folder of IIS (inetpub) on my Windows 2000 machine. I can run the application/website by typing " on IE.
The Problem
For debuggin purposes, I want to run my application using Visual Studio (duh). Thus, I open the application and hit F5. When I do this, though, the website runs uder and this causes the paths I mentioned above not to work. I can easily fix this by removing the initial backslash (\) from all the paths. However, if I do this, certain paths won't work. For example, I have a master page that is used for some pages on two different folders: \folder1, and also \folder1\subFolder1. For pages located at \folder1, everything is fine, but for pages at \folder1\subFolder1, paths on the master page will be incorrect as they would be relative to \folder1 which is where the master page is located. I hope I'm making myself clear.
So the question is, how can I have Visual Studio run under as opposed to so that everything works as epected? Or better yet, am I approaching this the right way? How should this be accomplished?
Thanks
_________________________________
I think, therefore I am. [Rene Descartes]