05-28-2008 08:07 AM
|
Could not find type 'AxInterop.CWUIControlsLib.AxCWKnob'. 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. | |
|
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) |
05-28-2008 09:16 AM
The CLR proxy DLL is known as the Runtime Callable Wrapper (RCW) and contains a .NET version of the COM type library. It defines all objects and interfaces found in the original COM type library and the classes that implement the interfaces. Visual Studio .NET names this DLL Interop.ID.dll, where ID is the name of the type library. In your case, the name is Interop.CWUIControlsLib.dll. The Interop prefix denotes that the RCW incorporates services from the Interop layer, which controls marshalling and interoperability between COM and the .NET Framework.
The Windows Form proxy DLL provides a .NET control that calls the RCW. This DLL defines the properties, methods, and events you can set, call, and handle programmatically. Visual Studio names this DLL AxInterop.ID.dll, where ID is the name of the type library. In your case, the name is AxInterop.CWUIControlsLib.dll. The Ax prefix denotes that the wrapper classes inherit from the AxHost class to expose the ActiveX control as a Windows Forms control.
Now, I have upgraded Visual Studio .NET 2003 projects up to VS 2005 before which contain ActiveX controls and never had any problems. I did a quick test just a few minutes ago in C# where I created a VS 2003 application with the CWKnob control and upgraded that application to VS 2005 and didn't see any weird behavior. The project still ran.
05-28-2008 09:19 AM
05-28-2008 10:12 AM