在配置msmq端点时,msmq已经安装并运行 [英] problem in configuring msmq end point ,msmq is already installed and running

查看:118
本文介绍了在配置msmq端点时,msmq已经安装并运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有服务和运营合同---



i have a service and operation contract ---

[ServiceContract]
   interface IwcfService
   {
       [OperationContract(IsOneWay=true)]
       void sum(int a,int b);
   }







我的app.config文件就像---






and my app.config file is like ---

<configuration>

  <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  </appSettings>
  <system.web>
    <compilation debug="true" />
  <authentication mode="None"></authentication>
  </system.web>
  

  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="myBasciHttpBinding" />
      </basicHttpBinding>
      <netMsmqBinding>
        <binding name="myMsmqBinding">
          <security>
            <transport msmqAuthenticationMode="None" msmqProtectionLevel="None" />
            <message clientCredentialType="None" />
          </security>
        </binding>
      </netMsmqBinding>
      <netNamedPipeBinding>
        <binding name="namedpipeConfig" />
      </netNamedPipeBinding>
      <netTcpBinding>
        <binding name="mynetTcpBinding" />
      </netTcpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="wcfServicebehaviour">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="wcfServicebehaviour" name="WcfServiceLibraryNew.wcfServiceClass">
        <clear />
        <endpoint binding="basicHttpBinding" bindingConfiguration="myBasciHttpBinding"

          name="endPoint1" contract="WcfServiceLibraryNew.IwcfService"

          listenUriMode="Explicit" />
        <endpoint address="nettcp" binding="netTcpBinding" bindingConfiguration="mynetTcpBinding"

          name="endPoint2" contract="WcfServiceLibraryNew.IwcfService"

          listenUriMode="Explicit" />
        <endpoint address="netpipeadd" binding="netNamedPipeBinding"

          bindingConfiguration="namedpipeConfig" name="namedPipeEndPoint"

          contract="WcfServiceLibraryNew.IwcfService" listenUriMode="Explicit" />
        <endpoint address="MSMQAddress" binding="netMsmqBinding" bindingConfiguration="myMsmqBinding"

          name="MSMQ" contract="WcfServiceLibraryNew.IwcfService" />
        
        
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:53114/wcfService.svc" />
            <add baseAddress="net.tcp://localhost:53115/wcfService.svc" />
            <add baseAddress="net.pipe://localhost/wcfService.svc" />
            <add baseAddress="net.msmq://localhost/wcfService.svc" />
          </baseAddresses>
        </host>
      </service>
    </services>
  </system.serviceModel>
</configuration>







当我运行它时会出现类似---

的错误打开队列时出错:在工作组模式下安装的消息队列不支持此操作。 />
(-1072824214,0xc00e006a)。无法从队列中发送或接收消息。确保安装了MSMQ

并运行。还要确保队列可以使用所需的访问模式打开并且

授权。





i已经启用了程序和功能的功能---



MicrosoftMessageQueue服务器

-MicrosoftMessageQueue服务器核心

-MSMQ Http支持

-MSMQ触发器

-Multicasting支持

-MSMQ DCOM代理







也可以做一些修改



但它没有运行。我google了非常。但找不到解决方案




when i run this it gives error like ---
"An error occurred while opening the queue:This operation is not supported for Message Queuing installed in workgroup mode.
(-1072824214, 0xc00e006a). The message cannot be sent or received from the queue. Ensure that MSMQ is installed
and running. Also ensure that the queue is available to open with the required access mode and
authorization."


i have already enables features in program and features which was ---

MicrosoftMessageQueue server
-MicrosoftMessageQueue server core
-MSMQ Http Support
-MSMQ Triggers
-Multicasting Support
-MSMQ DCOM Proxy



and also make some changes

but it's no running . i googled out very much . but not find solution

推荐答案

来源: http://sylvester-lee.blogspot.no/2013/03/wcf-with-msmq.html [ ^ ]



常见错误2:



错误发生打开队列时发生故障:在工作组模式下安装的消息队列不支持此操作。 (-1072824214,0xc00e006a)。无法从队列中发送或接收消息。确保已安装并运行MSMQ。还要确保队列可以使用所需的访问模式和授权打开。





根本原因:

服务端点地址无效。



分辨率:

确保端点地址在格式如下:

例如:net.msmq:// localhost / private /< yourqueuename>





Source: http://sylvester-lee.blogspot.no/2013/03/wcf-with-msmq.html[^]

Common Error 2:

An error occurred while opening the queue:This operation is not supported for Message Queuing installed in workgroup mode. (-1072824214, 0xc00e006a). The message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode and authorization.


Root Cause:
The service endpoint address is invalid.

Resolution:
Make sure the endpoint address is in the following format:
For example: net.msmq://localhost/private/<yourqueuename>


<endpoint name="netMsmqServiceEndpoint">
             address="net.msmq://localhost/private/<yourqueuename>"
             binding="netMsmqBinding" bindingConfiguration="basicMsmq"
             contract="<yourservicecontractname>" /></yourservicecontractname></yourqueuename></endpoint>


这篇关于在配置msmq端点时,msmq已经安装并运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