Shawn,
This was due to the Outlook/Simple MAPI/CDO security patch
introduced by
microsoft when email script viruses would spread themselves
by reading
the outlook address book.
You have two options, either use CDO via interop on an
Exchange Server
machine to read the address book (this will come up with the
same
message if you run it on a normal outlook machine)
Or you can use Extended MAPI to do it as we do in our
product (bear in
mind that this is quite complicated and I've never tried
calling it from
a managed environment) - this will work in both a server and
workstation
environment.
For more information see MAPILogonEx(). I don't think if
interop will
work with this as there are no idl/tbl's to work with. Also
a lot of
extended mapi functions take special structures with
pointers to other
structures which may be a bit tricky to setup from within
the CLR.
Good luck!
Cheers
Kevin
-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNET DISCUSS.DEVELOP.COM] On Behalf Of Hevel,
Shawn
Sent: 25 July 2007 13:57
To: ADVANCED-DOTNET DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Outlook 2003 Question &
integration with
DotNet 1.1 Warning Message
I'm integrating the Outlook 11 COM object into my DotNet 1.1
Project.
I'm getting the following prompt:
"A program is trying to access e-mail addresses you
have stored in
Outlook. Do you want to allow this? If this is unexpected,
it may be a
virus and you should choose "No"."
There is also a check box to allow access for a set period
of time.
My question, Is there a way to avoid this message box?
I'm trying to do the following: I'd like to display a list
of email
address from our companies Information Technology group
alias.
Does anyone have any advice on ignoring and/or getting
around this
message?
Thanks,
Our vision is to develop an environment that will stimulate
the
transformation of data and information into knowledge and
wisdom. Our
mission is to stay focused on the plans and goals with a
sense of
urgency necessary to improve the company's profitability and
market
share.
Shawn Hevel, API, AIT
Lead Programmer Analyst
Information Technology Department
South Carolina Farm Bureau Insurance Companies
Phone: (803) 936-4331
Fax: (803) 936-4629
Work Email: shawnhevel scfbins.com
Home Email: hevelhouse sc.rr.com
===================================
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|