Discussion:
VS2008 Design time support
(too old to reply)
Liberado27
2008-07-01 14:58:02 UTC
Permalink
Hi!

I'm trying to migrate a Custom Control from VS 2005 to VS 2008 (C#).

I succesfully migrate it but when I try to open a control that inherits for
this in designer, Visual Studio throws this message:

Value cannot be null. Parameter name: instance
Instances of this error (1)
1. Hide Call Stack
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance,
Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent
component, Boolean rootDesigner)
...

I don't know how to solve this error. Any advice?

Thank you!
unknown
2009-11-16 21:03:00 UTC
Permalink
I am also having the same problem. I am working on Windows application. I am converting that from .NET 1.1 to .NET 3.5. It has few Components. I am able to convert the project into .NET 3.5 using Migration Wizard and following all steps. When build the project, it is done successfully without any error messages. I can even test my components. The code in components is executing successfully. During run time I can see my Component forms. But whenever I open designer during developing, I am getting error message as Value cannot be null.Parameter name: instance. So, I cannot open form during design time. Can anybody tell me how to solve this problem since I need to open the form and add new buttons to it.



Liberado2 wrote:

VS2008 Design time support
01-Jul-08

Hi

I'm trying to migrate a Custom Control from VS 2005 to VS 2008 (C#)

I succesfully migrate it but when I try to open a control that inherits for
this in designer, Visual Studio throws this message

Value cannot be null. Parameter name: instanc
Instances of this error (1
1. Hide Call Stac
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance,
Attribute[] attributes
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent
component, Boolean rootDesigner
..

I don't know how to solve this error. Any advice

Thank you!

Previous Posts In This Thread:

On Tuesday, July 01, 2008 10:58 AM
Liberado2 wrote:

VS2008 Design time support
Hi

I'm trying to migrate a Custom Control from VS 2005 to VS 2008 (C#)

I succesfully migrate it but when I try to open a control that inherits for
this in designer, Visual Studio throws this message

Value cannot be null. Parameter name: instanc
Instances of this error (1
1. Hide Call Stac
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance,
Attribute[] attributes
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent
component, Boolean rootDesigner
..

I don't know how to solve this error. Any advice

Thank you!

EggHeadCafe - Software Developer Portal of Choice
Vista Glass Effect NotifyIcon CPU / Memory Meter
http://www.eggheadcafe.com/tutorials/aspnet/4e03a3e2-5bc7-4d44-a7ac-e250825c8c39/vista-glass-effect-notify.aspx
Continue reading on narkive:
Loading...