Reputation: 6232
I have configured rewrite rules in my application on IIS. However when I try to enter the page which should redirect me to ASP.NET Core Web API action I get an error:
The file extension for the requested URL does not have a handler configured to process the request on the Web server
Note: Changing static files handler mapping doesn't help.
Upvotes: 6
Views: 11896
Reputation: 157
I run onto the same problem with IIS hosted Angular Universal website calling .NET Core API. I had to move the setup from one working server to another I faced the problem on the new one, which confused me a lot. Searched a lot in the space and configured many things as
At some point I found out I need to install .NET Core 6 Hosting bundle, which adds two IIS modules -
AspNetCoreModule
and
AspNetCoreModuleV2
The other thing that I had to do is to
Application Request Routing Cache -> Server Proxy Settings -> Enable Proxy settings
as mentioned above accepted answer - https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.25-windows-hosting-bundle-installer
Upvotes: 0
Reputation: 11
You need to add a static handler mapping as indicated in the diagram below:
Upvotes: 1
Reputation: 6232
I'll answer my question:
Error doesn't seem to be very descriptive. What solved the issue is installing Application Request Routing Cache
and enabling proxy in IIS Manager in Application Request Routing Cache -> Server Proxy Settings -> Enable Proxy
Upvotes: 18