not24

not24

  • NA
  • 2
  • 0

Invalid class string - : 0x800401F3 with View Designer

Mar 6 2006 11:35 PM
I'm not sure what happened. Last week I run windows update on my computer. I have .net 2.0 & VS 2005 installed. Now anytime, I open my c# project w/ View Designer, I've got an 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.

Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) Hide

at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid,
Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component,
String name)
at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type
componentType, String name)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager
manager, String name, CodeExpression expression)
at
System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager
manager, CodeStatement statement)
at
System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, Object codeObject)
at
System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, Object codeObject)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager
manager, String name, CodeStatementCollection statements)"


It was fine before and now it's error where it never error before. Same project is fine when open on other computer.

I search on google.com & microsoft.com but I didn't found any case that same as mine.

My computer was W2K. I already re-install VS2005, .net 2.0 a few time but it still didn't work. I did re-install everything on Windows XP. It seems fine for a couple weeks then this error came back after I run windows updates last week.

My computer have both VS 2003 & VS 2005. Some of my company's customer servers still run application on .NET 1.1 and some are .NET 2.0 and I'm not sure if it will be any problem if I use VS 2005 to recompile old programe that compile on VS 2003 before so I keep both. My supervisor want everybody to use it even though I'm not fully understand about what difference between these two. I just start write C# Windows Form about last year and yet much things to learn.

If anybody could give me some advice, please let me know. I'll appreciate that.