1

Closed

Error Opening Queue When MSMQ is Disabled in the App.config

description

Serena,
 
First of all let me say thanks for taking the time to take on such a large-scale example. However, after reading the readme.txt very carefully, I am still unable to get the application to work using the console host.
 
MSMQ has been disabled by setting the value to an empty string as you stated.
 
I'm getting this message in my console window (please note that the console host and both WinUI applications are being launched on start-up).
 

Starting Expense Service Host ...
Verifying Message Queue ...
 
QueueName not specified.
Sample will continue to run without MSMQ support.
To enable MSMQ support, please specify a QueueName in config file.
 
Loading WCF Expense Service ...
Error Initializing Host.
Exception : There was an error opening the queue. Ensure that MSMQ is installed
and running, the queue exists and has proper authorization to be read from. The
inner exception may contain additional information.
 
Please refer to the README.TXT for setup and installation instructions.
 

 
What I have noticed is that the URI value within the following is blank. It's throwing an error.
 
    /// <summary>
    /// Loads the WCF Expense Service.
    /// </summary>
    /// <returns>A ServiceHost instance.</returns>
    private static ServiceHost LoadWCFService()
    {
        Console.Write("Loading WCF Expense Service ... ");
 
        // Create Service Host.
        WorkflowServiceHostFactory factory = new WorkflowServiceHostFactory();
        ServiceHost svcHost = factory.CreateServiceHost(typeof(ExpenseService)); // THIS IS WHERE THE EXCEPTION IS BEING THROWN
        svcHost.Open();
 
        Console.WriteLine("Done!");
        return svcHost;
    }
 
Please help.
Closed Nov 28, 2008 at 8:16 AM by firedancer
Resolved

comments

firedancer wrote Jun 26, 2008 at 10:09 AM

Hi Randall,

I missed out a step in the README file. Please remove or remark all endpoints that is referring to the MSMQ binding in the config files.

Thank you for discovering this.

randallsexton wrote Jun 26, 2008 at 12:39 PM

Serena,

That fixed the error. Thanks for your help.

Regards,
Randall

wrote Nov 28, 2008 at 8:16 AM

wrote Feb 21, 2013 at 10:42 PM

wrote May 16, 2013 at 10:17 AM