I have a small MVC app that works locally, but when I publish it to the server (running IIS6), all the links get messed up.
For example, a typical link when running locally would be:
http://localhost:3467/Exceptions?exdate=20090108
However, when I publish it to our dev server at \\deverserver\apps\MyProject
, note the duplication in the URL for the same link:
http://devserver/apps/MyProject/MyProject/Exceptions?exdate=20090108
Any idea what's going on?
Note: These links are all built via Html.ActionLink()
.
Update: I can duplicate this locally if I specify a Specific Port and Virtual Path in My Project | Web | Use Visual Studio Development Server:
- Specific Port: 1234
- Virtual Path: /apps/MyProject
- Resulting URL:
http://localhost:1234/apps/MyProject/MyProject/Exceptions?exdate=20090108