SOAP Call Times Out After 20 Minutes
Jun 3, 2010
We have an ASP.Net web service the call to which, due to some bad design, often takes more than 20 minutes to return. We have changed every setting that we can think of, but no matter what we do, we always get a timeout after 20 minutes. It happens that this web service is a BizTalk orchestration exposed as a web service, but I do not think that is relevant -- the error is an ASP.Net error.
There must be some setting we can change to increase the timeout to more than 20 minutes, but we've exhausted our knowledge. What setting are we missing? EDIT: Among other setting, we have tried those detailed here: [URL], which includes httpRuntime executionTimeout, sessionState timeout and app pool idle timeout.
View 2 Replies
Similar Messages:
Nov 22, 2010
I have a very peculiar problem that I've been wrapping my head around and I just can't figure it out. I have an updatepanel. Inside that I have a TabContainer. And inside that I have three TabPanels, each of which has checkboxes. Sometimes (and it happens often enough that I can easily reproduce it, but strangely may not happen with the same exact steps), when I click on different tabs or click on checkboxes inside the tabpanels (basically when I do an AJAX async postback), the request takes about a few minutes, after which the request just stops. Looking at the Firefox error console, I see this popping up after a few minutes...
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0 Now, the asyncpostbacktimeout property for the ToolkitScriptManager is set at 360000, which is 6000 minutes, so the problem has nothing to do with that setting. In IE, I never have this problem and the AJAX requests are instantaneous and smooth, no delays. So this isn't a network or database lag issue. Something to do with how AJAX is run in Firefox. Why is it that sometimes, an AJAX request in Firefox takes a few minutes and just stops processing the request? And once again, the steps to reproduce this problem may not be the same every time, it seems random - very strange. Google searches have yielded very little help on this. I've tried things like extending the timeout property (which again has nothing to do with this), setting Response.Cache.SetNoStore() everywhere. Is there a crude workaround I can do (at this point, I'm willing to settle for a workaround). I just don't know anymore.
View 1 Replies
Feb 8, 2011
I have been working on a .NET/C# form that contains two time fields that are built out of dropdowns. Time A is made up of two dropdowns for Hours and Minutes and Time B is made up of two drop downs for hours and minutes too. I need to compare the two in order to ensure that Time A is always greater than B. I could just use a CompareValidator to check the hours, that works BUT doesn't take into account the minutes. So lets assume the following scenarios:
A = 11:00 B = 12:15 is fine my validation accepts this as it should do
A = 11:15 B = 11:00 is accepted because the hours are equal but otherwise shouldn't pass as the minutes aren't validated
How would you ensure B is always equal to or greater than A where dropdowns are used? I would if I could change this but not permitted to do so.
View 2 Replies
Jun 11, 2010
I have a site that is using Forms Auth. The client does not want the site session to expire at all for users. In the login page codebehind, the following code is used:
// user passed validation
FormsAuthentication.Initialize();
// grab the user's roles out of the database
String strRole = AssignRoles(UserName.Text);
// creates forms auth ticket with expiration date of 100 years from now and make it persistent
FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1,
UserName.Text, DateTime.Now,
DateTime.Now.AddYears(100), true, strRole,
FormsAuthentication.FormsCookiePath);
// create a cookie and throw the ticket in there, set expiration date to 100 years from now
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(fat)) { Expires = DateTime.Now.AddYears(100) };
// add the cookie to the response queue
Response.Cookies.Add(cookie);
Response.Redirect(FormsAuthentication.GetRedirectUrl(UserName.Text, false));
The web.config file auth section looks like this:
<authentication mode="Forms">
<forms name="APLOnlineCompliance" loginUrl="~/Login.aspx" defaultUrl="~/Course/CourseViewer.aspx" />
</authentication>
When I log into the site I do see the cookie correctly being sent to the browser and passed back up: However, when I walk away for 20 minutes or so, come back and try to do anything on the site, the login window reappears. This solution was working for a while on our servers - now it's back. The problem doesn't occur on my local dev box running Cassini in VS2008.
View 3 Replies
Jul 1, 2010
ASP.Net 2.0 Web Services automatically create both SOAP 1.1 and SOAP 1.2 bindings. Our web service, however, has SOAP extensions and custom exception handling that make the assumption that only the SOAP 1.1 binding is used (for example, the SOAP extension uses the HTTP SOAPAction header to control behavior).
I am looking to correct the code that makes these assumptions and make it work with either SOAP 1.1 or SOAP 1.2 properly. I am running into a bit of a problem in the generation of elements for our SOAP faults.
Consider the following web method implementation:
[Code]....
The SOAP 1.2 response now has the wrong qualified name for the detail element. It should be <soap:Detail>, but instead is merely <detail>, same as the SOAP 1.1 response.
It seems that the ASP.Net 2.0 framework has done quite a bit to transform a SOAPException into the appropriate form for the SOAP version, but neglected to properly handle the detail element. Additionally, they don't seem to have exposed the correct SOAP 1.2 qualified name for the detail element as was done with the SoapException.DetailElementName property.
So, what is the correct way to add a detail element to a SOAP fault response that works for both SOAP 1.1 and SOAP 1.2? Do I need to detect the SOAP version myself and hard-code the SOAP 1.2 qualified name for the detail element?
View 2 Replies
Apr 4, 2011
I am using a web method of a company's web service.
This web method requires one parameter when calling it:
CompanyOpereations srv = new CompanyOperations();
srv.getCustomerInfo(input);
How can I see my soap request xml when calling this method?
View 2 Replies
Feb 2, 2010
I have a web service/wsdl file that requires client authentication to passed through SOAP headers.
There is not property or method available in web service to set the SOAP headers.
how to call the web service method along with SOAP headers in .NET 2.0
View 7 Replies
Apr 4, 2010
how do i call webservice via httpwebrequest with soap header
[Code].....
but i don;t know where to add AuthSoapHd for username and password.
HttpWebRequest request = (HttpWebRequest)
HttpWebRequest.Create(url);
String xmlString = txtInput.Text;
ASCIIEncoding encoding = new ASCIIEncoding();
[Code]....
View 2 Replies
Dec 30, 2010
Is it OK to call FormsAuthentication.RedirectFromLoginPage many times?
On login page we test if user is already logged in, and if it is we just redirect him to default page with FormsAuthentication.RedirectFromLoginPage...
Question is if user sets a script that loads login page 10'000 times, would calling the FormsAuthentication.RedirectFromLoginPage that many times make problems?
View 2 Replies
Nov 25, 2010
I successfully added the web service reference and tried to call it with this line of code:SuccessGetLead lead = service.getLead(paramsgetlead);
[WebException: The server committed a protocol violation. Section=ResponseStatusLine]
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) +263
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) +4
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +172
com.marketo.soap.MktMktowsApiService.getLead(ParamsGetLead paramsGetLead) in c:Usershubert.griningerAppDataLocalTempTemporary ASP.NET Filesdynaweb200782e21235d41bf12aApp_WebReferences.liqikruc.7.cs:206
[code]...
View 1 Replies
Jun 19, 2010
I open a pop up window by window.open, then after selecting value from grid link i need to move my parent page as i am doing like
<a href="../../AddressBook/AB_UDCMaster.aspx?mode=Search&ParentCode=<%# Container.DataItem("ParentUDCCode") %>&UDCParentID=<%#Container.DataItem("UDCParentID")%>'"><%#Container.DataItem("ParentUDCCode")%></a>
View 3 Replies
Oct 25, 2010
I'm using the local database functionality in Chrome and Safari and what I do when I want to save this to a remote database is to create a hidden textfield and then using JSON to stringify each row. In the code behind I then parse each JSON object and insert it into the list. What I want to do now is to delete these rows from the local database. I have a JavaScript function called deletePatient:
[code]....
View 1 Replies
Feb 13, 2011
I want to redirect the user after 2 mins if there is inactivity for 2 mins. I am not using ASP.NEt membership. And I dont want to use Sessiontimeout for this. Session timeout will logout the user even if he is working on the system. My objective is like screensaver process.
If there is no action for the specified time, the screensaver runs. Similarly, I want to redirect the user to login page.
note that i have already handled it with the following javascript:
[Code]....
Here what my problem is,
the user is working on the site...ok.. he want to see someother site.he browse someother site and works on....or even he can do some other work in his system...but he is active in his system... What this script does is, it automatically logout the user and redirect him to login page. But it should not do while he is active...IT SHOULD REDIRECT IF HE IS NOT ACTIVE REALLY (Similar to Screensaver process)
Is it possible ?
View 1 Replies
Mar 22, 2010
I've trying to use the API for CapsuleCRM... [URL] I've been reading some articles on SOAP in asp.net and I just don't get it. Most of them seem to be ablut creating a web service, not using it and none of them seem to explain how to use basic HTTP authentication. I have got as far as constructing the XML i want to send to the API but I could really do with seeing some example code which makes an http call using http authentication to a SOAP API.
View 1 Replies
Jun 2, 2010
I have the date format string dd-mm-yy. how to add hours and minutes to the string (i.e 13-03-2010.21.03) ....
DateTime.Today.ToString("dd-mm-yy") ?
View 5 Replies
Mar 1, 2011
ASP.Net:Best way to run scheduled tasks
How to fire a server side action after 10 minutes in ASP.NET using C#
For example of, if user creates an account and if his account is kept inactive for 12 hours how to automatically delete his account. I need something related to this kind of example.
There should be no relation with browser. Once the user logs out of his account his some server side action to be performed automatically after some certain time.
View 4 Replies
May 28, 2010
I have Web Application in asp.net. Where I am maintaining Session for every User. And every Time I got logout in Approx 2 min. I tried to increase this time through web Config File upto 60 min but it is not working For me and I m getting same problem.
I have created A class file For maintaining session.I am Using This Code.
public static void createSession(System.Web.SessionState.HttpSessionState session)
{
Session = session;
}
This is my class file code.
And I am calling this function in login Page load like this.
BusinessClasses.SessionHandler.createSession(Page.Session);
Then After I am Checking In everyPage.
View 5 Replies
Oct 17, 2010
i want to display Hello World Message. How to call this function every five minutes?
View 1 Replies
Jan 24, 2010
I'm having a problem with a web app I'm managing. Users starting receiving the following error occasionally:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
The problem is that it's not a cluster - it's a single Windows 2003 server. After digging around, it appears that adding a machineKey section and some extra attributes to the Pages directive in my web.config resolves this error:
<machineKey validationKey='MACHINE KEY SNIPPED'
decryptionKey='DECRYPTION KEY SNIPPED'
validation='SHA1'/>
<pages validateRequest="true" enableEventValidation="false">
After changing these two things in my web.config, the error goes away, but now I have a new problem - Instead of an error that my viewstate is invalid, the app just "Forgets" who my user is, and sends them back to the login page. Now, the users are browsing through the application, and then they're unexpectedly sent to the login page, even after they've already been logged in for a few minutes. While I can't force this to happen, it usually happens within visiting 10-12 different pages, so pretty frequently.
I'd love a resolution to this - does anybody know what else might be causing the viewstate error on a single server, or what I can do to ensure that it's validated properly?
View 2 Replies
Jan 25, 2010
I have implemented the basic forms authentication.In web.config I have set the following, in the authentication tagtimeout = "50000000000" Other than that, I have an out-of the box implementation.I have no custom provider.My clients want to pretty much enter the username once a day.The timeout is in minutes, so I am sure that they are not waiting over 5 million minutes,so something else has to be booting them.
View 7 Replies
Jun 19, 2010
What is the namespace used for in a SOAP web service?
View 3 Replies
Mar 24, 2010
I have an application using login-controls.
I have this code in my webconfig:
<authentication mode="Forms" >
<forms loginUrl="default.aspx" protection="All" defaultUrl="index.aspx" timeout="100000"></forms>
</authentication>
My problem is:
If I do not activate my application for 30 minutes (my customers wants to be online all day without logging out) my session for user login is lost. How can I automatically refresh my sessions if there has been no activity for e.g. 10 minutes? It's a sort of keep-alive that I want. I thought the problem was sloved when I set the timeout to 100000 but it doesn't help
Note. My application works with the remember me function but it losses its sessions after 30 minutes.
View 8 Replies
Feb 19, 2011
I need some guidance on creating and running a Cron Job in asp.net(C#.net) to run my page every 30 minutes. My Web page has to load data from Sql Server to MySql database every 30 minutes with this cron job.
View 3 Replies
Feb 25, 2010
I'm building a website in ASP.NET with C# code behind files, I'll be using the site on shared hosting due to price, and one of my aims was to have a stored procedure scheduled to run every 1 hour in MySQL and update my database.
Unforunately security arrangements on shared hosting means that users cannot schedule stored procedures, so I decided to tackle the problem another way.
I created a timer in my website inside its own class file in the App_Code folder, it basically starts a timer and then the time elapsed event connects to my database and calls the stored procedure. I then built an admin page that allows me to see the status of this thread (started/stopped) and allows me to start/stop and restart it.
It's installed on my test site that I run from my home PC using Win7 and IIS, and it works beautifully, I can stop start the service and watch the database tick up when it's running...
HOWEVER...it only seems to run for 20 minutes before it stops, I thought maybe it was the garbage collection killing it since that's mentioned in some timer examples but I've added a GC.KeepAlive(Timer) and that's not . I'm really stumped as to what is stopping the timer, it's functionality is dead on the money and how I want it, but it just stops, always after almost exactly 20 minutes.
[Code]....
View 8 Replies
Jan 21, 2011
I need to fetch CSV file from a webserver every few minutes.
Here's what I am planning to do:
I will create a webservice "GetCSV.asmx" which will get CSV file from that webserver.
I will create another webservice "RegularCall.asmx" which will call "GetCSV.asmx" every few minutes.
Is my approach correct? Is there a better way of doing this?
I am using ASP.NET web application and JSON webservice for this.
NOTE: There will be NO user intervention and the solution I am looking for is similar to scheduling a task on the server.
View 3 Replies