简体   繁体   中英

Controller functions not found after IIS publish

I have an ASP.NET 4.5.2 solution with WEB API 2 controllers, Owin Oauth 2 authorization and a front end client based on Angular 2.

The solution runs perfectly in the debugger, but when it is published to a website on a server running IIS 7, Calls to the controller methods are returned with code 404.

Logs produced by IIS: http://www.filedropper.com/uex161219

HTTPERR file from %SystemDrive%\\Windows\\System32\\LogFiles\\HTTPERR: http://www.filedropper.com/httperr1

Any help on how to debug this or solve the problem would be appreciated.

通过将应用程序池的.NET Framework版本从2.0更改为4.0解决了问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM