C#-MSMQ Installation and Configuration

Source: Internet
Author: User
Tags msmq

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.