13
votes

I want to upload my webapi to iis but i am getting the following error:

enter image description here

Config Source:
   24:     </modules>
   25:     <handlers>
   26:       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />

Here is my webconfig file:

<handlers>
  <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  <remove name="OPTIONSVerbHandler" />
  <remove name="TRACEVerbHandler" />
  <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>

I am using windows 8.1. I have installed all features of IIS.

My application pool is:

enter image description here

how to solve this problem?

2
check the version of .Net framework with app poolcodebased

2 Answers

37
votes

There are two things to check that you have appropriate installed .Net. And also the following configurations are checked.

enter image description here

11
votes

You need to check these things. if your site is hosted on Windows Server 2008, 2012/R2 and 2016.

enter image description here