I'v read and applied How to add Web API to an existing ASP.NET MVC 4 Web Application project?
The project is a pseudo MVP project, it loads and configures MVP but it has no controllers, just handlers. I added an ASP.NET Web Api. Now all the *.aws are returning 404 (not the IIS detailed error page however)
I tried removing MVC runtime to no avail. Help?
web.config
<system.web>
<compilation debug="true" targetFramework="4.6.2">
<assemblies>
<!--
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
<expressionBuilders></expressionBuilders>
</compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<namespaces>
<!--
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
-->
<add namespace="System.Web.Routing" />
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.WebPages" />
</namespaces>
</pages>
<httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="Redacted Handler" path="redacted.aws" verb="*" type="Redacted.Handler" resourceType="Unspecified" preCondition="integratedMode" />
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="false"></defaultProxy>
</system.net>
Aucun commentaire:
Enregistrer un commentaire