我一直在努力重新配置工作服务以添加 netTcp 端点。
该服务托管在 IIS 8.5 上
我收到以下异常:
找不到与具有绑定 NetTcpBinding 的终结点的方案 net.tcp 匹配的基地址。注册的基地址方案是 [http,https]
堆栈跟踪:
[InvalidOperationException:找不到与绑定 NetTcpBinding 的端点的方案 net.tcp 匹配的基地址。注册的基地址方案为 [http,https]。]
System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +16994291
System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost) +1092
System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) +89
System.ServiceModel.ServiceHost.ApplyConfiguration() +162
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +207 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +474
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +42
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +569
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1435
System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity事件跟踪活动)+76
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901[ServiceActivationException:服务'/servicebus.svc'由于编译过程中的异常而无法激活。异常消息是:找不到与具有绑定 NetTcpBinding 的端点的方案 net.tcp 匹配的基地址。注册的基地址方案为 [http,https]..]
System.Runtime.AsyncResult.End(IAsyncResult result) +624522
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +196075
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult a) +166
<services>
<service name="Niloosoft.ServiceBus" behaviorConfiguration="AuthenticationAndAuthorizationSecurity">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:7213"/>
</baseAddresses>
</host>
<endpoint
address="secureBus"
binding="basicHttpBinding"
bindingConfiguration="TransportSecurity"
contract="Niloosoft.IServiceBus" />
<endpoint
address="tcpBus"
binding="netTcpBinding"
bindingConfiguration="ServiceBusTcpBinding"
contract="Niloosoft.IServiceBus" />
<endpoint
address="tcpMex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<endpoint
address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
绑定配置似乎适用于其他服务,但我可能会遗漏其他东西。
IIS 对每个服务都有绑定配置,我在那里添加了一个带有 *:7213 地址的 tcp 绑定。
关于我所缺少的任何建议和想法?我浏览了很多不同的帖子,看看我是否在某个地方犯了错误。
感谢所有帮助。