Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i have a service and operation contract ---

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



and my app.config file is like ---

XML
<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>



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
Posted
Comments
sashje- 22-Jan-15 3:40am    
Tried the approach described at: http://sylvester-lee.blogspot.no/2013/03/wcf-with-msmq.html ?
Gaurav Dixit 22-Jan-15 4:39am    
the url u give here is not available
sashje- 22-Jan-15 18:39pm    
Strange.. Works for me.. i'll try to copy paste the html to a "solution", as the comment field does not support code

1 solution

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>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900