Help!

Outlook add-in is constantly being disabled

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  Add a .PST file to my Folder List  
Author Message
q3537wh
External


Since: Apr 11, 2006
Posts: 2



PostPosted: Wed Sep 27, 2006 12:49 pm    Post subject: Outlook add-in is constantly being disabled
Archived from groups: microsoft>public>outlook>program_addins (more info?)

One of my company's customers is experiencing a strange problem with an
Outlook add-in we built. The add-in is often disabled when some of the
users start Outlook, and they have to go into COM add-ins to add it
back. The problem is that this happens pretty regularly. They'd add the
add-in, it'd work for a while, but some days later, when they start
Outlook again, the add-in disappears again, and they have to add it
back again.

Some (but not all) of these users have
HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
set to 0 or 1. But changing it to a 3 hasn't worked.

Are there any known causes that leads to an Outlook addin being
constantly disabled?

TIA
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Wed Sep 27, 2006 4:03 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Unhandled exceptions is the #1 cause.

Disabled addins can usually be re-enabled only by deleting the registry key
for disabling addins or by removing the addin from the disabled items list
in the Help, About, Disabled Items dialog.

Another cause of disabling can be script stoppers. If you use "New" or
"CreateObject" in your code or access Windows Scripting your addin might be
disabled because the script stopper causes that to fail, the exception is
unhandled and the addin gets disabled. Also very common.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


<q3537wh.RemoveThis@hotmail.com> wrote in message
news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
> One of my company's customers is experiencing a strange problem with an
> Outlook add-in we built. The add-in is often disabled when some of the
> users start Outlook, and they have to go into COM add-ins to add it
> back. The problem is that this happens pretty regularly. They'd add the
> add-in, it'd work for a while, but some days later, when they start
> Outlook again, the add-in disappears again, and they have to add it
> back again.
>
> Some (but not all) of these users have
> HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
> set to 0 or 1. But changing it to a 3 hasn't worked.
>
> Are there any known causes that leads to an Outlook addin being
> constantly disabled?
>
> TIA
>
Back to top
Michael Tissington
External


Since: Sep 05, 2005
Posts: 11



PostPosted: Wed Sep 27, 2006 4:03 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I did not know there was a registry key that did the same as removing it
from the list in Help About ... What is the registry key ?

--
Michael Tissington
http://www.oaklodge.com
http://www.sqlview.net

"Ken Slovak - [MVP - Outlook]" <kenslovak.TakeThisOut@mvps.org> wrote in message
news:%23DeGEAn4GHA.3512@TK2MSFTNGP04.phx.gbl...
> Unhandled exceptions is the #1 cause.
>
> Disabled addins can usually be re-enabled only by deleting the registry
> key for disabling addins or by removing the addin from the disabled items
> list in the Help, About, Disabled Items dialog.
>
> Another cause of disabling can be script stoppers. If you use "New" or
> "CreateObject" in your code or access Windows Scripting your addin might
> be disabled because the script stopper causes that to fail, the exception
> is unhandled and the addin gets disabled. Also very common.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <q3537wh.TakeThisOut@hotmail.com> wrote in message
> news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
>> One of my company's customers is experiencing a strange problem with an
>> Outlook add-in we built. The add-in is often disabled when some of the
>> users start Outlook, and they have to go into COM add-ins to add it
>> back. The problem is that this happens pretty regularly. They'd add the
>> add-in, it'd work for a while, but some days later, when they start
>> Outlook again, the add-in disappears again, and they have to add it
>> back again.
>>
>> Some (but not all) of these users have
>> HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
>> set to 0 or 1. But changing it to a 3 hasn't worked.
>>
>> Are there any known causes that leads to an Outlook addin being
>> constantly disabled?
>>
>> TIA
>>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Wed Sep 27, 2006 5:18 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It's all or nothing though. If the key is deleted all disabled addins are
re-enabled. Maybe not such a good idea.

Disabling adds a binary value for each addin with a name that's randomly
generated. The Resiliency key exists if there is at least one disabled item,
but if you re-enable the addin then the Resiliency key and DisabledItems
subkey are both deleted. So the presence of the Resiliency key serves as a
general test for the existence of disabled items. You can re-enable the
addin by deleting the specific binary reg value, or by removing the whole
key.

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Resiliency\DisabledItems

11.0 would be 10.0 for Outlook 2002, 12.0 for Outlook 2007.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Tissington" <mtissington.DeleteThis@newsgroups.nospam> wrote in message
news:u4NYfSn4GHA.1668@TK2MSFTNGP04.phx.gbl...
>I did not know there was a registry key that did the same as removing it
>from the list in Help About ... What is the registry key ?
>
> --
> Michael Tissington
> http://www.oaklodge.com
> http://www.sqlview.net
Back to top
q3537wh
External


Since: Apr 11, 2006
Posts: 2



PostPosted: Wed Sep 27, 2006 5:26 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In my situation the disabled add-in does not appear in Help | About |
Disabled items. Instead it's missing from the COM Add-Ins window.
According to http://msdn2.microsoft.com/en-us/library/ms269003.aspx and
http://msdn2.microsoft.com/en-us/library/ms268871.aspx , that's called
a "soft disable". These articles also square with your contention that
an unhandled exception is the likely culprit.

Most of our customers do not encounter this problem. It's just this one
organization. At the risk of sounding like I'm fishing or being too
general, is there anything that is environment specific that can
trigger an unhandled exception like this that is practically
unreproducible anywhere else?


Ken Slovak - [MVP - Outlook] wrote:
> Unhandled exceptions is the #1 cause.
>
> Disabled addins can usually be re-enabled only by deleting the registry key
> for disabling addins or by removing the addin from the disabled items list
> in the Help, About, Disabled Items dialog.
>
> Another cause of disabling can be script stoppers. If you use "New" or
> "CreateObject" in your code or access Windows Scripting your addin might be
> disabled because the script stopper causes that to fail, the exception is
> unhandled and the addin gets disabled. Also very common.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <q3537wh RemoveThis @hotmail.com> wrote in message
> news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
> > One of my company's customers is experiencing a strange problem with an
> > Outlook add-in we built. The add-in is often disabled when some of the
> > users start Outlook, and they have to go into COM add-ins to add it
> > back. The problem is that this happens pretty regularly. They'd add the
> > add-in, it'd work for a while, but some days later, when they start
> > Outlook again, the add-in disappears again, and they have to add it
> > back again.
> >
> > Some (but not all) of these users have
> > HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
> > set to 0 or 1. But changing it to a 3 hasn't worked.
> >
> > Are there any known causes that leads to an Outlook addin being
> > constantly disabled?
> >
> > TIA
> >
Back to top
Michael Tissington
External


Since: Sep 05, 2005
Posts: 11



PostPosted: Wed Sep 27, 2006 6:01 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hmm, how do I know which binary value relates to my add-in ?

--
Michael Tissington
http://www.oaklodge.com
http://www.sqlview.net

"Ken Slovak - [MVP - Outlook]" <kenslovak.TakeThisOut@mvps.org> wrote in message
news:ulrIjqn4GHA.3960@TK2MSFTNGP02.phx.gbl...
> It's all or nothing though. If the key is deleted all disabled addins are
> re-enabled. Maybe not such a good idea.
>
> Disabling adds a binary value for each addin with a name that's randomly
> generated. The Resiliency key exists if there is at least one disabled
> item, but if you re-enable the addin then the Resiliency key and
> DisabledItems subkey are both deleted. So the presence of the Resiliency
> key serves as a general test for the existence of disabled items. You can
> re-enable the addin by deleting the specific binary reg value, or by
> removing the whole key.
>
> HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Resiliency\DisabledItems
>
> 11.0 would be 10.0 for Outlook 2002, 12.0 for Outlook 2007.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Michael Tissington" <mtissington.TakeThisOut@newsgroups.nospam> wrote in message
> news:u4NYfSn4GHA.1668@TK2MSFTNGP04.phx.gbl...
>>I did not know there was a registry key that did the same as removing it
>>from the list in Help About ... What is the registry key ?
>>
>> --
>> Michael Tissington
>> http://www.oaklodge.com
>> http://www.sqlview.net
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Thu Sep 28, 2006 9:30 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It could be other addins causing a fault, it could be a script stopper, it
could be some other addin interfering with something your addin is doing
causing a fault in your own addin.

