AJAX :: PageMethod Does Not Respond?
Mar 18, 2010
I have a long running process that i kick off with a pagemethod that normally takes about an hour to complete, when it is finished it returns the result of the method.I then poll with another pagemethod to update the status of the first process.the process is taking 4.5 hours this week which is acceptable and understandable, but the feedback sometimes gives up after a couple of hours and sometimes the main method never returns any feedback to the client.
Regardless of the lack of status updates and final feedback the server still completes the long task.As far as i'm aware we have made no changes to any timeout values.is there a timeout setting that we are hitting that is above 1 hour for ajax methods?
View 2 Replies
Similar Messages:
Feb 18, 2011
I have a simple aspx file with 2 text boxes and an ajax autocomplete extender attached to textbox2
[code]....
This not working.. How can i make it work?
View 1 Replies
Jan 12, 2010
I am using an AJAX.Net to call an ASP.Net PageMethod, which returns JSON serialized JSON data
{"d":"[{"Fromaddress":"testfrom1@test.com","Toaddress":"testto1@test.com"},{"Fromaddress":"testfrom2@test.com","Toaddress":"testto2@test.com"}]"}
The Response Header states the content type as
"Content-Type application/json; charset=utf-8"
However, the data is just available as a string, and does not seem to be available as JSON data from javascript. What do I need to do to work with the returned data as JSON from javascript?
View 1 Replies
May 30, 2010
I have a PageMethod that works perfectly well when it either (a) running in the VS dev server, or (b) deployed but marked with UseHttpGet=false.
What doesn't work, and is driving me mad, is having UseHttpGet=true and then deploying it to a test server (Vista & IIS7). It fails to call through the proxy with error code 404 coming back. But it works find if I set UseHttpGet=false.
I have gone through all of the basic stuff I can think to check, and as noted it works perfectly well on the dev box. So there must be something particular about full-blown IIS7 and its config that I am missing..
anything to check in the IIS manager that would cause this to fail? I've tried with forms authentication enabled and disabled, as a few posts mentioned issues with that.
View 1 Replies
Mar 3, 2011
I have a page that requires user login via Forms Authentication. Is it possible to use Page Methods in this page? My current attempt is resulting in the following error:Message: Sys.Net.WebServiceFailedException: The server method 'GetPlanContent' failed with the following error: System.InvalidOperationException-- Authentication failed.
View 2 Replies
Jun 28, 2010
I put my ScriptManger on the top level Masterpage with EnablePageMethods set to "true".2. I put a AutoCompleteExtender (AjaxToolkit) on a second level Masterpage which derives from the top level MasterPage. The AutoCompleteExtender is used for search with a TextBox. The PageMethod is defined in the Code Behind of this second level Masterpage.3. I have several Contentpages that derive from the second level Masterpage.Problem: The AutoCompleteExtender does not work and that's probably because the PageMethod is defined in the second level MasterPage in the CodeBehind and not in the Contentpage. Ok, so I'm pretty sure what causes the error,- I do not want to use a WebService, because I don't want the search to become public. And as far as I know you can't define a WebService that is only visible to the Website itself - it's always public.- It would be stupid to put the search on every Contentpage just for the PageMethods sake.
View 1 Replies
Jun 16, 2015
My website is running fine on my local system but when i upload it on IIS6 of my local computer [Ajax.AjaxMethod] is not working. How i will solve it.
View 1 Replies
Sep 27, 2010
I have a problem
condition : server = asp.net FW3.5 .... Client = just and just htmls (no server control /no runat ="server" att)
i open a ajax request from browser and that is ok problem:
1. in case above a page_load happend on server we all know that, but i cant determine is it asynchorus load or normal load
2. as response of that AJAX call i can't use response.write() cause it will redraw entire page not just a portion
In Litle Details: suppose i there is a <div id = ....> on client page, i just need to send a table, after that javascript will put that under the div. and response write can't do this cause it send xml for entire page not for just tha table.
View 3 Replies
Jul 29, 2010
In a page I have multiple update panels that has timer associated with them to refresh the grids. Issue is that when asynchronous request (update panel) is in progress page do not respond. If use try to click some other link to move he even can not do that until asynchronous request is completed. Is it not possible that user may able to click some other button if he want while update is in process ?
View 16 Replies
Jun 29, 2010
I have written an application that relies upon PageMethods. It was working fine in .NET 3.5 where I would rely upon exceptions to signify something failing during the call. I would then alert the user to what ever it was that happened. All was working great. I transitioned to .NET 4.0 as I am intrigued by the Parallel Computing improvements. Now any exception that I throw in the PageMethod in the code behind is met with an Unhandled Exception. Nothing has changed other than the target framework.
View 5 Replies
May 6, 2010
We have used the ajax toolkit auto complete extender in an intranet app which uses Windows authentication. The auto complete uses a static page method in the page code behind to get the results. Even though the page containing the auto complete is authenticated by the server and the asp.net session id set in the cookie, the initial requests from the auto complete result in 401.1 and after few attempts result in a 200. This irritates the users of the app. Also later on there are 401.1 happening intermittently among the various 200 there by affecting the responses.
I have verified these responses by using Microsoft Network Monitor,Fiddler and Firebug. Also these entries are present in IIS logs. I tried to implement the same with a script service but that too gives same issues. Our site has lots of ajax features and controls and everything is working fine, only this issue is there.
<asp:ScriptManager ID="smHome" runat="server" EnablePageMethods="true" AsyncPostBackTimeout="600"> </asp:ScriptManager>
<CustomControls:StyledAutoCompleteExtender runat="server" ID="acAssociateSmartSearch"
TargetControlID="txtSmartSrch" ServiceMethod="GetAssociateSmartSearchList" MinimumPrefixLength="2"
CompletionListCssClass="sscompletionListElement" CompletionListItemCssClass="sslistItem"
CompletionListHighlightedItemCssClass="sshighlightedListItem" CompletionSetCount="10"
CompletionInterval="500" EnableCaching="true">
View 1 Replies
Jun 14, 2010
I have a long running PageMethod defined in the cs that is being called from javascript and after 4 minutes I am getting the below error and 504 status code for my aspx page and onFail callback is raised.
<HTML><HEAD>
<TITLE>Gateway Timeout - In read </TITLE>
</HEAD><BODY> [code].....
View 2 Replies
Jul 1, 2010
need to send a byte array from javascript into a c# page method. The int and string variables work fine, but when I step through the c# code, the "object" which was the byte array is null, even though I checked to see if it had a value in JS.
var byteArrayObj = GetBinaryDataFromFile(filePath);
var tranAttachmentName = filePath.replace(/^.*\/, '');
PageMethods.AddFileToTran(tranId, tranAttachmentName, byteArrayObj, RefreshPage, onTimeout, onError);
[code]...
View 1 Replies
Jan 24, 2016
Is it mandatory to pass the Success and Failure method names as parameters while calling server side methods using PageMethods in client script.
I referred to article [URL] ....
View 1 Replies
Jun 15, 2010
I'm using a ModalPopupExtender to display a login screen when an ImageButton (called Post) is clicked.The dialog pops up as expected and performs all the correct validations. When the user presses the Enter key, this causes the Login button to fire its Click event as it should.The issue I get is that I have another ImageButton on the main page. After the user presses Enter in the login and the page logs the user in, it does not fire the server click even for the initial post button that brought up the login, it fires the click of another ImageButton instead.
View 1 Replies
Jan 11, 2010
I have implemented AJAX for calling server side function using client side function call i.e Calling server side function using javascript tag by using PageMethod in javascript.
I have few question regarding the same implementation.
[code]....
This FunctionName will be the name of server side function that a developer want to call.
View 1 Replies
Mar 24, 2010
I am using PageMethods to send a few parameters to a webmethod in my codebehind. The method runs a stored procedure and uses the results to build a string that I am returning from the method.
Everything works fine until I try to include too many records in my results..
Once the results I am trying to return hit about 70K, the pagemethod times out even though it is taking about 1 second to process the results.
Is there a buffer limit or limit on the size or results returned from a pagemethod and if so, where can this be set or changed?
Is there a setting in the web.config somewhere to handle pagemethod buffer size?
View 3 Replies
Nov 24, 2010
I have register.aspx at root level folder and updateprofile.aspx in folder /secure/user/ .
pagemethods are working good at root level folder aspx pages only.
pagemethod calling webmethod in updateprofile.aspx is not working. Getting "undefined" exception.
Why is this so?
View 3 Replies
Jun 4, 2010
i have a machine that i use as a server, the machine is running Windows 7 and IIS 7. I am using Windows Xp and my browswe is IE8.
In my application i use Infragistics menu controls. The menu freezes, and they dont respond or calloapse. I have tried the Compatibility mode but it still does that.
View 10 Replies
Jun 4, 2010
i have a machine that i use as a server, the machine is running Windows 7 and IIS 7. I am using Windows Xp and my browswe is IE8.In my application i use Infragistics menu controls. The menu freezes, and they dont respond or calloapse. I have tried the Compatibility mode but it still does that.
View 2 Replies
Dec 21, 2010
I have deployed my .NET application on IIS and Iam facing the Same Problem " the server is taking too long to respond" My OS is Windows XP and IIS 5.1.
View 3 Replies
Mar 10, 2010
I have got 2 Drop Down Lists on my Form and 1 GridView. I want GridView to display the data according to selection from the Drop Down Lists.
For Example, One Drop Down List contains Names and other contains Dates. Both the Drop Down Lists can post back. So if i select a name from 1st Drop Down list, the Grid View should show all the results according to that Name. Similarly if i select the Date from the other Drop Down List , the Grid View should show the results according to the dates. But i cant figure out as how to bind Grid View to respond to 2 Drop Down List.
i am binding both the Drop Down Lists and the Grid View to the DataSource Objects, which is getting data from the database.
View 8 Replies
Aug 10, 2010
However when I push the button nothing happens, the text-box ain't updated.
I also wounder how i can access the data inside the DataList so that I can manipulate it inside the "DataList1_ItemCommand" function.
<p>
<asp:TextBox ID="NameTextBox" runat="server" CssClass="textEntry"
TextMode="SingleLine" Rows="0" Height="20px" Width="250px" Enabled="False"></asp:TextBox>
<asp:DataList
ID="DataList1"
runat="server"
[Code]....
View 1 Replies
Sep 23, 2010
I have a website written in C# and when a user does something I want to be able to send an IM message to an admin and allow the admin to respond to approve/deny the request.
I would like to use something like MSN Messenger or AIM so that the IM messages can also be sent to phones as sms.
View 4 Replies
Feb 10, 2011
I am trying to call a PageMethod using jQuery like this:
[WebMethod]
public stataic string WebMethod(PostData data)
{
//DO WORK
return "a";
}
PostData class is as follows:
[Code]....
View 2 Replies