自動に設定したWindowsサービスでホストされているWCFサービスがあるため、サーバーが起動すると自動的に開始されます。サービスはエンドポイントであり、MSMQがサポートしています。
手動でサービスを開始すると、すべてが良好です。しかし、起動時にサービスを開始すると、MSMQ例外が発生します。
System.TypeInitializationException: The type initializer for
'System.ServiceModel.Channels.Msmq' threw an exception. --->
System.ServiceModel.MsmqException: The version check failed with the error:
'The Message Queuing service is not available (-1072824309, 0xc00e000b)'. The
version of MSMQ cannot be detected All operations that are on the queued channel
will fail. Ensure that MSMQ is installed and is available.
at System.ServiceModel.Channels.MsmqQueue.GetMsmqInformation
(Version& version, Boolean& activeDirectoryEnabled)
at System.ServiceModel.Channels.Msmq..cctor()
--- End of inner exception stack trace ---
サービスが開始する前にMSMQを使用する準備ができていないようです...これに対する解決策はありますか?