Shared addins in .NET that aren't shimmed to use their own namespaces will
disable all other shared addins like that if they fault.

About the only things that you can do are a thorough code review and using
an error log file as well as remote debugging and examining the event logs.
I can't offer anything more specific.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


<q3537wh DeleteThis @hotmail.com> wrote in message
news:1159403180.500427.239400@e3g2000cwe.googlegroups.com...
> In my situation the disabled add-in does not appear in Help | About |
> Disabled items. Instead it's missing from the COM Add-Ins window.
> According to http://msdn2.microsoft.com/en-us/library/ms269003.aspx and
> http://msdn2.microsoft.com/en-us/library/ms268871.aspx , that's called
> a "soft disable". These articles also square with your contention that
> an unhandled exception is the likely culprit.
>
> Most of our customers do not encounter this problem. It's just this one
> organization. At the risk of sounding like I'm fishing or being too
> general, is there anything that is environment specific that can
> trigger an unhandled exception like this that is practically
> unreproducible anywhere else?
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Thu Sep 28, 2006 9:30 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You don't. That's why it's all or nothing.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Tissington" <mtissington.TakeThisOut@newsgroups.nospam> wrote in message
news:OTZYlmp4GHA.2264@TK2MSFTNGP02.phx.gbl...
> Hmm, how do I know which binary value relates to my add-in ?
>
> --
> Michael Tissington
> http://www.oaklodge.com
> http://www.sqlview.net
Back to top
JJ
External


Since: Sep 30, 2006
Posts: 1



PostPosted: Sat Sep 30, 2006 7:43 pm    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can look at my post in microsoft.public.developer.outlook.addins titled
"What sets LoadBehavior back to 2?".

I had a problem where a COM add-in I was using was always getting disabled
if another program (not an add-in, a VB app which accessed Outlook via via
automation) ran without Outlook running.

Unfortunately, I did not have time to do any further analysis of the
problem - for now I just stopped running the other program. If it sounds
like it might apply to your customer, make sure there are no programs being
started (perhaps via the Startup folder) that access Outlook via automation
before Outlook is started. If there are, try disabling them and see if that
has any effect. I know it shouldn't matter, but that was the cause in my
case.

<q3537wh DeleteThis @hotmail.com> wrote in message
news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
> One of my company's customers is experiencing a strange problem with an
> Outlook add-in we built. The add-in is often disabled when some of the
> users start Outlook, and they have to go into COM add-ins to add it
> back. The problem is that this happens pretty regularly. They'd add the
> add-in, it'd work for a while, but some days later, when they start
> Outlook again, the add-in disappears again, and they have to add it
> back again.
>
> Some (but not all) of these users have
> HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
> set to 0 or 1. But changing it to a 3 hasn't worked.
>
> Are there any known causes that leads to an Outlook addin being
> constantly disabled?
>
> TIA
>
Back to top
Andy
External


Since: Jun 08, 2006
Posts: 1



PostPosted: Tue Oct 10, 2006 7:53 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Experiencing the follow issue: We have an outlook addin. When opening a
certain .msg, Outlook will hang. On 're-launch' of Outlook, and choosing
[YES] to disable our addin, this .msg file is opened without issue.

I am trying to work with our developers, but wanted to throw this scenario
out here just in case there is something obvious. I know that the short term
solution (to re-enable out addin) is to delete the resiliency key, but am
banging my head trying to find the root cause of the hanging. I.e. is there
any extra logging, channels for investigation i can pursue? I've tried
regmon, and process-explorer, and netiher seem to have too much 'obvious'
information...

Any words of wisdom appreciated....

Thanks
Andy

"Ken Slovak - [MVP - Outlook]" wrote:

