A quick note about asp.net mvc Url Helpers and AppHarbor

If you’re using some of the Url Helpers in asp.net mvc, like Url.Action in one of your controllers, you may run into an issue where the generated url will contain a non public port number. In that case, you can just add a setting to your config value as noted here:


Setting aspnet:UseHostHeaderForRequestUrl 

to true should remedy the issue.

It should look something like this:



<add key=”aspnet:UseHostHeaderForRequestUrl” value=”true”/>