Chris
It does not show me the object;
------------start of error
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. Clicking on each error will take you to the
line of code that caused it.
Object reference not set to an instance of an object.
Hide
Edit
at
Microsoft.Visua lStudio.Design. Toolbox.AutoToo lboxManagerServ ice.AddToolboxI tem(IVsHierarch y
hierarchy, String typeName, Type loadedType, String category, String
referencePath, ToolboxItemFilt erAttribute projectFilter,
ToolboxItemFilt erAttribute itemFilter)
at
Microsoft.Visua lStudio.Design. Toolbox.Project AutoToolboxMana ger.UpdateToolb oxItems(Boolean updateRefs, Boolean updateBuild)
at
Microsoft.Visua lStudio.Design. Toolbox.Project AutoToolboxMana ger..ctor(AutoT oolboxManagerSe rvice
ownerService, IServiceProvide r provider, IVsHierarchy hierarchy, Boolean&
keepMe)
at
Microsoft.Visua lStudio.Design. Toolbox.AutoToo lboxManagerServ ice.GetAutoTool boxManager(Obje ct vsHierarchy)
at
Microsoft.Visua lStudio.Design. Toolbox.AutoToo lboxManagerServ ice.GetAutoTool boxManagerFromH ost(IDesignerHo st host)
at
Microsoft.Visua lStudio.Design. Toolbox.AutoToo lboxManagerServ ice.OnDesignerL oadComplete(Obj ect sender, EventArgs e)
at System.EventHan dler.Invoke(Obj ect sender, EventArgs e)
at System.Componen tModel.Design.D esignerHost.OnL oadComplete(Eve ntArgs e)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.Seri alization.IDesi gnerLoaderHost. EndLoad(String
rootClassName, Boolean successful, ICollection errorCollection )
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.OnEndLoad(Bo olean successful, ICollection errors)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.OnEndLoad( Boolean successful, ICollection errors)
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.System.Compo nentModel.Desig n.Serialization .IDesignerLoade rService.Depend entLoadComplete (Boolean successful, ICollection errorCollection )
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID esignerLoaderHo st host)
at System.Componen tModel.Design.D esignerHost.Beg inLoad(Designer Loader loader)
---end of error message---
"Chris, Master of All Things Insignifican" wrote:
Do you see the object that it is complaining about.
Dim C as ClassA
C.SomeProperty = 12345 <--- Error: Object reference not set to an instance
of an object.
Dim C as New ClassA
C.SomeProperty = 12345 <--- Happy!
So find out what object it is complaining about and assign it an instance of
the object.
Hope this helps
Chris
"NewToDotNe t" <Ne*********@di scussions.micro soft.com> wrote in message
news:37******** *************** ***********@mic rosoft.com...I am getting "Object reference not set to an instance of an object. " when
I
attempt to open a C# windows service class in design view, although I was
able to initially create the service and open in design view. This happens
once I restarted Visual Studio adn opened teh solution
Any ideas on how to fix this would be appreciated..
BR
::Ben