这个集合已经包含一个使用net.tcp方案的地址,但是我只定义了一个tcp端点 [英] This collection already contains an address with scheme net.tcp but I just have one tcp endpoint defined

查看:65
本文介绍了这个集合已经包含一个使用net.tcp方案的地址,但是我只定义了一个tcp端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人帮忙.以下是我的app.config配置.在此,我仅声明一个net.tcp和一个mex.另外,我只是出于良好的考虑启用了multiSiteBindingsEnabled.没关系,我仍然会收到以下消息 当尝试浏览该服务时:该集合已经包含具有方案net.tcp的地址".
Could some one please help. Below is my app.config configuration. In this I declare only one net.tcp and one mex. Also, I enabled multipleSiteBindingsEnabled just for good measure. Doesn't matter what I do I still receive the following message when attempting to browse the service: "This collection already contains an address with scheme net.tcp". Any hint would be appreciated.

推荐答案

对于IIS托管,您无需指定自己的基地址-它们由.svc的URI给出.文件.在您的情况下,我想您已经将net.tcp设置为站点中允许的协议. net.tcp的默认站点绑定位于端口808上,因此您 基地址已经是

For IIS hosting you don;t specify your own base addresses - they are given by the URI of the .svc file. In your case i guess you have net.tcp set up as an allowed protocol in your site. The default site binding for net.tcp is on port 808 so therefore you already have a base address of 

 

net.tcp://localhost:808/< vdir>/service.svc

net.tcp://localhost:808/<vdir>/service.svc


这篇关于这个集合已经包含一个使用net.tcp方案的地址,但是我只定义了一个tcp端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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