I have a WinForms based application. It compiles and works great. The problem is that since yesterday I can’t open the main form designer.
At first I thought that this was due to the fact that I added the following call:
StyleManager.Load("some isl file");
I deleted it, I disabled the changes to the file and nothing.
The error I get is the “Root element is missing” which comes from the call to XmlDocument.LoadXml() . The source is a method that actually tries to load the xml file, but does it only at runtime.
If I ignore this message, I get the error "Link to an object not installed on the object instance", and, ignoring this, I get "the constructor is already loaded."
Update
If I comment on the registration of the delegate of the method that should read xml (in InitializeComponent() ), the problem does not occur.
We use Infragistics in our solution and mention them in the stack trace.
in System.Xml.XmlTextReaderImpl.Throw (exception e) in System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (String res) in System.Xml.XmlTextReaderImpl.ParseDocumentContent () in System.Xml.XmlTextReaderImpl.Read () in System.Xml.Xml.Xml.Lml.Xml.Lml .Load (XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) in System.Xml.XmlDocument.Load (XmlReader reader) in System.Xml.XmlDocument.LoadXml (String xml) in MyApp.Utilities.Xml.Load (String str) in the editor .Editor.tabFlowView_ActiveTabChanged (object sender, ActiveTabChangedEventArgs e) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnActiveTabChanged (ActiveTabChangedEventArgs e) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent (UltraTabControlEventId id, EventArgs e) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase .set_ActiveTab (UltraTab value) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanging (from ruler object, SelectedTabItemChangingEventArgs e) in Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem (value ITabItem) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab (UltraTab tab) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.PerformAction (UltraTabControlAction action code) in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.PerformDelayedInitialize () in Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnCreateControl () in System.Windows.Forms.Control.CreateControl (BooleanreableFile.Formable.IreleableFloresFrol.Form.Fore.Forms.Fore.Forms.Fore.Forms.ForelloFognableIloryFile.ForeableFile.Fore.Forms.ForeloreFile.Fore.Forms.ForeloreFognolIgnoreFilerolIgnoreFilerolIgnoreFilerolIrolleFile.IrolimFile.IrolisFile.ForeableFile.ForelFile.FormalIfreIloreIForeIloreIfile.IfrelementI.I. ) in System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible) in System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible) in System.Windows.Forms.Control.CreateControl (Boolean fIgnoreVisible) in System.Windows.Forms Control.CreateControl (Boolean fIgnoreVisible) in System.Windows.Forms.Control.Cre ateControl (Boolean fIgnoreVisible) in System.Windows.Forms.Control.CreateControl () in System.Windows.Forms.Control.ControlCollection.Add (control value) in System.Windows.Forms.Form.ControlCollection.Add (control value) in System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add (Control c)
source share