Posted 20 years ago by Greg Shaffer - Boulder
Avatar
Hi,

When I call CreateDocumentWindow I get the following cast exception.:

System. InvalidCastException: Specified cast is not valid.
at ActiproSoftware. DockableWindow. DWDocumentContainerCollection. get_Item(Int32 index)

Any ideas on what is happening?

Thanks,
Greg

Comments (4)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Can you duplicate it in the sample project and let me know how to do so?


Actipro Software Support

Posted 20 years ago by Greg Shaffer - Boulder
Avatar
I might be able to find some time to do that.

Is it possible to look at the Item Property's getter and then tell me what type of Casting could be causing this to happen? Maybe if I know this information I can tinker with my UserControl and fix the problem from my end without having to create a sample project.

Thanks,
Greg
Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That property casts to a DWDocumentContainer.


Actipro Software Support

Posted 20 years ago by Greg Shaffer - Boulder
Avatar
I figured it out. The problem was related to assembly versioning.

I was referencing dlls that were created using an older version of your dlls. (they were created in a separate solution).

Once I recompiled the older dlls, the null exception went away.

-Greg

[ 06-15-2004: Message edited by: Greg Shaffer ]
The latest build of this product (v2.0.0208) was released 19 years ago, which was after the last post in this thread.