Cannot show DicomViewer in .NET Designer
When using DicomObjects.NET and adding a DicomViewer on the the form in the designer, some people may have the following error message:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Could not find type 'DicomObjects.DicomViewer'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. The variable 'DicomViewer1' is either undeclared or was never assigned. at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
To solve this problem, all you have to do is shut down your visual studio IDE, go to the directory where you put DicomObjects.NET.1.1.dll, make a copy of rscoree.dll and paste it into Windows\System32 directory. Then start your visual studio IDE and load your project, this problem should disappear.