views:

46

answers:

0

I want that my default.aspx accept all HTTP verbs like GET, POST, OPTIONS, PROPFIND, etc. Per default it accept only the verbs GET,HEAD,POST and DEBUG.

If I change it over the GUI of the IIS Manager then i receive a web.config like:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <location path="default.aspx">
    <system.webServer>
        <handlers>
            <remove name="PageHandlerFactory-ISAPI-2.0" />
            <add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="*"
             modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
             resourceType="Unspecified" requireAccess="Script"
             preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
        </handlers>
    </system.webServer>
  </location>
</configuration>

How you can see there are many version depends settings like ISAPI 2.0, 32bit and .NET framwork 2.0. Because this should be installed on many different systems this is a bad solution. Are there a solution that work on many different systems?