IIS 8 - Missing components for ASP.NET 4.5

on Tuesday, September 23, 2014
Today I've got the following error message on a clean Windows 8.1 installation with IIS8:

HTTP-Fehler 500.19 - Internal Server Error
Auf die angeforderte Seite kann nicht zugegriffen werden, da die zugehörigen Konfigurationsdaten für die Seite ungültig sind.

Detaillierte Fehlerinformationen:
Modul     IIS Web Core
Benachrichtigung     BeginRequest
Handler     Noch unbestimmt
Fehlercode     0x80070021
Konfigurationsfehler     Dieser Konfigurationsabschnitt kann in diesem Pfad nicht verwendet werden. Dies ist der Fall, wenn der Abschnitt auf übergeordneter Ebene gesperrt ist. Die Sperrung erfolgt standardmäßig (overrideModeDefault="Deny") oder wird explizit mit einem location-Tag mit overrideMode="Deny" oder der Legacyeinstellung allowOverride="false" festgelegt.

This message is very confusing. The problem was, that I've forgotten to install the windows features for ASP.NET 4.5. If you get this message then check your windows configuration for missing components.





StructureMap - ObjectFactory will be removed in a future 4.0 release.

If you use a StructureMap maybe you will get the following warning:

Class 'StructureMap. ObjectFactory' is obsolete: ObjectFactory will be removed in a future 4.0 release of StructureMap. Favor the usage of the Container class for future work

The ObjectFactory is a wrapper which provides a single static container instance. The simplest way to avoid problems in the upcoming 4.0 release of structure map is to take a IContainer instance in the constructor like this http://pastebin.com/xczLLVTE.
Information about the configuration for IContainer you can find under http://docs.structuremap.net/UsingTheContainerOutsideOfObjectFactory.htm.