AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts - asp.net

AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.
Izvorna datoteka: http://dostavahrane.si/ScriptResource.axd?d=OdsYNSuXxjlt8rcl-C-veHyjBYioAGFje3gsHih3su6oLU1jX125fdCipsztHIubjtFptWsSrTvzlMvPBfnnMGfz62_ByInZiFjjOCVmrpHz8bozy1q4kx6vPqQyelCTItLxGQ2&t=245582f9
i am using AjaxControlToolkit for .net 3.5 in VS 2008. Why i get this error. Must i downgrade it?
I downlaod it from here:
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/

I got such error once in one of my projects and since I didn't find a cause, I did what the exception message says - instead of ASP.NET ScriptMessage, I've put Toolkit's Script Manager on the page.
It probably is only a workaround but follow it if you won't find any other solution.

Related

How to create a .Net version 2.0 website using Visual Studio 2012?

I have created a website using Visual Studio 2012. It is working just fine. The problem is I have to deploy it on a server that has .Net Framework 2.0 only. So I created another website using Visual Studio 2012 and set its version to 2.0. After copying the code of just a single page I tried to run it. But I am getting the errors "Unknown server tag asp:ScriptManager" and "Unknown server tag asp:UpdatePanel". I need them both as I have to use PageMethods in my page. How can I create a .Net Framework 2.0 website with ScriptManager and UpdatePanel without any error? Thanks in advance.
You didn't have to recreate your project. Go to the project settings, application, then change the "Target Framework".
To clearly answer your question, the answer is : you can't.
As Jamie Keeling suggested, Script Manager and Update Panel came with .Net Framework version 3.5.
You will have to find other components or some kind of workaround.
You might have to install ASP.NET 2.0 AJAX Extensions 1.0 if you are planning to use scriptmanager and update panel in .NET 2.0. Prior to .NET 3.5, Ajax was available as a separate library.

ScriptManager with ASP.NET Framework 2.0

I'm working on ASP.NET "Framework 2.0" and I'm not able to use ScriptManager control.
What should I do to be able to use ScriptManager and other AJAX extensions without updating to newer framework?
You should install ASP.NET Ajax and you will able to do things, you are used to.
You won't find the 2.0 version on the asp.net website anymore.
For the 2.0 version they have archived this.
You will need the archived version found here
The working link is: https://www.microsoft.com/en-us/download/details.aspx?id=883
ASP.NET AJAX 1.0
ASP.NET AJAX is a set of technologies to add AJAX (Asynchronous JavaScript And XML) support to ASP.NET. It consists of a client-side script framework, server controls, and more.

ASP.NET IIS and framework

I have one ASP.NET web application projrct, created in Visual Studio 2008, .NET 3.5 Framework, IIS 6.1 and I'm using Ajax updatepanel, cache options for caching the datatable in a gridview. This project is working good in local, but when I deployed in a cert environment (.NET Framework 2.0 and IIS 6.0) I faced that caching issue.
So that, now I'm trying to change the project from 3.5 to 2.0 framework. But I'm facing an Ajax update panel error.
How can this problem be fixed?
You mean the target framework? You can right click the application name and then click on Property Pages, in that go to Build and then choose the target framework to 2.0.
Also, have a look at this:
http://msdn2.microsoft.com/en-us/library/bb398791(VS.90).aspx
reference : http://forums.asp.net/t/1194067.aspx
It will not be very straight forward though. As there may be some language features that are only available in 3.5.
The ASP.NEt AJAX framework for ASP.NET 2.0 has a separate DLL you have to install manually from this link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
You'll have to use an older version of the AJAX control toolkit too; the latest is only supported on 3.5 and 4.0.
HTH.

AJAX Toolkit 'unknown server control' Error

I just installed Ajax Toolkit. The controls are available in my Toolbox, but when I insert them in a page, Visual Studio underlines them with the error message "unknown server tag".
I googled the problem and found several ideas :
check if the DLL is in Bin folder
check if ajaxToolKit tags prefix is registered in web.config and make sure I'm not using a different prefix in my pages
check if the DLL is registered in the pages with <% # Register ... %>
Unfortunately all of this is fine, but I still can't get the controls to work. Is something else missing ?
EDIT : My environment is ASP.Net 2.0, Ajax Extensions 1.0, Ajax Toolkit 1.0.20229, Visual Studio 2005
It sounds that you might have the wrong .Net version of the Ajax toolkit installed. Check http://ajaxcontroltoolkit.codeplex.com/releases/view/43475
I think its a bug and a bogus message that keeps coming time to time with Ajax control toolkit. Sometimes closing the VS and restarting helps. If that does not help, try removing the control toolkit and re-referencing again.

Getting started with AJAX with ASP.NET 3.5, what do I need on the server

I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly?
You need only the .NET framework 3.5.
If you publish your project, the AJAX Toolkit used will be also copied over. If you only reference the AJAX Toolkit via file, not via project, then be sure you set the dll to "Copy always" in the properties window.
.NET 3.5 needs to be installed on the server. The Ajax Control Toolkit assembly does not need to be actually loaded on the server, but needs to be at least in the Bin Folder, with references in the web.config.
Of course, you will need to install the .NET Framework on your server. If you are using the AJAX Toolkit you will want to copy over the AjaxControlToolkit.dll to the bin folder of your web application on your server.
Also want to make sure that you set your web application to use .NET Framework 2.0. In IIS you go to the properties of your web site, then the ASP.NET tab and make sure ASP.NET version is set to 2.0.

Resources