weird InvalidCastException in my AddIn

D

David Thielen

Hi;

Anyone have any idea what is going on here? The code that hits this problem
runs fine when called from my test app. But when called from inside my Word
AddIn I get:

System.InvalidCastException occurred
Message="Unable to cast object of type
'DevExpress.Utils.ImageCollectionStreamer' to type
'DevExpress.Utils.ImageCollectionStreamer'."
Source="AutoTagCore"
StackTrace:
at net.windward.autotag.controls.TagEditor.InitializeComponent() in
C:\src\kahuna\AutoTag\AutoTagCore\net\windward\autotag\controls\TagEditor.Designer.cs:line 221

It's the same class!!!

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
W

Walter Wang [MSFT]

Hi Dave,

If the same assembly has two copies at two directories and both are loaded
into your AppDomain, a type with same name from both assemblies are NOT the
same.

Please check if you have two copies of the assembly get loaded in your
AppDomain.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top