VSTO_SUPPRESSDISPLAYALERTS not working on target PC

Status
Not open for further replies.
M

Mark B

OL2007, C#, VSTO.

Does the http://msdn.microsoft.com/en-us/library/ms269003(VS.80).aspx

article shown below relate to the deployment machines as well as the

development machine? On one of my Vista deployment test machines, no log

file has been created and no popup message boxes appear even though I have

added the environment variables as described below. I am trying to find the

cause of the Addin being made inactive even though it works fine on the

development machine.

> ...

Troubleshooting Add-ins Using a Log File and Error Messages

Visual Studio Tools for Office can write all errors that occur during

startup to a log file or display each error in a message box. By default,

these options are turned off for application-level projects. You can turn

the options on by adding and setting environment variables. To display each

error in a message box, set the VSTO_SUPPRESSDISPLAYALERTS variable to 0

(zero). You can suppress the messages by setting the variable to 1 (one). 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. To stop logging errors, set the variable to 0

(zero). For information about setting environment variables in Microsoft

Windows XP, see "How To Manage Environment Variables in Windows XP"

(http://support.microsoft.com/kb/310519).

> ...
 
That should work on deployment machines but only if the addin has actually

been loaded. If there are load errors that occur before the addin is started

(and also if the CAS hasn't been set correctly I believe) VSTO won't do the

logging because the VSTO addin never started.

See

http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx

for load error logging information and also make sure you have set full

trust on your VSTO addin, which is required for a VSTO addin to run.

"Mark B" <none123@none.com> wrote in message

news:OkFmyeoiKHA.2132@TK2MSFTNGP05.phx.gbl...
> OL2007, C#, VSTO.

> Does the http://msdn.microsoft.com/en-us/library/ms269003(VS.80).aspx
> article shown below relate to the deployment machines as well as the
> development machine? On one of my Vista deployment test machines, no log
> file has been created and no popup message boxes appear even though I have
> added the environment variables as described below. I am trying to find
> the cause of the Addin being made inactive even though it works fine on
> the development machine.

> ...

> Troubleshooting Add-ins Using a Log File and Error Messages

> Visual Studio Tools for Office can write all errors that occur during
> startup to a log file or display each error in a message box. By default,
> these options are turned off for application-level projects. You can turn
> the options on by adding and setting environment variables. To display
> each error in a message box, set the VSTO_SUPPRESSDISPLAYALERTS variable
> to 0 (zero). You can suppress the messages by setting the variable to 1
> (one). 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. To stop logging errors, set the variable to 0
> (zero). For information about setting environment variables in Microsoft
> Windows XP, see "How To Manage Environment Variables in Windows XP"
> (http://support.microsoft.com/kb/310519).
> ...
 
Thanks Ken.

On further inspection of the Setup project my associate created, I notice he

didn't include the VSTO Runtime at all. So once I manually installed that on

the target machine after downloading it from Microsoft it all worked OK.

I now have asked him to research how to get that VSTO Runtime and the PIA

installed as part of the Setup project -- albeit silently. Hopefully he'll

be able to amend the Setup project to do that. It's for Enterprise rollout

so we don't want any user interaction whatsoever.

Thanks for your help.
<kenslovak@mvps.org> wrote in message

news:%23BsPitWjKHA.2160@TK2MSFTNGP02.phx.gbl...
> That should work on deployment machines but only if the addin has actually
> been loaded. If there are load errors that occur before the addin is
> started (and also if the CAS hasn't been set correctly I believe) VSTO
> won't do the logging because the VSTO addin never started.

> See
> http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx
> for load error logging information and also make sure you have set full
> trust on your VSTO addin, which is required for a VSTO addin to run.

> >

>

> "Mark B" <none123@none.com> wrote in message
> news:OkFmyeoiKHA.2132@TK2MSFTNGP05.phx.gbl...
> > OL2007, C#, VSTO.
>

>> Does the http://msdn.microsoft.com/en-us/library/ms269003(VS.80).aspx
> > article shown below relate to the deployment machines as well as the
> > development machine? On one of my Vista deployment test machines, no log
> > file has been created and no popup message boxes appear even though I
> > have added the environment variables as described below. I am trying to
> > find the cause of the Addin being made inactive even though it works fine
> > on the development machine.
>

>> ...
>

>> Troubleshooting Add-ins Using a Log File and Error Messages
>

>> Visual Studio Tools for Office can write all errors that occur during
> > startup to a log file or display each error in a message box. By default,
> > these options are turned off for application-level projects. You can turn
> > the options on by adding and setting environment variables. To display
> > each error in a message box, set the VSTO_SUPPRESSDISPLAYALERTS variable
> > to 0 (zero). You can suppress the messages by setting the variable to 1
> > (one). 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. To stop logging errors, set the variable to
> > 0 (zero). For information about setting environment variables in
> > Microsoft Windows XP, see "How To Manage Environment Variables in Windows
> > XP" (http://support.microsoft.com/kb/310519).
> > ...

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M c# vsto Outlook.ApplicationEvents_11_NewMailEx Outlook VBA and Custom Forms 1
M Develop for OL2003 on OL2007 machine using VS2008 and VSTO? Outlook VBA and Custom Forms 1
A Not able to load an add-in for outlook 2007 developed in VSTO 2005 Outlook VBA and Custom Forms 2
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 2
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 3
T VSTO Outlook add-in: Categories not displaying correctly Outlook VBA and Custom Forms 3
O VSTO - Outlook Add-In - Get GAL data Outlook VBA and Custom Forms 1
M VSTO deployment? Outlook VBA and Custom Forms 1
K Outlook VSTO Add-in not visible in Trust Center after installing Outlook VBA and Custom Forms 1
M VSTO C#: How do I declare an application scope variable? Outlook VBA and Custom Forms 2
M Will a VSTO C# Outlook 2007 Add-in work on Outlook 2010? Outlook VBA and Custom Forms 1
S VSTO calling unmanged function Outlook VBA and Custom Forms 3
X Highlight block of text in an outlook mail using c#2008 vsto Outlook VBA and Custom Forms 1
W My VSTO 3.0 Outlook addin doesn’t load Outlook VBA and Custom Forms 1
G Interop or VSTO or ? Outlook VBA and Custom Forms 2
M VSTO 2007 Addin auto-disabled on one machine but not another on installation? Outlook VBA and Custom Forms 1
N VSTO outlook 2007 addin installation problem Outlook VBA and Custom Forms 1
O Third-party VSTO 2005 SE plug-in for Outlook 2007: what should I signwith a publisher certificate? Outlook VBA and Custom Forms 3
O Outlook VSTO 2005 plug-in installer: CLSID = ? Outlook VBA and Custom Forms 3
O using VSTO to get Available Mailboxes Outlook VBA and Custom Forms 11
M Outlook2007 and VSTO, handle the Click on the Save Button in the IPM.Note dialog HOWTO? Outlook VBA and Custom Forms 4
M VSTO Outlook2007 Addin. After switching from 3.5 to 2.0 Framework i get "'MSB3185: EntryPoint not sp Outlook VBA and Custom Forms 1
E Opening WinForm in Outlook 2003 VSTO Addin with Wordmail enabled Outlook VBA and Custom Forms 1
C Problem installing VSTO AddIn on Vista Outlook VBA and Custom Forms 3
T Outlook 365 won't take new working password Using Outlook 0
E Outlook 365 Save Selected Email Message as .msg File - oMail.Delete not working when SEARCH Outlook VBA and Custom Forms 0
Z Outlook 2021 Outlook new emails notification not working Using Outlook 4
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
S New Email "From" box stopped working Using Outlook 0
R Outlook Working off line Using Outlook 0
H How to Fix 1510-370-1986 Garmin GPS Not Working Outlook VBA and Custom Forms 0
M Outlook 2019 Macro not working Outlook VBA and Custom Forms 0
L Outlook 365 Outlook not working on linux how to solve it Using Outlook.com accounts in Outlook 0
Z Outlook.com OST Stopped working without explanation Using Outlook.com accounts in Outlook 3
Commodore Automatic switch between working offline/online Using Outlook 4
V Outlook 2016 iCloud for Windows - Why no working Calendars and Tasks ? Using Outlook 1
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
G print attachment straight away; working script edit not working Outlook VBA and Custom Forms 0
V Auto-complete stopped working Using Outlook 4
F Searches are not working properly Using Outlook 1
Jennifer Murphy Spam filter not working Using Outlook 13
D Connecting Gmail to Outlook 365 - My Setup not working Using Outlook 2
A Prepending Email Addrs with "Display Name <email>" Has Stopped Working Using Outlook 0
R rules not working - done troubleshooting Using Outlook 0
R Follow up button doesn't working neither the reminders in BCM BCM (Business Contact Manager) 0
A calendar invites sent from Microsoft Outlook to Mac Outlook is not working Using Outlook 2
Z Task Filter Not Working When I add too many criteria Using Outlook 0
D iCloud Add-in not working in Outlook 2013 and Outlook 2016 After Windows Upgrade & iCloud Upgrade Using Outlook 2

Similar threads

Back
Top