Blog from a software professional, Passionate to work in latest cutting edge technologies in order to get better results in business.
Monday, May 18, 2009
New release of the Ajax Control Toolkit
New version of Ajax tool kit (May 2009 release) is now available...
Download link
Regards
Fauzi
Tuesday, March 3, 2009
Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing
Today i was about to develop a new ajax control for one of my applications. So i was about to refer a sample which i had before. When i opened the project from visual studio 2008, Like...
File -> Open -> Website -> Project Name folder, selected the folder where is project was there in file system.
When i build the project It said couldn't find the reference for AjaxControlToolkit.dll & RssToolkit.dll. It looked mysterious... because it was a working project. Then I added the references and when i built the solution, the build was successful but when i browser the site the Ajax functionalities were not working. it showed the script warnings in the left bottom corner of the browser! Its weird to see the working application going wrong even though we have not modified it recently.
When i looked into the design code, I noticed that the element <asp:ScriptManager was showing the following warning message.
"Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing."
Then i googled for the above message & was trying solutions suggested by MS Asp.Net Forum & Matthew Cosier but the warning message was still appearing
Looking into the project file, i realized that the folder structure is like
Project Name -> Website -> bin,image,css & aspx pages.
Now i found what could have went work &and realized why it said that it couldn't find the reference for AjaxControlToolkit.dll & RssToolkit.dll earlier.
The project folder which we open from visual studio matters.
Now i opened like File -> Open -> Website -> Project Name folder -> Website Folder.
Now every thing works fine & so are the ajax functionalities in control :)
Regards
Fauzi
Wednesday, December 24, 2008
Ajax website build error : Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions'
Hey...
When i try to build solution for a Ajax based web site with Visual studio 2008 using the Framework 2.0, It gave the following error :
Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I was wondering what could be wrong! I tried placing system.web.Extensions in local bin folder. Tried placing in GAC again. There was no luck... when i goggled, found the following articles which was helpful. It seems the validators are removed in recent releases. The solution is to comment the following tags in web.config:
<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>
Resource articles as follows:
Forums.asp.net , Robin's Blog
Hope it helps
Merry X-Mas :) Wish you Happy New Year 2009 :)
Fauzi ~ 4Z