XML literals and XML properties are not supported in embedded code within ASP.NET

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

XML literals and XML properties are not supported in embedded code within ASP.NET. To use XML features, move the code to code-behind.

An XML literal or XML axis property is defined within embedded code (<%= =>) in an ASP.NET file.

Error ID: BC31200

To correct this error

  • Move the code that includes the XML literal or XML axis property to an ASP.NET code-behind file.

XML Literals
XML Axis Properties
XML

Show: