PC Review


Reply
Thread Tools Rate Thread

Calling OUtlook using VB.net

 
 
=?Utf-8?B?S2FubmFu?=
Guest
Posts: n/a
 
      8th Nov 2007
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





 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      8th Nov 2007
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
>
>
>
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling SQL from code has different behaviour than calling it from MS SQL Server Management Studio jeeji Microsoft C# .NET 1 29th Jun 2006 10:43 AM
Calling DoCmd.RunCommand acCmdSaveRecord, after calling an API function Savvoulidis Iordanis Microsoft Access Form Coding 2 19th Mar 2005 06:34 PM
Fail to send fax when making international fax calling / calling c =?Utf-8?B?c2Ftd2lzZQ==?= Windows XP Help 1 28th Dec 2004 02:31 PM
Calling FormsAuthentication.SignOut() after calling Response.Flush =?Utf-8?B?TWFydGluIExlZQ==?= Microsoft ASP .NET 1 28th Sep 2004 01:47 PM
Server Side button calling page_load before calling it's own click event. Ryan Ternier Microsoft ASP .NET 4 29th Jul 2004 02:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:22 PM.