0

I'm new to MVC3 and have the feeling this may be an obvious problem but nevertheless I can't find a related question on the issue.

I'm developing a web site in MVC3. My production environment has several web sites positioned as follows, eg:

www.companywebsite.com/app1/ www.companywebsite.com/app2/ ...to www.companywebsite.com/mynewapp/

I'm using IIS on Windows server2008 and have created the "mynewapp" folder. But when I deploy my application into this folder all my relative links and files break.

I've converted my scripts and images to T4-MVC references which seems to handle the relative paths but any bog-standard hyperlinks that I have as relative links will not work (and I don't want to convert them to Razor links due to use of images).

All my mapped routes are working fine without change.

Is there a global setting I can use for deployment to the production environment which will tell my project that the base folder is /mynewapp ??

Thanks in advance.

0 Answers0