Does it work with this type of ns.Logon("", "", False, False)? Or without
using ns.Logon() at all?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Kannan" <(E-Mail Removed)> wrote in message
news:6D46312D-0527-4281-8FB9-(E-Mail Removed)...
>I have Outlook email account. through VB.net programming I am trying to
>login
> into that inbox. But it is giving following error:
>
> "System.RunTime.Interopservices.ComException (0x86240111): The server is
> not
> available. Contact your administrator if this condition persists. at
> Microsfot.Office.Interop.Outlook.NamespaceClass.Logon(Object profiile,
> Object
> passwor, Object showdialog, Object newsession) at [project filename
> here...]
> in [project directory here....]: line [line number here...]"
>
> My source code is below.
>
> app = New Microsoft.Office.Interop.Outlook.Application()
> ns = app.GetNamespace("MAPI")
> ns.Logon("testbatch", "testbtch", False, false) 'It is failing
> here.
> ...
>
> regards,
> Kannan
>
>
>
>
>