Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I tried to read .pst file but first an outlook message is shown, "A program is trying to access e-mail address information stored in Outlook. If this is unexpected, click Deny otherwise press ok."

Please help me with example how to avoid this message.

Thanks in advance

regards
situ
Posted
Updated 17-Apr-11 21:30pm
v3
Comments
Dalek Dave 18-Apr-11 3:30am    
Edited for Grammar and Readability.

Hi, try to access the .SetWarnings to true or false to attain this.
 
Share this answer
 
Comments
situ21 18-Apr-11 1:40am    
SetWarnings is not found in my application.

please help with example
Pong D. Panda 18-Apr-11 1:52am    
Post your code here. Just the code where it tries to access the email add info stored in OutLook.
Dalek Dave 18-Apr-11 3:30am    
Good Call.
Maybe you can prevent this message from showing up by using the .NET Wrapper for Extended MAPI found here: MAPIEx: Extended MAPI Wrapper[^].
I used this to access mails stored in an Outlook mail account. The first time i tried it using the .NET integrated Outlook Interface, the same message would show up, but by using the above classes, the message would not be triggered.

Hope this helps
 
Share this answer
 
Comments
Dalek Dave 18-Apr-11 3:30am    
Nice answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900