标签:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <services> <service name="ConsoleApplication1.Service1"> <endpoint address="net.msmq://localhost/private/myservice" binding="netMsmqBinding" contract="ConsoleApplication1.IService1" bindingConfiguration="mybinding"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> </baseAddresses> </host> </service> </services>
<netMsmqBinding> <binding name ="mybinding"> <security mode="None"> <!--<transport msmqAuthenticationMode="None" msmqProtectionLevel="None" /> <message clientCredentialType="None" />--> </security> </binding> </netMsmqBinding> </bindings></system.serviceModel> |
在配置system.serviceModel时,像上面的这样配置
在控制面板中安装MSMQ
标签:
原文地址:http://www.cnblogs.com/weloveshare/p/5300019.html