> Unhandled exceptions is the #1 cause.
>
> Disabled addins can usually be re-enabled only by deleting the registry key
> for disabling addins or by removing the addin from the disabled items list
> in the Help, About, Disabled Items dialog.
>
> Another cause of disabling can be script stoppers. If you use "New" or
> "CreateObject" in your code or access Windows Scripting your addin might be
> disabled because the script stopper causes that to fail, the exception is
> unhandled and the addin gets disabled. Also very common.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <q3537wh RemoveThis @hotmail.com> wrote in message
> news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
> > One of my company's customers is experiencing a strange problem with an
> > Outlook add-in we built. The add-in is often disabled when some of the
> > users start Outlook, and they have to go into COM add-ins to add it
> > back. The problem is that this happens pretty regularly. They'd add the
> > add-in, it'd work for a while, but some days later, when they start
> > Outlook again, the add-in disappears again, and they have to add it
> > back again.
> >
> > Some (but not all) of these users have
> > HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
> > set to 0 or 1. But changing it to a 3 hasn't worked.
> >
> > Are there any known causes that leads to an Outlook addin being
> > constantly disabled?
> >
> > TIA
> >
>
>
Back to top
Andy
External


Since: Mar 23, 2006
Posts: 253



PostPosted: Tue Oct 10, 2006 7:54 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Experiencing the follow issue: We have an outlook addin. When opening a
certain .msg, Outlook will hang. On 're-launch' of Outlook, and choosing
[YES] to disable our addin, this .msg file is opened without issue.

I am trying to work with our developers, but wanted to throw this scenario
out here just in case there is something obvious. I know that the short term
solution (to re-enable out addin) is to delete the resiliency key, but am
banging my head trying to find the root cause of the hanging. I.e. is there
any extra logging, channels for investigation i can pursue? I've tried
regmon, and process-explorer, and netiher seem to have too much 'obvious'
information...

Any words of wisdom appreciated....

Thanks
Andy


"Ken Slovak - [MVP - Outlook]" wrote:

> Unhandled exceptions is the #1 cause.
>
> Disabled addins can usually be re-enabled only by deleting the registry key
> for disabling addins or by removing the addin from the disabled items list
> in the Help, About, Disabled Items dialog.
>
> Another cause of disabling can be script stoppers. If you use "New" or
> "CreateObject" in your code or access Windows Scripting your addin might be
> disabled because the script stopper causes that to fail, the exception is
> unhandled and the addin gets disabled. Also very common.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <q3537wh RemoveThis @hotmail.com> wrote in message
> news:1159386597.223076.295610@d34g2000cwd.googlegroups.com...
> > One of my company's customers is experiencing a strange problem with an
> > Outlook add-in we built. The add-in is often disabled when some of the
> > users start Outlook, and they have to go into COM add-ins to add it
> > back. The problem is that this happens pretty regularly. They'd add the
> > add-in, it'd work for a while, but some days later, when they start
> > Outlook again, the add-in disappears again, and they have to add it
> > back again.
> >
> > Some (but not all) of these users have
> > HKCU\Software\Microsoft\Office\Outlook\Addins\OurOutlookAddin.OutlookAddin
> > set to 0 or 1. But changing it to a 3 hasn't worked.
> >
> > Are there any known causes that leads to an Outlook addin being
> > constantly disabled?
> >
> > TIA
> >
>
>
Back to top
Andy
External


Since: Mar 23, 2006
Posts: 253



PostPosted: Tue Oct 10, 2006 7:54 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Experiencing the follow issue: We have an outlook addin. When opening a
certain .msg, Outlook will hang. On 're-launch' of Outlook, and choosing
[YES] to disable our addin, this .msg file is opened without issue.

I am trying to work with our developers, but wanted to throw this scenario
out here just in case there is something obvious. I know that the short term
solution (to re-enable out addin) is to delete the resiliency key, but am
banging my head trying to find the root cause of the hanging. I.e. is there
any extra logging, channels for investigation i can pursue? I've tried
regmon, and process-explorer, and netiher seem to have too much 'obvious'
information...

Any words of wisdom appreciated....

Thanks
Andy


"Ken Slovak - [MVP - Outlook]" wrote:

