I have a MVC 4 Empty Web Api application. It works perfectly well when I
tested it using the VS 2013 debugging dev server.
But I now deployed it to IIS 7.5 and I am getting a HTTP 404 error when trying to access the application.
Solution For this :
I was struggling with this as well. Fortunately, Steve Michelotti documented a solution that worked for me here
At the end of the day, I enabled all verbs (verb="*") to the ExtensionlessUrlHandler-Integrated-4.0 handler in my web config. Here is updated web.config
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
Similar Posts :
http://stackoverflow.com/questions/9703090/mvc-4-web-api-iis7-5-http-404-page-not-found
http://stackoverflow.com/questions/20621825/asp-net-mvc-webapi-404-error
But I now deployed it to IIS 7.5 and I am getting a HTTP 404 error when trying to access the application.
Solution For this :
I was struggling with this as well. Fortunately, Steve Michelotti documented a solution that worked for me here
At the end of the day, I enabled all verbs (verb="*") to the ExtensionlessUrlHandler-Integrated-4.0 handler in my web config. Here is updated web.config
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
Similar Posts :
http://stackoverflow.com/questions/9703090/mvc-4-web-api-iis7-5-http-404-page-not-found
http://stackoverflow.com/questions/20621825/asp-net-mvc-webapi-404-error
Comments
Post a Comment