<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.5">
            <assemblies>
                <add assembly="System.Web.Mvc"/>
            </assemblies>
        </compilation>
        <pages>
            <namespaces>
                <add namespace="System.Web.Mvc"/>
                <add namespace="System.Web.Mvc.Html"/>
            </namespaces>
        </pages>
        <httpRuntime targetFramework="4.5" />
    </system.web>
    <system.webServer>
        <handlers>
            <remove name="WebDAV" />
            <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
            <remove name="SimpleHandlerFactory-Integrated"/>
            <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,POST,PUT,DELETE,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
            <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,POST,PUT,DELETE,OPTIONS" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
        </handlers>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="WebDAVModule" />
        </modules>
    </system.webServer>
    <system.serviceModel>
        <services>
            <service name="Ws.Rest.WCF.TestService">
                <endpoint binding="webHttpBinding" contract="Ws.Rest.WCF.ITestService" behaviorConfiguration="ws"/>
            </service>
        </services>
        <behaviors>
            <endpointBehaviors>
                <behavior name="ws">
                    <webHttp automaticFormatSelectionEnabled="true"/>
                </behavior>
            </endpointBehaviors>
        </behaviors>
    </system.serviceModel> 
</configuration>