> It's all or nothing though. If the key is deleted all disabled addins are
> re-enabled. Maybe not such a good idea.
>
> Disabling adds a binary value for each addin with a name that's randomly
> generated. The Resiliency key exists if there is at least one disabled item,
> but if you re-enable the addin then the Resiliency key and DisabledItems
> subkey are both deleted. So the presence of the Resiliency key serves as a
> general test for the existence of disabled items. You can re-enable the
> addin by deleting the specific binary reg value, or by removing the whole
> key.
>
> HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Resiliency\DisabledItems
>
> 11.0 would be 10.0 for Outlook 2002, 12.0 for Outlook 2007.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Michael Tissington" <mtissington DeleteThis @newsgroups.nospam> wrote in message
> news:u4NYfSn4GHA.1668@TK2MSFTNGP04.phx.gbl...
> >I did not know there was a registry key that did the same as removing it
> >from the list in Help About ... What is the registry key ?
> >
> > --
> > Michael Tissington
> > http://www.oaklodge.com
> > http://www.sqlview.net
>
>
Back to top
Andy
External


Since: Mar 23, 2006
Posts: 253



PostPosted: Tue Oct 10, 2006 7:56 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
Experiencing the follow issue: We have an outlook addin. When opening a
certain .msg, Outlook will hang. On 're-launch' of Outlook, and choosing
[YES] to disable our addin, this .msg file is opened without issue.

I am trying to work with our developers, but wanted to throw this scenario
out here just in case there is something obvious. I know that the short term
solution (to re-enable out addin) is to delete the resiliency key, but am
banging my head trying to find the root cause of the hanging. I.e. is there
any extra logging, channels for investigation i can pursue? I've tried
regmon, and process-explorer, and netiher seem to have too much 'obvious'
information...

Any words of wisdom appreciated....

Thanks
Andy


"Ken Slovak - [MVP - Outlook]" wrote:

