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:

http://support.appharbor.com/kb/getting-started/workaround-for-generating-absolute-urls-without-port-number

Setting aspnet:UseHostHeaderForRequestUrl 

to true should remedy the issue.

It should look something like this:

<appSettings>

….

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

Advertisements