Unable to add user controls

  • Thread starter Thread starter Marco Trapanese
  • Start date Start date
M

Marco Trapanese

Hello,

Create project > add user control (windows forms) > Build project > add
the user control on the main form.

I get this long error message:

Failed to create component 'SelectionBox'. The error message follows:
System.Xml.XmlException: An error occurred while parsing EntityName.
Line 2, position 68.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.Throw(ParseAttributesValueSlow(...))
ecc...

and so on...
Any idea?


Grazie
Marco
 
Cor Ligthert[MVP] ha scritto:
The user control needs a reference that is not set.


It was the first thought, but the user control is an empty form with no
code inside (I only clicked on add user control).

Marco
 
Marco Trapanese ha scritto:
It was the first thought, but the user control is an empty form with no
code inside (I only clicked on add user control).


Solved moving the application to another folder :-/

Marco
 
Back
Top