.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Upgraded to 4.0, get error on ajax, very confused, please help

Posted By:      Posted Date: October 24, 2010    Points: 0   Category :ASP.Net

 I have a custom control which worked fine under 2.0, now I upgrade to 4.0, I get error.

By debug, I found the error happens in MicrosoftAjax.debug.js file.

/ Name:        MicrosoftAjax.debug.js
// Assembly:    AjaxControlToolkit
// Version:     4.1.40412.0
// FileVersion: 4.1.40412.2
// (c) 2010 CodePlex Foundation

It happens in the below code

 var finder = type === "#" ? Sys._getById : Sys._getByClass;
                            if (context) {
                                foreach(context, function(node) {
                                    if (node.nodeType === 1) {

View Complete Post

More Related Resource Links

AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. - Error being thrown while building asp.net si


Everytime I build my site in VS2010 Beta I recieve a few ajax errors before the site loads here they are in order as they pop out on the build; 


throw new Error("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 AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");


And then Next this line is throwing an error, I have a watermark ajax field on the page that I created a long while ago;

Sys.registerComponent(Sys.Extended.UI.TextBoxWatermarkBehavior, { name: "watermark", parameters: [{name:"WatermarkText",type:"String"}, {name:"WatermarkCssClass",type:"String"}] });

 And then lastly;

 if (Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked())


Even with these exceptions the page loads fin

Ajax ListSearchExtender error



I been trying the AjaxListSearch extender control but it is not working...

I added a listbox and added the ajaxlistsearchextender on it.

I get this error :

Error :  'Sys.Extended.UI.ListSearchPromptPosition.Top' is null or not an object

Can someone please help ?

I also try an ajax combobox and same thing.... this is the error I received :

Sys.Extended.UI.PositioningMode.BottomLeft is null or not an object

this is my code :




Ajax Cascading drop down method error 500!


Sorry to trouble you all with something that has already been posted a million times but I have tried everything I can and stuck with for about 10 days now. Please help. I have created 2 tables Categories, Subcategories.

Categories table has Category_ID(Primary Key) and "Category" fields. Subcat table has SubcatID(Primary Key, Sub_cat and Category_ID(Foreign Key). Here's the code of the asmx file.

Service methods used in ASPX file ServiceMethod="GetVendors" and ServiceMethod="GetContactsForVendor". Please help me find the source of the method erro 500 and I will be very greatful.

<%@ WebService Language="VB" Class="CascadingDropdown1" %>

Imports System.Web.Script.Services

Imports AjaxControlToolkit

Imports System.Web

Imports System.Web.Services

Imports System.Web.Services.Protocols

Imports System.Collections.Generic

Imports System.Collections.Specialized

Imports System.Data.SqlClient

<ScriptService()> _
Public Class CascadingDropdown1
Inherits System.Web.Services.WebService

<WebMethod()> _
Public Function GetVendors(ByVal knownCategoryValues As String, ByVal category As String) As Cascadi

Error while running Ajax Enable website....?

Hi, I just installed and ran a simple sample and got this error below. I'm running using VS 2005. I have installed ASP.NET AJAX Extensions 1.0 and ASP.NET AJAX Control Toolkit. Look like the tool kit version is 3.5 that is not compatible with ASP.NET AJAX EXTENSION 1.0? But I couldn't locate the ASP.NET AJAX CONTROL TOOLKIT version 2.0. Any idea how to corect this error? Thanks Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1705: Assembly 'AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'Source Error: [No relevant source lines]Source File:    Line: 0

Get xhr object in vb.net when error occured in ajax call using JQuery.

Hi Dude,   I have a big problem in Jquery ajax call. I am calling the web service whenever click the update button. I have a separate web service class, in which consist of few methods. When I calling the web service method, I have made the error handling and log the error information in db after that I have to override the "ex" that means error object to XMLHttpRequest. Is it possible to assign the sqlexception to ajax object (xhr) in vb.net? Please help me its much more useful for me.   Thank in advance.

Error: ASP.NET Ajax client-side framework failed to load.

Getting some errors after implementing the calendar control.  Error: ASP.NET Ajax client-side framework failed to load.  Here are some screenshots of the relevant info:   Here's the scenario...  I compile code locally, view the pages in a browser locally, and it all works fine.  Another developer sits down at my machine, logs in with AD account (which create a local profile for his account on my machine), and gets these errors when viewing my locally compiled code.  He then compiles the same code on my machine again just for a test, but still gets the same errors.  Can anyone come up with any good reasons for this behavior?  I put a call into MS and they suggested creating a new profile for the other developer with the errors since this appeared to be profile specific.  Tried doing that with the same results.  Help!        

Ajax Error Sys undefined

My application is working fine on local system,but not on web server.web server has IIS 7.0 It is giving javascript error 'Sys is not defined' Error: ASP.NET Ajax client-side framework failed to load. Plz help

displaying error message - Telerik MVC grid - AJAX mode

I want a common solution for handling error messages ON telerik mvc grid in ajax inline and popup edit modes. I am not talking about error messages that are related to single input field. These are business error messages that come back to grid from DB upon clicking grid edit or insert buttons. I want to dispaly error message and not loose data in input fields, bcaz in some cases we are talking about more than 20 fields. 1) I want to know the best way to handle error messges received from backend while using telerik mvc grid. 2) Is it possbile to display error message in a message dialog box?

Ajax Control Toolkit Error Creating Control

Error Creating Control - ToolkitScriptManager1Unknown server tag 'asp:ToolkitScriptManager'.Error Creating Control - ComboBox1Unknown server tag 'asp:ComboBox'.I encountered this error, very annoying becasue it would shut off design view rendering of ComboBoxes as well as entire parent containers like ListViews.  It took me a lot of efforts to hunt down the cause, which would seem very illogical if not weird.  So I am suspecting that it is just happening to me, but would appreciate if somebody could care to reproduce and see if it is actually a bug.Cause: HtmlHead title tag has textFix: Delete text in HtmlHead title tagSteps to reproduce and verify error:1. Have AjaxControlToolkit.Binary.NET4 Instructions: http://www.asp.net/ajaxlibrary/act.ashx Download: http://ajaxcontroltoolkit.codeplex.com/releases/view/43475#DownloadId=1165342. Start Visual Studio 2010 Ultimate Open new project ASP.NET Web Application Default name WebApplication13. Keep Default.aspx open Add Ajax Control Toolkit in Toolbox Close Default.aspx4. Add new folder in WebApplication1 Default name NewFolder15. Add new nested master page in NewFolder1 Default name NestedMasterPage1.master Select Site.Master as master page6. Open NestedMasterPage1.master Add ContentPlaceHolder in Content2 Default ID ContentPlaceHolde

Error when i add an ajax control

Hello guys,i get the error, below when i add an ajax control to either my masterpage or webform. funny, am not using any external controls, as am building it from scratchtnxEhiServer Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Unknown server tag 'asp:ScriptManager'.Source Error:  Line 43: <asp:SiteMapDataSource ID="main1" runat="server" SiteMapProvider="main" /> Line 44: Line 45: <asp:ScriptManager ID="ScriptManager1" runat="server"> Line 46: </asp:ScriptManager> Line 47: Source File: /codes/default.master    Line: 45 

Ajax tool kit version error

Hi, I have downloaded AjaxToolkit version 3.5 from this asp.net site and unzipped it and attached to my tools. I tried to add Calendar control to my application while running application I am getting this bellow error. It says Ajax version 4 to use, I dont understand how to solve this. I am using VS 2008 with Framworks 3.5  but I dont know why it is asking to run Ajax 4.0 scripts. Any Idea how to solve this?   "Microsoft JScript runtime error: 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. "   thanks  

Adding AJAX-enabled WCF Service to the Solution throws an error

Hi I am just trying to learn Ajax enabled WCF service, when I try to create a new web application and add new item "AJAX-enabled WCF Service" I get an error message that "The extension of type 'System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not registered in the extension collection 'behaviorExtensions'. I had .net2.0/VS2005 and then I installed VS2008. I thought it might be an issue with Machine.config. So I am attaching my machine.config info. <?xml version="1.0" encoding="UTF-8"?>    <!--    Please refer to machine.config.comments for a description and    the default values of each configuration section.     For a full documentation of the schema please refer to    http://go.microsoft.com/fwlink/?LinkId=42127     To improve performance, machine.config should contain only those    settings that differ from their defaults.    -->    <configuration>      <configSections>    <section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=, Culture=neutral, Publi

got error ,while using ajax toolkit with ajax web.extensions version 1.0


hello all,

the reason i posted this question is that i just added ajax toolkit in my visual studio 2005 and i installed  ajax web extension version 1;

downloaded from microsoft website named "ASPAJAXExtSetup" but when i added ajax object in my web form i ve gotten this error:

"Error 1: Indirect reference is being made to assembly System.Web.Extensions version, which contains 'AjaxControlToolkit.CalendarExtender'. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use 'AjaxControlToolkit.CalendarExtender', you must replace the reference to System.Web.Extensions with version or higher.

 C:\inetpub\wwwroot\AJAXEnabledWebSite1\Default.aspx 1 1 C:\...\AJAXEnabledWebSite1\"

is there any option to upgrade ajax web extension version 1 to upper without installing visual studio 2008 and .net 3.5? or any other solution ?

thank you so much

error: ASP.NET Ajax client-side framework failed to load.


Hi all,

I m getting this weird error "ASP.NET Ajax client-side framework failed to load." in my project which none of my other team mates are getting. Even I tuk the solutoin from the TFS so there is no chances of a code error any where because we all have downloaded the code from the same place in TFS.

N there shud not b anything wrong with the client browser also on my machine because i can browse the same page from the dev server perfectly. Its just breaking only when i m browsing that page on localhost.

We are using .net framework 4.0, windows 7 and we have AjaxControlToolkit version 1.0 in our project.

the only things which might differ in my case as compared to other machine and server are

- Virtual directory.

Upgraded website to AJAX 3.5, I get js errors on production web server



I recently upgraded our website to include some AJAX 3.5 modal popup extenders.   The site is working fine on my development machine, unfortunately when I published it over to our production web server (running IIS6) I'm getting javascript errors every time a page containing one of these controls loads.  Here's what shows up in the Firefox Error Console:

Error: $get("scriptmanager1_hiddenfield") is null
Source File: http://www.senske.com/ajaxtest.aspx?_tsm_hiddenfield_=scriptmanager1_hiddenfield&_tsm_combinedscripts_=;;ajaxcontroltoolkit,+version=3.5.40412.0,+culture=neutral,+publickeytoken=28f01b0e84b6d53e:en-us:065e08c0-e2d1-42ff-9483-e5c14441b311:de1feab2:f9cec9bc:ab09e3fe:f2c8e708:87104b7c:a67c2700:8613aea7:3202a5a2:be6fb298
Line: 40

//END ModalPopup.ModalPopupBehavior.js
(function() {var fn = function() {$get('scriptmanager1_hiddenfield').value += ';;ajaxcontroltool

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts



  I am getting the following error while using ajax control tookit

Microsoft JScript runtime error: 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.

I am using Visual Studio 2008 with .Net Framwork 3.5 SP 1, i downloaded the Ajax Control Toolkit from codeplex (AjaxControlToolkit.Binary.NET35)

Below given is the markup:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

error when I use ajax control tool kit



When I use some control of toolkit like watermarkextender the ajax dissable. If I not use any control of tool kit all goes ok. Why Can I use tookkit? I use vs 2008 and dll of version 3.5 of toolkit is loaded correctly.

What is the problem?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend