1 2345678910111213141516171819202122232425262728293031323334353637 |
<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" />
<baseAddresses>
<add baseAddress=
"http://localhost:8733/Design_Time_Addresses/ConsoleApplication1/Service1/" />
</baseAddresses>
</service>
</services>
---------
MSMQ验证模式设置为 WindowsDomain,但是MSMQ安装活动目录AD禁用。
通道工厂或者服务宿主不能打开。
解决方法是将MSMQ的安全验证给去掉,设置为none,虽然我觉得这不是为什么好解决办法
-------------------------
<bindings>
<netMsmqBinding>
<binding name =
"mybinding"
>
<security mode=
"None"
>
<!--<transport msmqAuthenticationMode=
"None" msmqProtectionLevel=
"None" />
<message clientCredentialType=
"None" />-->
</security>
</binding>
</netMsmqBinding>
</bindings>
</system.serviceModel>
|
When configuring System.ServiceModel, the configuration like the above
Installing MSMQ in the control Panel
From for notes (Wiz)
C#-MSMQ Installation and Configuration