Sachin Trivedi
Sachin Trivedi

Reputation: 2053

.Net 5.0 Web API deployment issue on IIS

I am having issues with .net core web api deployments on IIS.

After following all these required steps i am not able to browse through the published APIs using localhost. but it shows some weird errors like HTTP Error 404.0 - Not Found

enter image description here

Upvotes: 1

Views: 965

Answers (1)

samwu
samwu

Reputation: 5235

Please make sure the necessary feature like static content and asp.net feature in turn windows features on or off/add role and feature->internet information service->world wide web service->application development feature->asp.net has been enabled.

In addition, you could try to add runAllManagedModulesForAllRequests="true" attribute to your module section just like:

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true" >    
  </modules>
</system.webServer>

Or you could try

<system.webServer>
 <modules runAllManagedModulesForAllRequests="true" >
   <remove name="UrlRoutingModule"/>    
 </modules>
</system.webServer>

Upvotes: 0

Related Questions