> It could be other addins causing a fault, it could be a script stopper, it
> could be some other addin interfering with something your addin is doing
> causing a fault in your own addin.
>
> Shared addins in .NET that aren't shimmed to use their own namespaces will
> disable all other shared addins like that if they fault.
>
> About the only things that you can do are a thorough code review and using
> an error log file as well as remote debugging and examining the event logs.
> I can't offer anything more specific.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <q3537wh.RemoveThis@hotmail.com> wrote in message
> news:1159403180.500427.239400@e3g2000cwe.googlegroups.com...
> > In my situation the disabled add-in does not appear in Help | About |
> > Disabled items. Instead it's missing from the COM Add-Ins window.
> > According to http://msdn2.microsoft.com/en-us/library/ms269003.aspx and
> > http://msdn2.microsoft.com/en-us/library/ms268871.aspx , that's called
> > a "soft disable". These articles also square with your contention that
> > an unhandled exception is the likely culprit.
> >
> > Most of our customers do not encounter this problem. It's just this one
> > organization. At the risk of sounding like I'm fishing or being too
> > general, is there anything that is environment specific that can
> > trigger an unhandled exception like this that is practically
> > unreproducible anywhere else?
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Tue Oct 10, 2006 11:22 am    Post subject: Re: Outlook add-in is constantly being disabled [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Only one post was necessary and it wasn't necessary to start a brand new
thread also with the same problem.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Andy" <Andy @discussions.microsoft.com> wrote in message
news:A1710299-FF34-403F-B737-663B94EF6B17@microsoft.com...
> Hi,
> Experiencing the follow issue: We have an outlook addin. When opening a
> certain .msg, Outlook will hang. On 're-launch' of Outlook, and choosing
> [YES] to disable our addin, this .msg file is opened without issue.
>
> I am trying to work with our developers, but wanted to throw this scenario
> out here just in case there is something obvious. I know that the short
> term
> solution (to re-enable out addin) is to delete the resiliency key, but am
> banging my head trying to find the root cause of the hanging. I.e. is
> there
> any extra logging, channels for investigation i can pursue? I've tried
> regmon, and process-explorer, and netiher seem to have too much 'obvious'
> information...
>
> Any words of wisdom appreciated....
>
> Thanks
> Andy
Back to top
KalinZ



Joined: Apr 13, 2009
Posts: 1



PostPosted: Mon Apr 13, 2009 9:05 am    Post subject: [Login to view extended thread Info.]

I do have a question for everyone that can help. Is there a difference of the add-in being disabled (placed under the Disabled items in the Outlook trust center), or the add-in being turned as inactive. Everywhere that I read, I usually see issues related to the add-in being disabled. However from the problems that I've had and the testing that I've done, it seems to me that when my users are having the problem, the add-in is actually turned inactive. Moreover, the Load Behavior of the add-in seems to be changed from 3 to 2 only when the add-in becomes inactive. The load Behavior still shows 3 if the Add-in was disabled and shows under the disabled items. I developed the add-in using VSTO 2008 and my users are running Outlook 2007. I have proper exception handling throughout all of my application even in "ThisAddIn.vb" methods. So I am not quite sure what I am looking for? Do you know of any differences between inactive and disabled? How come Load Behavior is still 3 when the add-in is disabled?

Thanks in advance.
Back to top
roberthir



Joined: Aug 11, 2009
Posts: 1



PostPosted: Tue Aug 11, 2009 2:12 pm    Post subject: [Login to view extended thread Info.]

KalinZ wrote:
I do have a question for everyone that can help. Is there a difference of the add-in being disabled (placed under the Disabled items in the Outlook trust center), or the add-in being turned as inactive. Everywhere that I read, I usually see issues related to the add-in being disabled. However from the problems that I've had and the testing that I've done, it seems to me that when my users are having the problem, the add-in is actually turned inactive. Moreover, the Load Behavior of the add-in seems to be changed from 3 to 2 only when the add-in becomes inactive. The load Behavior still shows 3 if the Add-in was disabled and shows under the disabled items. I developed the add-in using VSTO 2008 and my users are running Outlook 2007. I have proper exception handling throughout all of my application even in "ThisAddIn.vb" methods. So I am not quite sure what I am looking for? Do you know of any differences between inactive and disabled? How come Load Behavior is still 3 when the add-in is disabled?

Thanks in advance.


Outlook does 2 different types of disabling, HARD and SOFT (differentiated by whether the addin that malfunctions takes Outlook down or not)

http://msdn.microsoft.com/en-us/library/ms268871.aspx

Microsoft Office applications can disable add-ins that behave unexpectedly while they are being loaded. If an application does not load your add-in when you try to debug it, the application might have hard disabled or soft disabled your add-in.
There are different processes for re-enabling add-ins, depending on the application.
Hard-Disabled Add-Ins
Hard disabling occurs when user code that runs while the add-in is loaded causes the application to close unexpectedly, and when you stop the debugger while the constructor or the Startup event handler is executing.

Soft-Disabled Add-Ins
Soft disabling occurs when an add-in throws an unhandled exception in the constructor or the Startup event handler, but the application does not unexpectedly close.
Note:

When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.

Note the subtle differences below between Hard and Soft
To re-enable an add-in that has been hard disabled by InfoPath 2007, Outlook 2007, or Visio 2007
1. On the Tools menu, click Trust Center.
2. In the categories pane, click Add-ins.
3. In the details pane, locate the add-in in the Disabled Application Add-ins list.
The Name column specifies the name of the assembly, and the Location column specifies the full path of the application manifest.
4. In the Manage box, click Disabled Items, and then click Go.
5. Select the add-in and click Enable.
6. Click Close.
To re-enable an add-in that has been soft disabled by InfoPath 2007, Outlook 2007, or Visio 2007
1. On the Tools menu, click Trust Center.
2. In the categories pane, click Add-ins.
3. In the details pane, locate the add-in in the Inactive Application Add-ins list.
The Name column specifies the name of the assembly, and the Location column specifies the full path of the application manifest.
4. In the Manage box, click COM Add-ins, and then click Go.
5. In the COM Add-Ins dialog box, select the check box next to the disabled add-in.
6. Click OK.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum