AngularService无法命中控制器 [英] AngularService is unable to hit controller

查看:70
本文介绍了AngularService无法命中控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试调试我的应用程序时,我发现我的Angular Service无法调用MVC Controller。它只能在打开F12调试工具时才能调用。

这只发生在IE上。



如果有人有任何想法,请分享你的经验。



提前致谢:)

When i try debugging my app ,i found that my Angular Service is unable to call MVC Controller. And it is able to call only when F12 debugging tool is opened.
This is happening only with IE.

If some one have any idea, Please share your experience.

Thanks in advance :)

推荐答案

我认为你的路由网址是不正确的。



请看下面的链接



http://www.asp.net/web-api/概述/开始使用aspnet-web-api / tutorial-your-first-web-api [ ^ ]
I think your routing URL is incorrect.

Please have a look at below link

http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api[^]


这篇关于AngularService无法命中控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