Error occurred in Monitor.ReceiveInboundMessage

rated by 0 users
This post has 4 Replies | 3 Followers

Top 100 Contributor
Posts 192
Points 2,630
madkidd Posted: Thu, Jan 25 2007 1:26 AM

I just installed and am trying to get the Mail Gateway running. Nothing is working either way (sending or receiving from\to a forum). I just noticed this error in my csm_processor.log file:

2007-01-25 01:19:18,543 [41576] ERROR [] - Error occurred in Monitor.ReceiveInboundMessage
Exception: System.Messaging.MessageQueueException
Message:
Source: System.Messaging
   at System.Messaging.MessageQueue.AsynchronousRequest.End()
   at System.Messaging.MessageQueue.EndAsyncOperation(IAsyncResult asyncResult)
   at System.Messaging.MessageQueue.EndReceive(IAsyncResult asyncResult)
   at CommunityServer.Mail.Processor.Components.Monitor.?(Object , ReceiveCompletedEventArgs )

2007-01-25 01:19:18,543 [28960] ERROR [] - Error occurred in Monitor.ReceiveComplete
Exception: System.Messaging.MessageQueueException
Message:
Source: System.Messaging
   at System.Messaging.MessageQueue.AsynchronousRequest.End()
   at System.Messaging.MessageQueue.EndAsyncOperation(IAsyncResult asyncResult)
   at System.Messaging.MessageQueue.EndReceive(IAsyncResult asyncResult)
   at CommunityServer.Mail.Processor.Components.Monitor.?(Object , ReceiveCompletedEventArgs )

Top 10 Contributor
Posts 5,238
Points 48,240
CS Developers

Jeremy,

I've seen that error a couple of times before, but usually for different things.  Part of the problem is that the message on the exception is empty.  There is supposed to be a error code embedded in the exception, but I believe it was something odd there it was a Win32 code and had trouble accessing it in the program.

Were there any other exceptions?  Often times, when this error is in there, it is followed by another error which gives some more details, though this one seems to be on its own.

Some options though:

  1. Try and rename the queue names in the communityserver.config for both the service and the website.  Oddly enough, we'd seem some queues just decide to go bad without any explanation.  Luckily, in CS 2007, we're no longer using MSMQ.
  2. I can take another look at trying to retrieve the error code and send you an updated DLL that will hopefully return it.  It would then help narrow it down.

Thanks,

  Ken
 

  • | Post Points: 20
Top 100 Contributor
Posts 192
Points 2,630
madkidd replied on Sat, Feb 3 2007 1:02 AM

Hi Ken,

Thank you for the information. I have tried changing the queue and now I seem to be getting a different error in the csm_processor.log--this did not seem to come immedietly after starting the service, but once an e-mail was received. 

2007-02-03 00:50:30,707 [117864] ERROR [] - Exception occurred in Monitor.ThreadPool_WaitCallback
Exception: CommunityServer.Components.CSException
Message: Unable to open connection to data provider.
Source: CommunityServer.SqlDataProvider
   at CommunityServer.Data.SqlCommonDataProvider.LoadSiteSettings(String application, Int32 settingsID, Boolean returnAll)
   at CommunityServer.Components.SiteSettingsManager.GetSiteSettings(String applicationName, Boolean flush)
   at CommunityServer.Components.CSContext.get_SiteSettings()
   at CommunityServer.Users.GetAnonymousUser(Boolean fromCache)
   at CommunityServer.Users.GetAnonymousUser()
   at CommunityServer.Mail.Processor.Components.Monitor.?()
   at CommunityServer.Mail.Processor.Components.Monitor.?(AddressCollection )
   at CommunityServer.Mail.Processor.Components.Monitor.?(Object )

Nested Exception

Exception: System.Data.SqlClient.SqlException
Message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Source: .Net SqlClient Data Provider
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at CommunityServer.Data.SqlCommonDataProvider.LoadSiteSettings(String application, Int32 settingsID, Boolean returnAll)

What I did was:

  1. Change from:
    <Queues inboundQueue=".\Private$\CSMailInbound" outboundQueue=".\Private$\CSMailOutbound" />
    to:
    <Queues inboundQueue=".\Private$\MailInbound" outboundQueue=".\Private$\MailOutbound" />
    in both the site and service.
  2. Recycle App Pool
  3. Restart both the receiver service and processor service.
  4. Check logs, no additional errors from the time of the restart.
  5. Send an e-mail to the receiving POP3 account.
  6. Checked the account -- the e-mail was gone.
  7. Checked the logs, found the error listed above.

I hope this helps.

  • | Post Points: 20
Top 10 Contributor
Posts 5,238
Points 48,240
CS Developers
It looks like your queues are fine, now you just need to update your connection string.  From the looks of it, you probably need to turn off the trusted connection and connect using SQL authentication.  You can edit the connection string in the CommunityServer.Mail.Processor.Service.exe.config.  Should stop the service before editing it, then restart it afterwards.
  • | Post Points: 20
Top 100 Contributor
Posts 192
Points 2,630
madkidd replied on Thu, Feb 8 2007 4:50 PM
GREAT! Thanks Ken. I thought I had the connection strings correctly copied over, but I guess not. The forums are now receiving mail just fine. Although they still do not seem to be sending mail. How can I diagnose what is going on there?
  • | Post Points: 5
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com