Unable to cast object of type ‘System.Xml.Schema.XmlSchemaAny’ to type ‘System.Xml.Schema.XmlSchemaElement’

If you are using ReportView with AJAX, you have to make sure that you are using the correct version of the AJAX with the .NET version.

AJAX Version Target .NET or VS Version
Version 1.0.20229 .NET Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005
Version 3.0.20229 (2008-02-29 release) .NET Framework 3.5 and Visual Studio 2008
Version 3.0.40412 (April 12 2010 release) .NET 3.5 Service Pack 1 and Visual Studio 2008 SP1
Version 4.1.51116.0 (Nov 16 2011 release) .NET 4.0 and Visual Studio 2010
Version x.x.7.607 June 2013 Release

  • 3.5.7.607
  • 4.1.7.607
  • 4.5.7.607
.NET 4.0 and Visual Studio 2010

  • .NET 3.5 Service Pack 1 and Visual Studio 2008 SP1
  • .NET 4.0 and Visual Studio 2010
  • .NET 4.5 and Visutal Studio 2012

You may found more info in the following link,
http://ajaxcontroltoolkit.codeplex.com/

CategoriesIE

2 Replies to “Unable to cast object of type ‘System.Xml.Schema.XmlSchemaAny’ to type ‘System.Xml.Schema.XmlSchemaElement’”

    1. Right click on the AjaxControlToolkit.dll file and view the properties. The version number there will tell you what version you are using.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.