locked
Error in Visual Studio 2011 when debugging

    Question

  • Everything was working fine until I added an XML item to my project. It was just some code from the Basic Tiles sample. I didn't even modify it, but now I get this error:

    Error 1 error MSB4018: The "ValidateAppxManifestItems" task failed unexpectedly.
    System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 20, position 9.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
       at System.Xml.XmlTextReaderImpl.ParseAttributes()
       at System.Xml.XmlTextReaderImpl.ParseElement()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlAsyncCheckReader.Read()
       at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
       at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
       at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
       at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
       at Microsoft.Build.AppxPackage.ValidateAppxManifestItems.ExecuteImplementation()
       at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper.Execute()
       at Microsoft.Build.AppxPackage.ValidateAppxManifestItems.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__2f.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets 201 10 WinWebApp1

    How do I fix this? 

    Wednesday, December 28, 2011 4:35 AM

Answers

  • Hi Ray,

    It seems like the exception is telling you what the problem is: Name cannot begin with the '<' character, hexadecimal value 0x3C.

    -Jeff


    Jeff Sanders (MSFT)
    Wednesday, December 28, 2011 4:23 PM
    Moderator