Ajax - System.Web.Extensions, .NET target version needs to be 3.5
Attempting to utilize the AjaxControlToolkit (April 2010 version) in a new module.
I read your blog and need clarification. I can't add the two references (System.Web.Extensions.dll and AjaxControlToolkit.dll) to my module b/c it tells me my specified target .NET platform is not compatible. My core website is in fact targeting 3.5 and has the System.Web.Extensions reference. (Web site is 3.5, module environment isn't). The module is default so far, as created by the VS project template. I looked at the included references and project properties and see mostly all 2.0 .NET items and no super obvious way to toggle .NET versions. I eventually went into the advanced compile options and found a way to force the module to run in .NET 3.5. That added a web.config to the local module folder. Had to comment out the authentication line but after that, the site at least continued working. Once I did that, I could add the two references. I've spent all day researching this and haven't found any one instructing to use this method so naturally I'm doubting my procedure. I'm facing a mental disconnect between the new module and the parent site to which it belongs. Why doesn't VS 2008 know the module is targeting 3.5?
Next problem: I followed several tutorials and any time I use one of the ajax toolkit controls, I get an error message telling me the script manager isn't the right one. I tried adding the toolkitScriptManager to the page and this causes different errors. So, if I use the dnn approach listed in the book to programatically wrap an asp:panel inside of an updatePanel, it's the wrong type of ScriptManager for the controls. If I use the ToolkitScriptManager, it still doesn't work. In a nutshell, the DotNetNuke.Framework.AJAX.RegisterScriptManager() is not compatible with the AJAX ControlToolKit.
Have you had time to work with the AJAX toolkit? Would you mind asking a few people at headquarters if they've had a chance to play with the April 2010 edition of the AJAX toolkit in any of their dnn modules?
Thanks a lot!