Hi,
I am really sorry to post this but I have tried what I beleive is every solution I can find to this issue and I still cannot get this working - it will probably be something very basic that I am missing so apologies in advance.
I am using VS 2008 (2010 is on its way but not available to me yet) and working on an existing asp.net website was is quite old now, I beleive it was previously configured under .net 2.0, I have updated the configuration to 3.5.
I would like to use some of the ajax controls on this site so decided to follow the incredibly simple instructions for downloading the toolkit and installing. I beleive I have followed the process to the letter but any site I try to use the ajax controls within I get errors like this:
Warning 1 Element 'ToolkitScriptManager' 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.
Both my existing site and if I create a brand new web project and then try to include the Ajax controls.
I have the following line in my Default.aspx file (I didnt put it there):
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
The AjaxControlToolkit.dll file exists in the project Bin directory and the site contains a reference to AjaxControlToolkit as well.
I can see all of the Controls in the VS ToolBox view e.g. ToolkitScriptManager but when I drag one on to the page I get the above error.
I've tried adding assembly and control tags to the web.config file but no joy - still get the same errors e.g.
<add assembly="AjaxControlToolKit, Version=3.5.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
I got the version number from the properties of the AjaxControlToolKit reference in VS - it seems to be correct because if I modify it at all and rebuild I get the following error:
ASP.NET runtime error: Could not load file or assembly 'AjaxControlToolKit, Version=3.5.1.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Notice here I have changed the 7 to a 1 ... this suggest to me that the dll I have is intact and VS is recognising it correctly - that along with the fact that I can expand the AjaxControlToolKit reference in my web project and see all of the components.
I have also tried various combinations of entries in the web.config and Register settings in the .aspx file - nothing will work.
Any help would really, really be appreciated - be gentle though, I'm new to this (as you could probably tell!).
Thanks in advance,
Paul