IEObj no longer accessible when upgrading from standard to premium Add In for IE 2009

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

IEObj no longer accessible when upgrading from standard to premium Add In for IE 2009
 
mmyers321




Posts: 7
Joined: 2009-04-15
One of our coders had a reference to IEObj in one of his classes of the form:

ie = (WebBrowser) Module.IEObj;

When I updated the Add In Express for IE 2009 from the standard to the premium addition,
I get the following error when compiling the same code:

AddinExpress.IE.IRemoteModule' does not contain a definition for 'IEObj' and no extension method 'IEObj' accepting a first argument of type 'AddinExpress.IE.IRemoteModule' could be found (are you missing a using directive or an assembly reference?)
Posted 11 Dec, 2009 16:35:36 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Mike,

Is the corresponding reference in your project valid? Make sure that Specific Version and CopyLocal don't produce that effect.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Dec, 2009 05:15:22 Top
mmyers321




Posts: 7
Joined: 2009-04-15
Thanks, Andrei. I was a little quick in posting this. Turns out a simple cast of the form:

ie = (WebBrowser)((IEModule)Module).IEObj;

solved the issue for us.

Thanks
Mike
Posted 14 Dec, 2009 16:06:14 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Thank you for letting me know!


Andrei Smolin
Add-in Express Team Leader
Posted 14 Dec, 2009 16:25:14 Top