问题描述
大家好,
我有一个类库项目,其中我添加了客户端提供的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
推荐答案
这篇关于将MVC应用程序发布到IIS后,不会调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!