我正在创建一个在本地开发服务器上正常运行的web api应用程序。
<package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net45" />
但是当我将它部署到IIS时,它会给出以下错误,
我的网络配置在下面,
<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>