Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

Automated Logon w/Outlook 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John A. Bailo - 05 May 2006 17:39 GMT
I have a program that I'm converting from Outlook 2000 to Outlook 2003.

It basically opens Outlook and iterates through a series of items in a
public folder.

I was able to run this as a scheduled task overnight.

But now, it seems to want to have me be logged in already or it will not
log into Outlook.

Also, in 2003, there is this little dialog that says "a program is
trying to access outlook, do you want to give it access for" and then
there's a drop down with 1 minute, 3minutes, 10 minutes.

How can I configure my Outlook 2003 client so my interop program can
login and run without any dialog boxes or without my having to have the
client open at the time it runs?
Sue Mosher [MVP-Outlook] - 06 May 2006 02:29 GMT
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Have you set up Outlook 2003 to always start with the same profile? Are you performing a Namespace.Logon in your code?

In general, Outlook is not suitable for unattended automation like your scenario.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

>
> I have a program that I'm converting from Outlook 2000 to Outlook 2003.
[quoted text clipped - 14 lines]
> login and run without any dialog boxes or without my having to have the
> client open at the time it runs?
John A. Bailo - 09 May 2006 23:03 GMT
> See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.
>
> Have you set up Outlook 2003 to always start with the same profile? Are you performing a Namespace.Logon in your code?
>
> In general, Outlook is not suitable for unattended automation like your scenario.

I found a solution:

http://www.mapilab.com/outlook/security/

This free component lets me manually assign permissions to third party
software for accessing Outlook.   It worked great for my c# program.

I totally disagree with your and Microsoft's opinion on automating via
the client.   This is entirely in line with the entire .NET smart client
scenario.   The Office clients provide a rich OM for manipulating the
server back end.    I find that it's much easier to design, build, debug
around them than fighting direct connections to the server back end.
Sue Mosher [MVP-Outlook] - 17 May 2006 14:13 GMT
> I totally disagree with your and Microsoft's opinion on automating via the client.

How do you know what my opinion is? Did you read my mind? I don't recall stating any opinions.

> The Office clients provide a rich OM for manipulating the server back end.

For Word and Excel 2003 using VSTO 2005, that's definitely true. There are great server applications to be built with those tools.

Outlook is totally different story. The article at http://support.microsoft.com/kb/237913/ explains some of the pitfalls, including the issue that only one instance of Outlook can be running at a time. So, whose Outlook data will the server access and what will happen to requests to access other data while that process is running?
Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

>> See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.
>>
[quoted text clipped - 14 lines]
> server back end.    I find that it's much easier to design, build, debug
> around them than fighting direct connections to the server back end.
John A. Bailo - 17 May 2006 23:12 GMT
>including the issue that only one instance of Outlook can be running at a time. So, whose

Are you saying you can run more than one instance of Excel or Word at a
time?
Sue Mosher [MVP-Outlook] - 17 May 2006 23:35 GMT
No, that's not what I said.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

>
>>including the issue that only one instance of Outlook can be running at a time. So, whose
>
> Are you saying you can run more than one instance of Excel or Word at a
> time?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.