ASP.NET MVC 4 RC on Windows Azure throws error “HTTP Error 403.14 – Forbidden ”

I’ve been playing with asp.net mvc 4RC and Windows Azure. I stumbled upon an issue when I deployed and tried to access the app in the cloud via browser. The following error was popping up “HTTP Error 403.14 – Forbidden”, it’s annoying, so everything was working on my laptop, though .  I’ve researched the problem and I figured it out, thanks to StackOverflow :),  that setting

<modules runAllManagedModulesForAllRequests="true">

could make the things work but this approach wasn’t the best one due to reasons explained by Colin in this blog : http://www.britishdeveloper.co.uk/2010/06/dont-use-modules-runallmanagedmodulesfo.html . So, having this configuration helped me to solve this problem:


<modules>
 <remove name="UrlRoutingModule-4.0" />
 <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
 </modules>

Best,

Rado

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s