Outlook never starts for me from VS2012

Add-in Express™ Support Service
That's what is more important than anything else

Outlook never starts for me from VS2012
Outlook hangs when trying to debug 
Michael Leitao


Guest


I'm new to addin express, but I am having an annoying issue. when I try to F5 debug, Outlook starts but it will just hang on Processing. If I want to Debug I always need to Build first, then Register it, start Outlook and then attach to process in vs. Do you know of any easier way.

I'm using VS2012 Pro and Outlook 2013, addin-express 8.2.4371

Thanks

Michael
Posted 27 Sep, 2016 07:29:14 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Michael,

If this doesn't occur with a new empty add-in project, make sure that all custom things are initialized in an event of the add-in module; check the constructor and initializers of complex-type variables declared on the class level in the add-in module.

Depending on the Outlook version used and the way you start Outlook, the very first event that occurs on the add-in module is AddinItnitialize or OnRibbonCreate.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Sep, 2016 08:14:57 Top
Heinz-Josef Bomanns




Posts: 206
Joined: 2008-02-28
Hi Michael, Andrei,

we've noticed that this behaviour may be an issue with the Framework addressed and the host.exe.config file located in the office installation folder. If you for e.g. address the 3.5 framework or earlier, you may have to tell Outlook via outlook.exe.config like this:


<?xml version ="1.0"?>
<configuration>
   <startup>
      <!-- v4.0.30319 -->
      <!-- v2.0.50727 -->
      <supportedRuntime version="v2.0.50727" safemode="true"/>
      <requiredRuntime version="v2.0.50727" safemode="true"/>
   </startup>
</configuration>

If adressing framework 4.x replace 'v2.0.50727' with 'v4.0.30319' - this helped us to debug add-ins addressing different frameworks, give it a try...
__________________
Greetings, HJB
Posted 27 Sep, 2016 23:39:43 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Thank you, Heinz-Josef!

Michael,

I would also check if there's a dialog form opened by your add-in or Outlook behind the scenes. Make sure all other COM add-ins are turned off.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Sep, 2016 04:32:16 Top