2.0 framework incompatibility

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

2.0 framework incompatibility
Framework 3.5 method usage in addin code. 
Oleh Petrov


Guest


Hi

Our add-in project is targeting 2.0 .Net framework. But lately we have started receiving complaints from customers that our app is trying to use 3.5 framework method:

************** Exception Text **************
System.Exception: Method not found: 'Boolean System.Threading.WaitHandle.WaitOne(Int32)'. - ADXContainerPane.WndProc(f; 0; 0) - ADXContainerPaneOL.WndProc(f; 0; 0)
at AddinExpress.Extensions.AdxContainerPaneOL.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Can it be corrected to use 2.0 framework abilities only? (Since there is only 2.0 framework in addin requirements)
(I'm not sure weather it is related to devex controls or addin, so if it is in addin - please reply)

Thanks.
Posted 03 Mar, 2011 11:23:01 Top
Eugene Astafiev


Guest


Hi Oleh,

The mentioned method was added to .net framework 2.0 by the service pack. Now you have two possible ways of resolution:

1. Install the latest service packs for OS and .net framework.
2. Soon we will publish a new build of Add-in Express 2010 with a fix.

Which way do you prefer?
Posted 03 Mar, 2011 13:02:31 Top
Oleh Petrov


Guest


Hi

Of course I do prefer the second solution because I cant tell all the customers to install service packs.

Thanks.
Posted 04 Mar, 2011 05:35:58 Top
Eugene Astafiev


Guest


Hi Oleh,

Please check out your Inbox. I have just sent an e-mail with a link for download.
Posted 04 Mar, 2011 05:55:15 Top
Hannes Koidl




Posts: 320
Joined: 2008-05-19
Hi Eugene,

i have the same problem now. Is there a fix available?
Posted 07 Mar, 2011 08:19:29 Top
Eugene Astafiev


Guest


Hi Hannes,

I have just sent an e-mail with a link for download. Please see your Inbox.
Posted 07 Mar, 2011 08:29:03 Top
Bryan


Guest


Oleh Petrov wrote:
2. Soon we will publish a new build of Add-in Express 2010 with a fix.


When will this fix be available? We have not yet encountered this issue, but we too are targeting .NET 2.0 and we can't control which service packs our customers have installed.
Posted 08 Mar, 2011 10:02:04 Top
Eugene Astafiev


Guest


Hi Bryan,

It will be published on our web site in a week or two. Temporarily I can provide you with an intermediate build of Add-in Express 2010.
Posted 09 Mar, 2011 06:08:08 Top
Sarah QM7


Guest


Hi Eugene,
One of our customers reported this error.
How could I restore this scenario to be sure that the new version fix it?
Thanks.
Posted 28 Mar, 2011 07:00:49 Top
Eugene Astafiev


Guest


Hi Sarah,

1. Please find the 'Method not found' exception was thrown when an advanced task pane or an advanced Outlook region was used on a PC where SP2 for NET Framework 2.0 was not installed. entry on the http://www.add-in-express.com/add-in-net/history.php page of our web site.

2. To be sure, you can install a previous public build of http://www.add-in-express.com/downloads/adxnet-old.php.
Posted 28 Mar, 2011 07:19:48 Top