20 June 2012

Blank Page on MVC Application

I deployed an .Net MVC application to a new server and it just returned a blank page: no error, no source, no nothing. Not helpful.

MS checklist pointed me in the direction of aspnet_regiis.exe which although I didn't think was needed as I'd already done it I ran for good measure:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

After finding this post I realised HTTP Redirects was missing so installed that under: Programs and Features, Windows Components, IIS, WWW Services, Common HTTP Features, HTTP Redirection

Then it returned a 403: Forbidden. I am using Elmah so this was doubtless due to that so I added:

<elmah>
    <security allowRemoteAccess="1" />
</elmah>


And voila it appeared as if by magic...

No comments:

Post a Comment