zoukankan      html  css  js  c++  java
  • 此集合已经采用方案 http 的地址。此集合中每个方案中最多只能包含一个地址。

    错误信息:此集合已经采用方案 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:ColleagueBaiYongshengServerHostProgram.cs:行号 85

    这个问题百度下,可以找到很多解决方案

    但是目前使用的代码中,同一个类型的基地址,只要有一个就可以了

  • 相关阅读:
    node体验
    JS练习--prototype的一道题目
    JS的OOP--继承之prototype
    JS的OOP--new一个function背后的实际操作
    JS中new运算符的运算顺序
    thymeleaf 拼接字符串与变量
    spring jpa exists
    LocalDateTime json格式化
    格式化java8 LocalDateTime
    springboot定时任务
  • 原文地址:https://www.cnblogs.com/chucklu/p/4701382.html
Copyright © 2011-2022 走看看