Error rendering control - [A] cannot be passed to [B] in the context of LoadNeither

I am working on a composite control, and for this I need to open several IDEs for Visual Studio and add the control to the pages.

This forces Visual Studio to create multiple assemblies.

So, every time this happens, I close all IDEs and delete the ProjectAssemblies folder.

Can all this be avoided? It’s very hard to work like that ...

UPDATE:

Specific error:

An unhandled exception occurred. [A] VerySimpleEditor.Toolbars cannot be cast to [B] VerySimpleEditor.ToolBars. Type A is taken from 'VerySimpleEditor, Version = 1.0.0.0, Culture = Neutral, PublicToken = null' in the context "LoadNeither" at C: \ Documents and Settings \ Mark \ Local Settings \ Application Data \ Microsoft \ VisualStudio \ 9.0 \ ProjectAssemlies \ J-wxrc_j01 \ verysimpleeditor.dll. Type B is taken from 'VerySimpleEditor, Version = 1.0.0.0, Culture = Neutral, PublicToken = null' in the context "LoadNeither" at C: \ Documents and Settings \ Mark \ Local Settings \ Application Data \ Microsoft \ VisualStudio \ 9.0 \ ProjectAssemlies \ bkqrbe-r01 \ VerySimpleEditor.dll.

When I try to do this:

 using (System.IO.Stream textReader = typeof(TheEditor).Assembly.GetManifestResourceStream("VerySimpleEditor.Toolbar.xml"))
 {
         XmlSerializer deserializer = new XmlSerializer(typeof(ToolBars));
         ToolBars ob = (ToolBars)deserializer.Deserialize(textReader);

 }

(dll) - , - .
, , , Visual studio , .

+4
2

, . , Visual Studio. Visual Studio.

+2

:

C:\Documents and Settings\Mark\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemlies\j-wxrc_j01    
C:\Documents and Settings\Mark\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemlies\bkqrbe-r01

... , .

.

+1

All Articles