| Author |  | 
      
        | RBuckley Newbie
 
  
 
 Joined: 04 March 2014
 Location: United States
 Online Status: Offline
 Posts: 4
 | 
          I used Mailbee IMAP to construct a Windows Service application.  The eventvwr shows:
           | Posted: 05 March 2014 at 8:23am | IP Logged |   |  
           | 
 |  
 Log Name:      Application
 Source:        Service1
 Date:          3/5/2014 11:17:55 AM
 Event ID:      0
 Task Category: None
 Level:         Error
 Keywords:      Classic
 User:          N/A
 Computer:      sql2005.NDS.local
 Description:
 Service cannot be started. MailBee.MailBeeInvalidStateException: Not yet connected to the server. Call Connect first.
 at a.z.av()
 at a.d.r.a(Boolean A_0, String A_1, String A_2, String A_3)
 at a.d.r.a(Boolean A_0, Boolean A_1, String A_2, String A_3, String A_4)
 at MailBee.ImapMail.Imap.Search(Boolean returnUids, String searchCondition, String charset)
 at SNMailGateway.Service1.OnStart(String[] args) in c:\users\rbuckley\documents\visual studio 2012\Projects\NDS\SNMailGateway\SNMailGateway\Service1.vb:line 20
 at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
 Event Xml:
 <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
 <Provider Name="Service1" />
 <EventID Qualifiers="0">0</EventID>
 <Level>2</Level>
 <Task>0</Task>
 <Keywords>0x80000000000000</Keywords>
 <TimeCreated SystemTime="2014-03-05T16:17:55.000Z" />
 <EventRecordID>1915887</EventRecordID>
 <Channel>Application</Channel>
 <Computer>sql2005.NDS.local</Computer>
 <Security />
 </System>
 <EventData>
 <Data>Service cannot be started. MailBee.MailBeeInvalidStateException: Not yet connected to the server. Call Connect first.
 at a.z.av()
 at a.d.r.a(Boolean A_0, String A_1, String A_2, String A_3)
 at a.d.r.a(Boolean A_0, Boolean A_1, String A_2, String A_3, String A_4)
 at MailBee.ImapMail.Imap.Search(Boolean returnUids, String searchCondition, String charset)
 at SNMailGateway.Service1.OnStart(String[] args) in c:\users\rbuckley\documents\visual studio 2012\Projects\NDS\SNMailGateway\SNMailGateway\Service1.vb:line 20
 at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)</Data>
 </EventData>
 </Event>
 
 Do I have to register the dll?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Based on that text, all I can tell is you were trying to perform some email operation before connection to mailserver was established. To tell what exactly is going on, you should enable logging SMTP session into a file, reproduce the problem and check the logs.
           | Posted: 05 March 2014 at 8:31am | IP Logged |   |  
           | 
 |  
 Please also bear in mind this is a community forum. If you'd like to request help from AfterLogic team directly, it's recommended to use HelpDesk instead.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |