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

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

Using ToolkitScriptManager, but still receiving "AjaxControlToolkit requires ASP.NET Ajax 4.0 script

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net

I've read all the posts with this same issue and have not been able to resolve it in my case.  Is the wrong version of the Toolkit being cached somewhere?
I upgraded my web application from 3.5 to 4.0 and am getting "AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced." on pages that are using ToolkitScriptManager, not ScriptManager.
For example
<%@ Page Language="C#" AutoEventW

View Complete Post

More Related Resource Links

Users not receiving alerts


At some point over the last 2 weeks, the alert functionality in our MOSS 2007 environment stopped working.  Users will receive the "You have setup a new alert" email when configuring a new Alert, but not any actual alerts when an item is added/changed.  I investigated the Timer Service on the front end web server and noticed it was Stopped.  I restarted the Service and some of the users received upwards of 200 backlogged alerts.

I can understand why the user received so many alerts, these would be the alerts that SHOULD have been sent over the last 2 weeks.  I just wanted to make sure that this is normal behavior.  If the service fails, then the alert emails are set to a type of "pending" status until the service is restarted?  Is this accurate or am I misunderstanding something.

Issues regarding sockets (stopping receiving packets).

Hello, I've created a server for my game, but for some unknown reason the server (most likely) stops receiving packets while the client still tries to send them. I've tried to use a couple examples from MSDN, but it still just stops receiving. This is what I think that happens: Client connects to server Server sends packets as response Client responds to those packets Server sends a lot of packets (one packet at a time) Client tries to send packet, but it kinda fails (it does send packets though!) Server waits (doesn't get any packet anymore) Client triggers timeout code on the server side and gets disconnected from the server Does anyone have an idea how and why this can happen? Here are the receive functions I use: BeginReceive (SocketInfo includes data such as amount of data to receive, state of packet (header or content) and the buffer) public void BeginReceive(SocketInfo socketInfo) { if (mDisconnected != 0) return; try { args = new SocketAsyncEventArgs(); args.Completed += (s, a) => EndReceive(a); args.UserToken = socketInfo; args.SetBuffer(socketInfo.DataBuffer, socketInfo.Index, socketInfo.DataBuffer.Length - socketInfo.Index); if (args != null) { try { if (!Socket.ReceiveAsync(args)) EndReceive(args); } catch (ObjectDisposedException) { Disconnect(); return; }

ReportViewer and ToolkitScriptManager AJAX 4.1.40412

I try to use a Reportviewer in a project that uses AJAX controllers. If I first add a ScriptManager and a reportviewer there is no problem, the Reportviewer is shown. If I then add another AjaxToolboxScript I need to use the ToolkitScriptManager. But if I use the ToolkitScriptManager the page starts with depugger error: "Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.Parameter name: panelsCreated[1]" (There is no poblem to use the RepoertViewer, but the error reoccur every postback.) If I then change back to standard ScriptManager the same error occur. I have to generate a new project before I get rid of the error, a project without ToolkitManager. I think this is a problem with AJAX toolkit, any thoughts?  

All Users (Including Site Collection Admins) receiving Access Denied from one Site Collection

I usually spend my time in the forums answering questions.  But this time I need the help. I’ve got a client who somehow has succeeded in locking EVERYONE out of one of their Site Collections.  Users can authenticate to the site, but get an accessdenied page when you try to access anything in the site collection, including pages served from the _Layouts virtual directory.  The AccessDenied page shows that they are authenticated, but not authorized.  This is true for Site Collection admins and user’s who have been given Grant Full Control via a Web Application Permission Policy.  Central Admin and one other site collection are behaving normally.  I've already checked for database permissions - the service account can access the database fine. I've also checked for a locked database or overextended quota.  It's not that either. The accessdenied page url references the users list in the root of the site collection as the offending list denying access.   Does anyone have any ideas?Paul Stork SharePoint Server MVP

Unable to Use ToolkitScriptManager in Sharepoint 2010 webparts

I am trying to use ajax in my sharepoint 2010 webparts. Tried to add a calenderextender to textbox. But  the ajax funcationality is coming in to picture if i use only ToolkitScriptManager , but not for ScriptManager.(as i tested in visual studio 2010) The v4.master has got <asp:scriptmanager ... /> already.  So i can'nt add another scriptmanager(ToolkitScriptManager). Any help please?  

Making and receiving calls using e Diva Component API

Programs and scripts can use the Component API in either 'blocking' or 'non-blocking' mode. The following examples use 'blocking' mode because this is the simplest. For more complex scripts and applications 'non-blocking' mode can make it easier to create programs that can cope with unforeseen sequences of events or errors.
See the section 'Handling multiple calls' for more information.

We can create the DivaCall object directly here because we are handling only one call; if we were creating more than one DivaCall object then we would have to use DivaSystem and DivaInstance and the DivaCall objects would be created using the CreateCall method of DivaInstance.

To make a call
The following code makes a call with Connect , plays the wave file with SendVoiceFile when the call is answered and Disconnects.

Develop consumer which receiving data from list view

In my page I want to display a list view. Each time a user is clicking  on an item the relevant data of the current item will be passed to a consumer web part that I will develop. What interface the list view WP inherit from? Can you give send me an example of such implementation?   Tnx Keren  

Receiving a message that was sent using HTTP POST

Hello helpers,   I'm somewhere between a beginner and intermediate asp.net and c# user who is looking to receive a message/variable and then URL decode it. The message is being sent via HTTP post. I'm not sure exactly how to get started, and am looking for a tutorial but haven't been able to find one. Can anyone point me in the right direction or give me some sample code to learn from? Thank you for your time  

WCF Service not working with ToolkitScriptManager

Back in the "old days" one would use the <asp:ScriptManager></asp:ScriptManager> and <asp:ServiceReferenc /> to allow for WCF Service integration into javascript on web forms.  Example: <asp:ScriptManager ID="ScriptManager1" runat="server">     <Services>         <asp:ServiceReference Path="~/Services/Service1.svc" />     </Services> </asp:ScriptManager> Now we are to use the <AjaxControlToolkit:ToolkitScriptManager></AjaxControlToolkit:ToolkitScriptManager> to accomplish the same task, but this doesn't seem to be working. Example: <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">     <Services>        <asp:ServiceReference Path="~/Services/Service1.svc" />     </Services> </AjaxControlToolkit:ToolkitScriptManager> The former works. while the latter does not. Any suggestions? Visual Studio 2008 Professional .Net Framework 3.5 AJAX Toolkit 3.5.40412.0<asp:ScriptManager ID="ScriptManager1" runat="server">    <Services>        <asp:ServiceReference Path="~/Services/Service1.svc" />&nb

Posting form data and receiving a response

Hey everyone,I have an application that needs to post data to a url on the web and then receive an xml response.  I have an HTML form (provided by vendor) that posts the data correctly, however when clicking the submit button the page is redirected to the post url and the xml is displayed in the browser.  I need to do this on a postback within an existing asp.net project.  Basically, the user will fill out the form, the form data will post to the url, the xml response will be received, and the appropriate values will be displayed on the screen. I've found a bunch of examples for doing this but I just can't seem to get my head around it.  Can anyone point me in the right direction or explain how I should go about this?  Thanks for your help!Will

Socket receiving Data Loss

Hi Friends,   I have a Real Time Client/server application which should process received data and send back result with in milliseconds.Application is working fine when it runs in normal load. During my testing phase i tested by sending 100 message to clients in One seconds, But Client Application will only process 40 message , But sever will send all 100 message to clients. I would like to know Is there any DATA LOSS occurring in Client Side. Here is the code i wrote to receive data from sever. Private Sub sockDataArrival(ByVal ar As IAsyncResult) Dim state As StateObject = CType(ar.AsyncState, StateObject) Dim client As Socket = state.workSocket Dim bytesRead As Integer Try bytesRead = client.EndReceive(ar) Catch Exit Sub End Try Try Dim Data() As Byte = state.buffer If bytesRead = 0 Then client.Shutdown(SocketShutdown.Both) client.Close() RaiseEvent onDisconnect() Exit Sub End If ReDim state.buffer(50000) client.BeginReceive(state.buffer, 0, state.BufferSize, 0, AddressOf sockDataArrival, state) RaiseEvent onDataArrival(Data, bytesRead) Catch RaiseEvent onError(Err.Description) Exit Sub End Try End Sub Any Idea about this.....?  Dheeraj PK http://dheerajpk.spaces.live.com/default.aspx

Receiving Error when Trying to Develop Sharepoint 2007 Workflow using VS 2010 Pro

I have created a Windows Server 2003 Enterprise (32 bit) SP2 image configured with Sharepoint 2007 Enterprise and a trial edition of Visual Studio 2010 Professional.  All software is fully patched.  When I try to create a new Sharepoint 2007 Sequential Workflow (.NET Framework 3.5) in either C# or VB, I receive a pop-up error: Exception of type 'System.PlatformNotSupportedException' was thrown. and, when I click OK and fill in the name of the workflow and a valid Sharepoint Web URL for testing, I receive the following error: SharePoint site location entered is not valid.  The SharePoint site at <removed> could not be found.  Verify that you have typed the URL correctly.  If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. The URL in question references the default SharePoint site on this test server and does exist.  My assumption is that the second error received is a symptom of the first.  I have looked elsewhere and seen issues related to 64bit SharePoint implementations but, this is a 32 bit installation.  Based on the VS 2010 web site, I have met all of the prerequisites for developing SharePoint 2007 workflows through VS 2010 Pro.  Does anyone have any ideas on what I might be missing or what I need to

Receiving error when saving site as template: [InvalidOperationException: Error generating solution

I am getting the following error when saving a site as a template (just this specific site is having this issue - other sites in collection successfully save as template): [InvalidOperationException: Error generating solution files in temporary directory.] Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution() +26053165 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl) +1778 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent) +44 Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e) +331 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981 I'm thinking it may have something to do with permissions, but other sites can save as a template. Also, it does not specify

An error occurred while receiving the HTTP response to xxx problem. WCF comunication

I have been having this problem transmiting data (XML from a microsoft sincronization session v1.0) to a WCF service on IIS 6.I have enabled tracing on my WCF service, verbose, but nothing shows up. No exceptions what so ever.My client connects over a GPRS line. But i have also done this over ADSL with the same results.The thing is, it starts transmiting ( i can see it on wireshark) but suddenly the server side sends a TCP RST packet and the transmission ends with a client exception like An error occurred while receiving the HTTP response to http://blabalblabla/Service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.It never actually gets to my code (otherwise i would probably see something on my trace)Thank you!My binding are this (on client):<basicHttpBinding><binding name="BasicHttpBinding_Issap_mainSyncContract" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="

PollingDuplex ServiceHost stop receiving or sending any messages.

Silverlight client talks to .Net server using pollingDuplexhttpBinding. Everything works fine, untill some slow client will try to talk to server. Slow client will stop server from receiving or sending messages  to all the clients. Even mex and point doesn't respond. All the clients get timeout exception. This is my config <system.serviceModel> <extensions> <bindingExtensions> <add name="pollingDuplexHttpBinding" type="System.ServiceModel.Configuration.PollingDuplexHttpBindingCollectionElement, System.ServiceModel.PollingDuplex, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </bindingExtensions> </extensions> <service behaviorConfiguration="PollingDuplexBehavior" name="Poker2.GameServer.Facades.SGS2Client"> <host> <baseAddresses> <add baseAddress="http://localhost:20018/GS"/> </baseAddresses> </host> <endpoint address="GSHostService" binding="pollingDuplexHttpBinding" bindingConfiguration="multipleMessagesPerPollPollingDuplexHttpBinding" contract="Poker2.CommonInterfaces.WCF.IWCFGS2Client"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </service> </services&g

Receiving Error Microsoft.Office.Server.UserProfiles



I have been receiving the following error the last few days:

The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID 288eccd9-bdbe-44a6-8cac-aa1619c1a5aa) threw an exception. More information is included below. User profile import is in progress!Import could not be started. Please start import later or stop import now for new import to start.

I'm not sure where to look. We are running Team Foundation Server 2010 if that makes a difference. This is for SharePoint 2010.

Let me know what logs you guys need.


Owner, Quilnet Solutions

Receiving error message: Incorrect syntax near 'au'.

"SELECT am.State,au.Email,am.Phone,au.UserId,au.Name FROM table1 au INNER JOIN table2 am on au.UserId = am.UserId" 

"UPDATE table1 au INNER JOIN table2 am on au.UserId = am.UserId SET am.State = @State,au.Email = @Email,am.Phone = @Phone,au.UserId = @UserId,au.Name = @Name"


Might someone be able to tell me what may be causing the above error message in one or both of the above statements?

Many thanks


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