web.config中添加
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>