iis 6 - Relative paths not resolved in IIS5 same as IIS6 -


i have c# website works fine in iis6 & iis7 on company intranet attempting install same website on windows xp box iis5 different part of company intranet. website content fine css , menus broken, of relative paths can't found.

i using notation this: <img src="images/a.gif" works fine, , this: masterpagefile="~/app_masterpages/default.master" works fine, stuff this: @import "/app_themes/default.css" , this: src="../app_scripts/stringformat.js" no good. in code-behind request.applicationpath missing "/" off end.

i tried unticking "enable parent path" in iis , did iisreset made no difference. tried installing iis developer express, confusing , sucked much. don't want have go through whole application , change every relative path support iis5 format, option? (apart upgrading windows)

i suspect on iis6 & 7 application in question being deployed site root , on xp/iis5.1 you've deployed sub folder running iis application.

you have 2 options:

  1. deploy site iis5.1 root (c:\inetpub\wwwroot).

  2. fix absolute paths , make them application relative i.e. @import /app_themes.

  3. persevere iis developer express, it's not sucky.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -