0
我有一個asp.net應用程序使用WebAPI從數據庫中獲取數據。 此應用程序可以通過連接點託管擴展。 其中一個擴展也使用WebAPI從數據庫中獲取數據。 看來,他們都不能一起跑。 擴展添加到web.config中的以下內容:運行2 .net WebAPI的
<modules runAllManagedModulesForAllRequests="true">
<remove name="ImpersonationWebApiConfig"/>
<add name="ImpersonationWebApiConfig" type="Impersonation.Application.WebApi.App_Start.WebApiConfig" preCondition="managedHandler"/>
</modules>
當我刪/改在web.config中的主要工作和擴展的WebAPI的附加元素得到404錯誤。當Web.config中存在新元素時,主應用程序(主機)會爲每個WebAPI調用返回404 erros消息。
請指教