Category Archives: IIS

ASPNET MVC IIS7 and Bad Request

While working on an app recently I ran into the issue of needing to handle httpErrors at runtime in a dynamic fashion. I did this with some custom controller execution and routing. If a user were to type in an invalid address a custom 404 would be returned. Example: http://example.org/foo The Problem Unfortunately my custom…

ASP.NET App – is not a valid Win32 application

Never seen this one before until this morning. Well, I’ve seen the “not a valid Win32 application” error a ton of times, but this is the first time on with an ASP.NET app (running MVC).   How to Fix If you ever see this and your app is running IIS7, here’s the first thing to…

IIS 7 – This configuration section cannot be used at this path.

If you’re new to IIS 7 (you probably are) you might receive this nice little gem when you first start working with it: HTTP Error 500.19 – Internal Server ErrorDescription: The requested page cannot be accessed because the related configuration data for the page is invalid. Error Code: 0×80070021 Notification: BeginRequest Module: IIS Web Core…