当我尝试在visual中向我的WCF服务添加一个服务引用时,我得到了“协议'net.msmq‘是不支持的”错误。
我已经成功地运行了appcmd set site "Default Web Site" -+bindings.[protocol='net.msmq',bindingInformation='localhost'],我可以在applicationHost.config文件中看到配置。由于我在visual中运行我的服务,是否需要为我的特定应用程序启用net.msmq协议(appcmd应用程序“默认网站/MsmqService”/enabledProtocols:net.msmq)?我不知道如何做到这一点,因为我的服务是运行在视频工作室?如果我不需要这样做,还会有什么问题。这是我的配置。任何帮助都很感激..。
<configuration>
<system.serviceModel>
<services>
<service name="MessageRoutingService"
behaviorConfiguration="ServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:29376" />
</baseAddresses>
</host>
<endpoint name="Response"
address="net.msmq://localhost/private/Response"
binding="netMsmqBinding"
bindingConfiguration="TransactedBinding"
contract="IResponse" />
<endpoint
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<bindings>
<netMsmqBinding>
<binding name="TransactedBinding">
<security mode="None">
</security>
</binding>
</netMsmqBinding>
</bindings>
</system.serviceModel>
</configuration>发布于 2013-12-27 12:02:28
您需要启用组件“(MSMQ) Server”(1),并在IIS (2)上的应用程序中添加"net.MSMQ“协议。
https://stackoverflow.com/questions/5295402
复制相似问题