Wednesday, March 21, 2012

Problem in Deploying ASP.NET AJAX 1.0

I had deployed my application on server but getting error in :

"<tagMapping>
<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>"

Getting error in this line in web.config ...Please help me to solve this.

This is an exact error...

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35'.

Source Error:

Line 27: </controls>Line 28: <tagMapping>Line 29: <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 30: <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 31: <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>



Looks like an old web.config. See http://smarx.com/posts/what-happened-to-the-validators-in-asp-net-ajax-1-0-rtm.aspx.

I have add Validators.dll and made the chages .

Still the problem is ...

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message:Could not load type 'System.Web.UI.Compatibility.RequiredFieldValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:

Line 1: <%@. page language="C#" autoeventwireup="true" inherits="Login_Default, App_Web_6jo3nll1" %>Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Are you sure you updated your web.config as instructed on Matt's blog? You should be hitting System.Web.UI.WebControls.RequiredFieldValidator, not System.Web.UI.Compatibility.RequiredFieldValidator as shown in the error above.

No comments:

Post a Comment