Q:

How to solve "HTTP Error 500.19 - Internal Server Error" ""

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

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:

how to solve this problem? 

A:

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

A:

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