Hi all,
I have an issue with an AJAX.NET enabled web site that i have written. This site was completed and worked fine on our dev server, but then the dev server was rebuilt, and then the fun began. I have reloaded the site onto the newly setup server, installed AJAX.NET (the current version, which i also developed the site under). But the site will not load and i keep getting the follow error
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 51: </controls>Line 52: <tagMapping>Line 53: <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 54: <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 55: <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"/>
I have tried uninstalling and reinstalling AJAX.NET, Moving the 2 AJAX dll's into the projects BIN directory, and also manually putting the 2 AJAX dlls into the GAC, and nothing has made a bit of difference, and so im posting on here......
any help would be greatly appreciated!
Rob Earlam
Here is a pointer to a blog post that describes how you can download the compatibility validators:http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx
Hope this helps,
Scott
All is working fine now
Thanks Alot
Rob
I am working on a team project.
On Other system they haven't got this error.
On my system I have commented the following lines in the web.config {locally}
<!--
<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"/>
<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"/>
<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"/>
<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="System.Web.UI.Compatibility.RegularExpressionValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="System.Web.UI.Compatibility.RequiredFieldValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="System.Web.UI.Compatibility.ValidationSummary, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</tagMapping> kamran
-->Then I can't get this error.{I don't know why this error appear on my system and doesn't on other systems}
If i comment these line in my project which all team developer work what could be the result ?
What Should I do ?
Found that on other system there were old ajax installation were installed
So I uninstalled the latest ajax extension and install the old one.
Then as on other system enable the lines above then my application start working on my system.
Now What Should I do .Can I install the new extension on all systems and comments these lines on other system as well.
{I am asking it as Could it lead to some problems or not}
No comments:
Post a Comment