1

I have this error message when start a new project in Unity. Reinstall Unity doesn't work. And, don't know if that relevant but VS2017 doesn't see Unity also.

XmlException: expected ';' (3B) but found '/' (2F)  Line 58, position 39.
Mono.Xml2.XmlTextReader.Expect (Int32 expected)

Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntityReferences)
Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences)
Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace)
Mono.Xml2.XmlTextReader.ReadContent ()
Mono.Xml2.XmlTextReader.Read ()
System.Xml.XmlTextReader.Read ()
Mono.Xml.XmlFilterReader.Read ()
System.Xml.Linq.XElement.LoadCore (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XNode.ReadFrom (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader reader, LoadOptions options)
System.Xml.Linq.XElement.LoadCore (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XNode.ReadFrom (System.Xml.XmlReader r, LoadOptions options)
6
  • 1
    inspect the XmlReader r that is mentioned in the stacktrace, dig out which file it refers to, or whatever textual contents it is reading, then analyze it and/or paste here what you found (path, contents, etc). Otherwise, that's pretty much just guessing or reinstalling everything until it works.. Aug 4, 2018 at 18:28
  • C:/buildslave/unity/build/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:320) path in text but I cant see this make out what is this. And where XmlReader r might be? Aug 4, 2018 at 18:33
  • Did you see this error after upgrading VS 2017 (what version do you use)? Aug 4, 2018 at 18:57
  • No, I used VS2017 before. But I reinstall both Unity and VS today. Doesn't help much. Aug 4, 2018 at 19:01
  • Do you have an & in either your Windows username or Unity project path? See Unity Forum
    – FlashOver
    Aug 30, 2018 at 22:33

1 Answer 1

2
+50

This can happen if you have a & character in your username or folder structure containing your project. Use a different user, and/or rename the offending folder.

1
  • Thank you TheSoftwareJedi and FlashOver, I renamed my user folder and took off the ampersand and it eliminated the exception! Sep 2, 2018 at 21:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.