简体   繁体   English

IIS发布后找不到控制器功能

[英]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. 我有一个带有WEB API 2控制器,Owin Oauth 2授权和基于Angular 2的前端客户端的ASP.NET 4.5.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. 该解决方案可以在调试器中完美运行,但是将其发布到运行IIS 7的服务器上的网站上时,将使用代码404返回对控制器方法的调用。

Logs produced by IIS: http://www.filedropper.com/uex161219 IIS产生的日志: http : //www.filedropper.com/uex161219

HTTPERR file from %SystemDrive%\\Windows\\System32\\LogFiles\\HTTPERR: http://www.filedropper.com/httperr1 来自%SystemDrive%\\ Windows \\ System32 \\ LogFiles \\ HTTPERR的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解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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