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

Outlook 2007 Addin - exception error



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 3rd 07, 10:14 AM posted to microsoft.public.outlook.program_forms
Cresta
external usenet poster
 
Posts: 1
Default Outlook 2007 Addin - exception error

Hello and Help! (I'm new to vb addins)
I have just started to work my way throught the Micorosft Press book on
Programming Applications for MSO Outlook 2007. Have followed the instructions
to download the vb samples/addins and have installed them successfully.
Chapter1 example runs a form with a list of chapter examples, when I run the
first example in the book, the following error occurs;

"Exception has been thrown by the target of an invocation."

I have trawled the internet, and some are indicating that if there is an
internet link in the code, these errors are happening. There is a link to
"http://schemas.microsoft.com/mapi/proptag/0x007D001E" .
Could this be the problem, and is there a fix for it.
Thanks

Ads
  #2  
Old April 3rd 07, 12:19 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2007 Addin - exception error

That's not a link at all. As Chapters 11 and 17 explain, it's the schema name for a hidden property, the one that displays the Internet headers for a message. Not every item (not even every message) has that property, so you should be prepared to handle an error returned by GetProperty. Chapter 17 explains in more detail.

Also, please note that you posted in the forum on Outlook forms. There is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/comm....program_v ba

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

"Cresta" wrote in message news
Hello and Help! (I'm new to vb addins)
I have just started to work my way throught the Micorosft Press book on
Programming Applications for MSO Outlook 2007. Have followed the instructions
to download the vb samples/addins and have installed them successfully.
Chapter1 example runs a form with a list of chapter examples, when I run the
first example in the book, the following error occurs;

"Exception has been thrown by the target of an invocation."

I have trawled the internet, and some are indicating that if there is an
internet link in the code, these errors are happening. There is a link to
"http://schemas.microsoft.com/mapi/proptag/0x007D001E" .
Could this be the problem, and is there a fix for it.
Thanks

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Outlook 2007 / Addin with Ribbon Paul Liebrand Add-ins for Outlook 3 February 5th 07 09:12 PM
Exception, error retrieving COM class factory... noesgard@gmail.com Add-ins for Outlook 0 June 22nd 06 12:23 PM
AddIn crashes Outlook 2007 Charles Sinclair Add-ins for Outlook 4 June 1st 06 06:43 PM
How do I get rid of an Outlook 2003 addin error message? Glynn Brooks Outlook - Installation 0 March 29th 06 06:25 PM
unknown exception error in Exchange Environment Michael Anderson Outlook and VBA 3 February 28th 06 08:25 PM


All times are GMT +1. The time now is 04:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.