Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:16+00:00 2026-05-31T05:38:16+00:00

I have a WinForms based application. It’s compiling and running perfectly. Problem is, ever

  • 0

I have a WinForms based application. It’s compiling and running perfectly.
Problem is, ever since yesterday, I can’t open the main form’s designer file.
At first I thought that this is due to me adding the following call:

StyleManager.Load("some isl file");

I removed it, I undid changes to the file, and nothing.

The error I get is “Root element is missing” that comes from XmlDocument.LoadXml() call. The source is a method that actually tries to load an xml file, but only does so during runtime.

If I ignore this message I get an “Object reference not set to an instance of an object” error, and by ignoring this too I get “the designer is already loaded”.

Update

If I comment out the delegate registration of the method that’s supposed to read the xml (in InitializeComponent()), the problem does not occur.

We use Infragistics in our solution, and there’s mentioning of them in the stack trace.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at MyApp.Utilities.Xml.Load(String str)
at Editor.Editor.tabFlowView_ActiveTabChanged(Object sender, ActiveTabChangedEventArgs e)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnActiveTabChanged(ActiveTabChangedEventArgs e)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_ActiveTab(UltraTab value)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanging(Object sender, SelectedTabItemChangingEventArgs e)
at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.PerformAction(UltraTabControlAction actionCode)
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.PerformDelayedInitialize()
at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Form.ControlCollection.Add(Control value)
at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:38:17+00:00Added an answer on May 31, 2026 at 5:38 am

    I have this error happen in particular when using UserControls on a form. If you’re doing something that requires an “active connection” it throws the exception that it’s unable.

    In your case it appears to be calling the ActiveTabChanged event, which is calling the load xml. Prior to the load the xml add prior to the xml load call.

    if (DesignMode) return;
    

    DesignMode

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have .NET WinForms based application and it is expected to work on at
I have a WinForms based application using the .NET 3.5 framework. The application has
I would like to have optimized version of my WinForms C# based application for
I have created a SQL DB-based winforms application, and I want to deploy it
I have an SQL Server (2008 R2) based (C# WinForms) application that predominantly runs
I have a Winforms application that the user uses to take a region based
Using VB.net 4.0 I have a Winforms application that is loosely based on MVVM.
I got a .net WinForms application. I have a UserControl which gets instantiated based
I have a setup project whose primary output is from a Winforms based application.
I have a winforms (VB 2008) based app that I'm developing and I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.