Zum Hauptinhalt springen

Prevent „Method not Allowed“ Error when using ASP.NET Web API

The error happens when the REST methods (POST, PUT, DELETE, etc). are already registered by another application. The following entries in the  web.config helped me to overcome the issue: <system.webServer> <validation validateIntegratedModeConfiguration=“false“ /> <modules runAllManagedModulesForAllRequests=“true“> <remove name=“WebDAVModule“ /> </modules> <handlers> <remove name=“WebDAV“ /> <remove name=“ExtensionlessUrlHandler-ISAPI-4.0_32bit“ /> <remove name=“ExtensionlessUrlHandler-ISAPI-4.0_64bit“ /> <remove name=“ExtensionlessUrlHandler-Integrated-4.0″ /> <add name=“ExtensionlessUrlHandler-ISAPI-4.0_32bit“ path=“*.“ […]

WPF Fix: Style is Only Applied to First Element

There is a bug in WPF that leads to a very strange behavior: A style that is defined in the resources is not applied to the first element, but to all others. This only happens when MergedDictionaries are cascaded. The following code is a valid XAML definition, but will not work as expected: <Application.Resources> <ResourceDictionary> […]