none
An error occurred while parsing EntityName. Line 2, position 69.

    Question

  • I am very new to SQL and Visual Basic. I have recently installed Visual Basic 2008 Express Edition and is learning how to use the use it. I have an error that stops me going further

    error message: 

    An error occurred while retreiving the information from the database
    An error occurred while parsing EntityName. Line 2, position 69.


    This eror message appears when I did the following

    Create a new project using template "Windows form application" and add new item using local database.

    It would not allow me to go any further.

    I have try to reinstall the software and it does not help

    Any ideas?????
    Friday, February 06, 2009 11:11 PM

Answers

  • You project uses some xml file, and the file has an xml error. The file is probably one that the computer has created.

    Look at this page:

    http://www.w3schools.com/xml/xml_syntax.asp

    It says:

    Entity References 
     
    Some characters have a special meaning in XML. 
     
    If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element. 
     
    This will generate an XML error: 
     
    <message>if salary < 1000 then</message> 
     
    To avoid this error, replace the "<" character with an entity reference: 
     
    <message>if salary &lt; 1000 then</message> 



    This is what is happening in one of the xml files that your project is using. All the error reports I found with a web search said that some file had an & where it should have been &amp.


    You could look inside the solution folder, and try to open files with notepad. If app.config is there then try that first. Look for a file that is in xml and try to find:

    &

    and change it to:

    &amp


    Or, you could zip the file, put it on the internet and post a link here...


    • Marked as answer by Xingwei Hu Thursday, February 12, 2009 7:39 AM
    Saturday, February 07, 2009 3:25 AM