ADXForm and Exceptions

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

ADXForm and Exceptions
 
This forum has moved to a new location. From now on, please post all your questions about Add-in Express Regions on .NET and VSTO forum.
Daniel Ranft




Posts: 14
Joined: 2012-09-13
If there is an unhandled exception, ADX shows a nice exception window with a lot of information. This is quite good for us developers, but why is this dialog visible for the enduser in a release build?
Can i disable the exception dialog in release builds?
Posted 21 Sep, 2012 02:17:07 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Daniel,

Please take a look at the forum thread. You need to handle the OnError event of the add-in module class for suppressing exception windows:

private void AddinModule_OnError(ADXErrorEventArgs e) 
{ 
    e.Handled = true; 
}
.NET, Extended MAPI, Windows Phone & RT
Posted 21 Sep, 2012 03:03:40 Top
Daniel Ranft




Posts: 14
Joined: 2012-09-13
I'm not able to handle it. I have "Ribbons for Outlook and VSTO", so i don't have the needed dll.
Is there an other way to supress the dialog?
Posted 21 Sep, 2012 03:20:07 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Daniel,

There is no such product on the shelf. May be you mean Add-in Express Regions for Microsoft Outlook and VSTO?

Please see the following stub code in the FormsManager(.cs) file:

private void FormsManager_OnError(object sender, AddinExpress.OL.ErrorEventArgs args)
{
        
}


Is it what you are looking for?
.NET, Extended MAPI, Windows Phone & RT
Posted 21 Sep, 2012 04:26:01 Top
Daniel Ranft




Posts: 14
Joined: 2012-09-13
Yes i meant Regions and not Ribbons :)
Thanks, that helped a lot
Posted 21 Sep, 2012 04:42:09 Top