views:

24

answers:

0

I am working on an ASP.NET website, and I am puzzled by the behavior that occurs only when I am using localhost or if my website resides inside another website in IIS.

I have virtual path as in I could have something like mywebsitefolder\category\category1.aspx when the folder category does not even exist in first place by using url rewriters and such.

so when I right click on broken images, they show the image path as

http://www.mydomain.com/_images/categories.jpg

which breaks and a path shown below works:

http://www.mydomain.com/mywebsitefolder/_images/categories.jpg.

Same problem with Visual Studio debugger, so what needs to be done so that my paths work for Visual Studio debugger and if my website resides in a subfolder of another website on IIS.

related questions