如何将wcf服务配置为本地iis5.1 [英] how to configure wcf service to local iis5.1
问题描述
我开发了一个Asp.Net网站.在此应用程序中,我使用Linq向Sql编写了Wcf Service.有时工作正常,但有时却显示错误,如下所示:
.........
在http://localhost:1034/FirstGuardian/WcfService.svc上没有侦听终结点的端点可以接受该消息.这通常是由不正确的地址或SOAP操作引起的.有关更多详细信息,请参见InnerException(如果存在).
.........
当出现此错误时,我删除了Wcf服务参考,然后再次添加了Wcf服务参考,然后它可以正常工作.
但是我需要一个解决方案.因为每次出现上述错误时都需要添加服务引用.
因此,请任何人为我的问题提供一些解决方案.
谢谢,
Vijay
Hi,
I Developed One Asp.Net Website.In This Application I wrote Wcf Service with Linq to Sql.Some Times It is Working Fine.But Some Times It is Showing Error Like Below:
.........
There was no endpoint listening at http://localhost:1034/FirstGuardian/WcfService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
.........
When This Error Came I Deleted the Wcf Service Reference and Again I added The Wcf Service Reference Then It is Working Fine.
But I Need A Solution For This.Because Every time it is required to Add service reference when error came like above.
So Please any one give some solution to my problem.
Thanks,
Vijay
推荐答案
查找以下有用的链接.
http://stackoverflow.com/questions/1653378/steps-到在iis5-1xp中托管wcf服务
http://msdn.microsoft.com/en-us/library/bb332338.aspx# msdnwcfhc%5Ftopic5
http://stackoverflow.com/questions/4828569/deploying-a- wcf-service-on-iis-5-1
http://forums.silverlight.net/t/214007.aspx/1
希望有帮助!
Find following links useful for the same.
http://stackoverflow.com/questions/1653378/steps-to-host-a-wcf-service-in-iis5-1xp
http://msdn.microsoft.com/en-us/library/bb332338.aspx#msdnwcfhc%5Ftopic5
http://stackoverflow.com/questions/4828569/deploying-a-wcf-service-on-iis-5-1
http://forums.silverlight.net/t/214007.aspx/1
Hope this help!
这篇关于如何将wcf服务配置为本地iis5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!