Question Failed to create component OvalShape

groover

Member
Joined
Oct 10, 2009
Messages
23
Programming Experience
1-3
Hi all,

I recently changed from vb 2008 express to vb 2010 express and converted a project I was working on to vb 2010. After conversion I added a lot of code and all worked well.
Now I want to add some shapes from the vb power pack tools and I get the following error:

---------------------------
Microsoft Visual Basic 2010 Express
---------------------------
Failed to create component 'OvalShape'. The error message follows:

'System.InvalidCastException:
[A]Microsoft.VisualBasic.PowerPacks.ShapeContainer cannot be cast to Microsoft.VisualBasic.PowerPacks.ShapeContainer.
Type A originates from 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualBasic.PowerPacks.Vs\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.PowerPacks.Vs.dll'.
Type B originates from 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualBasic.PowerPacks.Vs\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.PowerPacks.Vs.dll'.

at Microsoft.VisualBasic.PowerPacks.Design.ShapeContainerDesigner.Initialize(ICompo-
nent component)

at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(ICompo-
nent component, String name, IContainer containerToAddTo)

at System.ComponentModel....'

How can I recover from this?

Thanks in advance,

Groover
 
Hi,

this is all the relevant info:

Name: Microsoft.VisualBasic.PowerPacks.Vs
Description: Microsoft.VisualBasic.PowerPacks.Vs.dll
Runtime Version: v2.0.50727
Version: 9.0.0.0

greetz,

Groover
 
Back
Top