Welcome, Guest.
Please login or register.
Debugging Outlook 2003 Add-Ins
Forum Login
Login Name: Create a new account
Password:     Forgot password

spamREF Support Forum    FAQs    Installation FAQs  ›  Debugging Outlook 2003 Add-Ins
Users Browsing Forum
No Members and 2 Guests

Debugging Outlook 2003 Add-Ins  This thread currently has 5,381 views. Print
1 Pages 1 Recommend Thread
Goose
Monday, September 24, 2007, 7:00pm Report to Moderator

Administrator Group
Posts: 8
Gender: Male
Posts Per Day: 0.01
Reputation: 100.00%
Location: Near Oxford, England
If, when you try and load an Add-In in Outlook 2003, you get an error in the Load Behaviour section of the COM Add-Ins dialog box under Options, Other, Advanced Options that says "Not Loaded. A runtime error occurred during the loading of the COM Add-in", you can debug the exact reason.

Create a batch file that has the following lines in it:-

SET VSTO_SUPPRESSDISPLAYALERTS=0

"C:\Program Files\Microsoft Office\Office11\Outlook.exe" (or wherever Outlook is installed)

Then make sure Outlook is closed and run the batch file.

Now when you try and load the Add-In manually from Advanced Options you will get the full error message.

You can download a premade batch file from downloads if you are not happy creating a batch file.

Cheers,

Goose


There are only 10 types of people in the world: Those who understand binary, and those who don't
Logged Offline
E-mail Private Message
Goose
Monday, September 24, 2007, 9:16pm Report to Moderator

Administrator Group
Posts: 8
Gender: Male
Posts Per Day: 0.01
Reputation: 100.00%
Location: Near Oxford, England
For those of you who just must have a log file rather than a message there is always the other setting...

To write the errors to a log file, set the VSTO_LOGALERTS variable to 1 (one). Visual Studio Tools for Office creates the log file in the folder that contains the application manifest. The default name is <Manifestname>.manifest.log.

Cheers,

Goose


There are only 10 types of people in the world: Those who understand binary, and those who don't
Logged Offline
E-mail Private Message Reply: 1 - 1
1 Pages 1 Recommend Thread
Print

spamREF Support Forum    FAQs    Installation FAQs  ›  Debugging Outlook 2003 Add-Ins

Thread Rating
There is currently no rating for this thread