将MVC应用程序发布到IIS后,不会调用WCF服务 [英] WCF service is not getting called after publishing MVC application to IIS

查看:179
本文介绍了将MVC应用程序发布到IIS后,不会调用WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个类库项目,其中我添加了客户端提供的wcf服务的服务引用。



我正在访问MVC应用程序中的类库。

我已将绑定和端点添加到MVC应用程序的web.config中。



当我运行应用程序时,调试模式服务被调用,我得到了所需的输出。



但是当我向IIS发布MVC应用程序时,WCF服务方法没有被调用。



我们是否需要在IIS中添加任何设置才能使其正常工作。或者是否有其他方法可以使用具有服务参考的类库。



提前感谢您的建议。



-Avinash

Hi All,

I have a class library project in which I had added a service reference of a wcf service provided by client.

I am accessing the class library in MVC application.
I have added the bindings and endpoints to web.config of a MVC application.

When I am running application is debug mode service is getting called and I am getting required output.

But when I published the MVC application to IIS and WCF service method is not getting called.

Do we need to add any setting in IIS to make this working. Or Is there any other way to use class library which is having a service reference.

Thanks in advance for your suggestions.

-Avinash

推荐答案

如果我遇到了您的问题,我会在IIS服务器上安装远程调试工具,以便能够将我的调试器连接到服务器上的远程进程。

这将允许分析和跟踪问题。



关于远程的CP有一篇很好的文章IIS调试;那里:

远程IIS调试:调试托管在远程IIS服务器上的ASP.NET应用程序 [ ^ ]



不完全是一个解决方案,但也许正在解决问题的路上。无论如何,希望这会有所帮助。
If I had your issue, I would install the remote debugging tools on the IIS server to be able to attach my debugger to the distant process on the server.
This would allow analyzing and tracking down the problem.

There is an excellent article on CP about remote IIS debugging; there:
Remote IIS Debugging : Debug your ASP.NET Application which is hosted on "Remote IIS Server"[^]

Not exactly a solution, but maybe something on the way to the resolution. Anyway, hope this helps.


这篇关于将MVC应用程序发布到IIS后,不会调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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