none
WCF MSMQ消息队列协议的发布问题?? RRS feed

  • 问题

  • 我在学习WCF使用NetMsmqBinding,服务配置如下:

     <system.serviceModel>
        <serviceHostingEnvironment>
          <serviceActivations>
            <add relativeAddress="AsycPlus.svc" service="Businces.AsycPlus"/>
            <add relativeAddress="Log.svc" service="Businces.Log"/>
          </serviceActivations>
        </serviceHostingEnvironment>
    
        <services>
          <service name="Businces.AsycPlus">
            <endpoint binding="basicHttpBinding" contract="Contracts.IAsycPlus"/>
          </service>
    
          <service name="Businces.Log">
            <endpoint address="net.msmq://10.16.112.75/private/WCFTest"
                      binding="netMsmqBinding"
                      contract="Contracts.ILog" bindingConfiguration="NoAuthor"/>
          </service>
        </services>
    
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
    
        <bindings>
          <netMsmqBinding>
            <binding name="NoAuthor">
              <security mode="None"></security>
            </binding>
          </netMsmqBinding>
        </bindings>
      </system.serviceModel>
    在运行时,访问 Log.svc 时出现 不支持协议“net.msmq”。 的黄页 ,我的开发工具为 VS 11 调试配置使用 IIS Express,请问我的配置有问题吗?
    2012年3月13日 8:41

答案

全部回复