WatchEngine.Execute: "Not supported version"

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

WatchEngine.Execute: "Not supported version"
"Not supported version" exception is thrown all the time 
Oleh Petrov




Posts: 65
Joined: 2010-05-11
Hi

Our application (outlook addin) is catching all the exceptions and logs them into our logfile to ease up client issues resolution. And a few days ago one of our clients reported that his log file grew to 500 mb in two days, after inspecting it appeared that WatchEngine is throwing "Not supported version" exception all the time. How can we prevent addin from performing faulty operation all the time?

We are using Addin express 2010 premium, clients PC is Win7/Office 2007

Stack trace

WatchEngine.Execute: Not supported version: at AddinExpress.OL.SharingInspectorFinder.FindIn2007(IntPtr HostHandle, FindWindowCondition conditio
n)
at AddinExpress.Extensions.FindWindowObject.Find(IntPtr HostHandle, FindWindowCondition condition)
at AddinExpress.Extensions.Utils.GetAppWindowHandle(Int32 FHostVersion, AdxItemType FItemType, IntPtr FHostHandle)
at AddinExpress.OL.OutlookHandleFinder.GetAppWindowHandle(Int32 hostVersion, Int32 itemType, IntPtr hostHandle)
at AddinExpress.OL.ShowChildWindowWatchObject.DoExecute(Int32 Message)
at AddinExpress.OL.WatchObject.Execute()
at AddinExpress.OL.WatchEngine.Execute(Object stateInfo)
Posted 11 Nov, 2010 06:46:20 Top
Eugene Astafiev


Add-in Express team


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

What version and build number of Add-in Express do you use? Could you please show me the adxloader.log and adxregistrator.log files?

Please make sure that you installed the latest service packs for Office and updates for OS.
.NET, Extended MAPI, Windows Phone & RT
Posted 11 Nov, 2010 07:18:48 Top
Oleh Petrov




Posts: 65
Joined: 2010-05-11
Hi

We use Addin express 2010 Premium, version 6.2.3051.
Unfortunately we have only adxloader -
adxloader.log

I dont think that this issue depends on some patches or updates, because after using Reflector.exe I've discovered following code

protected override IntPtr FindIn2007(IntPtr HostHandle, FindWindowCondition condition)
{
    throw new Exception("Not supported version");
}


So it seeme to me that some process is executed in a loop, though should not be started.

Thanks
Posted 11 Nov, 2010 08:56:55 Top
Eugene Astafiev


Add-in Express team


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

Thank you for providing me with a log file. When the log was opened I noticed the following line:

Loader version: 6.0.3043

It states that you use an old build of the adxloader.dll file. Please replace the adxloader[64].dll in the Loader folder of your project with a new one (see the Redistributables folder).

This is a bug. It is filed in our bug-tracking system under #2045. Thank for pointing this to us!
.NET, Extended MAPI, Windows Phone & RT
Posted 11 Nov, 2010 09:31:29 Top
Oleh Petrov




Posts: 65
Joined: 2010-05-11
Hi

We've released several versions of the addin, also with previous versions of adxloader, I did not check which version this client has... Appears its the previous one, in this case will we be able to release some kind of a patch for the users with previous version of the loader? When can we expect a resolution?
Posted 11 Nov, 2010 10:41:08 Top
Eugene Astafiev


Add-in Express team


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

We have fixed that issue and are going to publish a new public build of Add-in Express in the end of November. Currently you can use the following workaround:

1. You can handle the OnError event of the AddinExpress.OL.ADXOlFormsManager class.
2. In the event handler you can set the Handled property of the AddinExpress.OL.ErrorEventArgs class to true.

For example:
private void adxOlFormsManager1_OnError(object sender, AddinExpress.OL.ErrorEventArgs args)
{
   args.Handled = true;
}
.NET, Extended MAPI, Windows Phone & RT
Posted 11 Nov, 2010 12:04:11 Top
Oleh Petrov




Posts: 65
Joined: 2010-05-11
Hi Eugene

Is it fixed already?
Posted 03 Dec, 2010 08:05:13 Top
Andrei Smolin


Add-in Express team


Posts: 16670
Joined: 2006-05-11
Hi Oleh,

Yes, it is.

from http://www.add-in-express.com/add-in-net/history.php:
- In Outlook 2007, the "Not supported version" exception was thrown when a
SharingItem was opened (Case #2045).


Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Dec, 2010 08:45:03 Top