Monday, December 05, 2011 7:47 PM
I have few wcf service configured with netmsmqbinding on AppFabric configured to Auto start in Windows 2008 R2 + IIS 7.5.
When the server is rebooted, I have following errors with the services,
1, First one is
WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/56140151 Exception: System.ServiceModel.ServiceActivationException: The service '/MyServices.Host/myserviceimpl.svc' cannot be activated due to an exception during compilation. The exception message is: An item with the same key has already been added.. ---> System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.ServiceModel.Activation.HostedTransportConfigurationManager.EnsureInitialized() at System.ServiceModel.Activation.HostedTransportConfigurationManager.InternalGetBaseAddresses(String virtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) Process Name: w3wp Process ID: 3924
2,Another one is like
System.ServiceModel.EndpointNotFoundException: An error occurred while receiving a message from the queue: The Message Queuing service is not available (-1072824309, 0xc00e000b). Ensure that MSMQ is installed and running. Make sure the queue is available to receive from. ---> System.ServiceModel.MsmqException: An error occurred while receiving a message from the queue: The Message Queuing service is not available (-1072824309, 0xc00e000b). Ensure that MSMQ is installed and running. Make sure the queue is available to receive from. at System.ServiceModel.Channels.MsmqQueue.TryReceiveInternal(NativeMsmqMessage message, TimeSpan timeout, MsmqTransactionMode transactionMode, Int32 action) at System.ServiceModel.Channels.MsmqReceiveHelper.WaitForMessage(TimeSpan timeout) at System.ServiceModel.Channels.MsmqInputChannelBase.WaitForMessage(TimeSpan timeout) --- End of inner exception stack trace --- at System.ServiceModel.Channels.MsmqInputChannelBase.WaitForMessage(TimeSpan timeout) at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.WaitForMessage()
Please let me know, If some one else is having similar issue and resolved it?
Or if there is a fix for this issue and is this a known issue with AppFabric?
Thursday, December 08, 2011 11:39 PMModerator
Interesting, it seems like the MSMQ service is not running when IIS starts up. You could create a Windows service dependency for IIS to the MSMQ service using something like this: http://toastergremlin.com/?p=28 or this: http://efreedom.com/Question/1-5159257/Create-Dependency-Windows-Services-Startup.
If this answers your question, please use the "Answer" button to say so | Ben Cline