此集合已经采用方案 http 的地址。此集合中每个方案中最多只能包含一个地址。
2015-08-04 10:56
891 查看
错误信息:此集合已经采用方案 http 的地址。此集合中每个方案中最多只能包含一个地址。如果服务承载于 IIS 中,则可以通过将“system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled”设置为 true,或指定“system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters”来解决此问题。
参数名: item
异常类型:System.ArgumentException
程序集:System.ServiceModel
方法:Void InsertItem(Int32, System.Uri)
跟踪栈信息:
在 System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
在 System.Collections.Generic.SynchronizedCollection`1.Add(T item)
在 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
在 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
在 Host.Program.StartUp() 位置 d:\Colleague\BaiYongsheng\Server\Host\Program.cs:行号 85
这个问题百度下,可以找到很多解决方案
但是目前使用的代码中,同一个类型的基地址,只要有一个就可以了
参数名: item
异常类型:System.ArgumentException
程序集:System.ServiceModel
方法:Void InsertItem(Int32, System.Uri)
跟踪栈信息:
在 System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
在 System.Collections.Generic.SynchronizedCollection`1.Add(T item)
在 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
在 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
在 Host.Program.StartUp() 位置 d:\Colleague\BaiYongsheng\Server\Host\Program.cs:行号 85
这个问题百度下,可以找到很多解决方案
但是目前使用的代码中,同一个类型的基地址,只要有一个就可以了
相关文章推荐
- Http请求与响应格式
- Https协议相关
- 7月第4周网络安全报告:被篡改的.COM网站占75.4%
- Https(SSL/TLS)原理详解
- android利用广播全局监听网络。
- 计算机网络面试题
- 南邮 OJ 1075 社会关系网络
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 错误
- 计算机网络面试题
- BP单隐层神经网络 代码实现 以及 详细步骤
- 帧同步在竞技类网络游戏中的应用
- C,C++经典笔试题(答案)转自:http://blog.163.com/jianhuali0118@126/blog/static/377499702008230104125229/
- Hadoop HDFS 的 HttpFS
- iOS网络——NSURLCache设置网络请求缓存
- OKHttp源码解析(三)
- android请求网络——第三方库android-async-http的使用(1)
- java中的网络连接
- iOS网络库Alamofire内部实现初探
- HttpPost 中文乱码。
- golang捕获http.ResponseWriter被close的两种方式(有无context)