A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags:

Exception





 
 
Thread Tools Display Modes
  #1  
Old December 27th 07, 11:38 PM posted to microsoft.public.outlook.program_forms
Jason
external usenet poster
 
Posts: 92
Default Exception

A message box appears when I try and send a meessage from my Win-Form through
Outlook asking for access to send an email. It works fine if I click
"Accept", but I receive an exception when I click "Deny". Is a try/catch the
only way I can handle this? I would not expect any exceptions when I click
the "Deny" button.

For reference, here is the exception: "Operation aborted (Exception from
HRESULT: 0x80004004 (E_ABORT))"

Thanks
Ads
  #2  
Old December 28th 07, 05:31 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Exception

If you click Deny, Outlook raises an error. Therefore, your code should handle that exception.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Jason" wrote in message ...
A message box appears when I try and send a meessage from my Win-Form through
Outlook asking for access to send an email. It works fine if I click
"Accept", but I receive an exception when I click "Deny". Is a try/catch the
only way I can handle this? I would not expect any exceptions when I click
the "Deny" button.

For reference, here is the exception: "Operation aborted (Exception from
HRESULT: 0x80004004 (E_ABORT))"

Thanks

  #3  
Old December 28th 07, 03:43 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Exception

If you're getting an exception a try...catch block is the way to go to avoid
an unhandled exception.

You don't say what versions of Outlook you are supporting or anything else
much about where and how the code is running, so it's hard to say anything
else. But I'd be looking to avoid the security prompts completely and avoid
that whole situation instead of leaving it to the user to handle the
security prompt.

See http://www.outlookcode.com/article.aspx?id=52 for information on
avoiding the security entirely.

--
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


"Jason" wrote in message
...
A message box appears when I try and send a meessage from my Win-Form
through
Outlook asking for access to send an email. It works fine if I click
"Accept", but I receive an exception when I click "Deny". Is a try/catch
the
only way I can handle this? I would not expect any exceptions when I
click
the "Deny" button.

For reference, here is the exception: "Operation aborted (Exception from
HRESULT: 0x80004004 (E_ABORT))"

Thanks


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSharedItem - Exception Andre Maas Add-ins for Outlook 2 October 10th 07 04:29 PM
exception Reda Outlook - Calandaring 0 March 1st 07 08:26 PM
Unknow exception Alexandr Kalugin via OfficeKB.com Add-ins for Outlook 5 August 11th 06 08:19 AM
What is 0x0eedfade exception? Dmitry Streblechenko Add-ins for Outlook 2 June 20th 06 08:59 PM
Exception from HRESULT Laks Add-ins for Outlook 1 May 11th 06 10:24 AM


All times are GMT +1. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
American Express Credit Cards - Refinance - Bleach 149 . Bleach 150 - Car Finance - eBay