Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Windows service Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RBuckley
Newbie
Newbie


Joined: 04 March 2014
Location: United States
Online Status: Offline
Posts: 4
Posted: 05 March 2014 at 8:23am | IP Logged Quote RBuckley

I used Mailbee IMAP to construct a Windows Service application. The eventvwr shows:

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 View RBuckley's Profile Search for other posts by RBuckley
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 March 2014 at 8:31am | IP Logged Quote Igor

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.

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide