BizTalk WCF 服务发布向导在通过 IIS 浏览服务时将架构公开为 WCF 服务问题

BizTalk WCF Service Publishing Wizard to expose schemas as WCF service issue when browse services through IIS

Server Error in '/OrderProcessingService' Application.

This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

有人可以使用 BizTalk WCF 发布向导帮助解决公开架构的问题吗?

After changing web.config file as below

   </system.serviceModel>
      <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
   </system.serviceModel>

得到不同的错误和跟踪如下:

Stack Trace: [FileNotFoundException: Could not load file or assembly 'Microsoft.BizTalk.Interop.SSOClient, Version=9.0.1000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.] Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.ConfigureClientCredentials() +0 Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime() +1173 Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHost`3.InitializeRuntime() +130 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +63 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +563 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +135 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +654

[ServiceActivationException: The service '/OrderProcessingService/OrderProcessingService.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'Microsoft.BizTalk.Interop.SSOClient, Version=9.0.1000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..] System.ServiceModel.AsyncResult.End(IAsyncResult result) +15778592 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +15698937 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +265 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +227 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

第一个错误基本上意味着您已尝试在同一个应用程序池中发布多个不同的协议。您需要为不同的协议设置单独的 IIS 应用程序池。

还要确保应用程序池是 运行 独立主机用户。