Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Recently i created an addin for outlook 2013 and a wix installer to perform the installation of the addin. The installation and addin work without any problems in my dev environment but when i install it on another machine and launch outlook the addin is disabled, when i enable it outlook crashes. The only trace i can find of what happened is in the event viewer which reports 2 errors, an application error:

- System 

  - Provider 

   [ Name]  Application Error 
 
  - EventID 1000 

   [ Qualifiers]  0 
 
   Level 2 
 
   Task 100 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2015-07-18T09:00:18.000000000Z 
 
   EventRecordID 4642 
 
   Channel Application 
 
   Computer Laptop 
 
   Security 
 

- EventData 

   OUTLOOK.EXE 
   15.0.4701.1000 
   54d9c823 
   unknown 
   0.0.0.0 
   00000000 
   c0000005 
   00007ff99a9206a4 
   cf4 
   01d0c1380e5ae3ff 
   C:\Program Files\Microsoft Office\Office15\OUTLOOK.EXE 
   unknown 
   694cd0e1-2d2b-11e5-8264-d85de21b10b8 


and a .NET runtime error:

- System 

  - Provider 

   [ Name]  .NET Runtime 
 
  - EventID 1026 

   [ Qualifiers]  0 
 
   Level 2 
 
   Task 0 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2015-07-18T09:00:18.000000000Z 
 
   EventRecordID 4641 
 
   Channel Application 
 
   Computer Laptop 
 
   Security 
 

- EventData 

   Application: OUTLOOK.EXE Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException Stack: at Microsoft.Office.Tools.Ribbon.RibbonBase.Dispose(Boolean) at TaskMonsterOutlookAddin.OutlookRibbon.Dispose(Boolean) at System.ComponentModel.Component.Finalize()  




I see that there is a null reference exception in the .net error but the exception info is showing the outlook ribbons Dispose method which is auto generated, i realize something is going wrong when then dispose method is being called but im not sure what to look for, does anyone have any ideas on how this can be fixed?. i surrounded the code in the dispose method with a try catch but i didn't gather anything new from the returned exceptions.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900