I have a console application in C#, which calls a .net webservice.
The .net webservice calls a stored procedure to retrieve the data.
The sp runs for around 3 minutes and get the results. The first time, I
get the exception
and the next time I understand it is in the buffer cache and it is able
to run without error.
I have made the following changes so far
1. Changed web.config in the webservice to have the http execution time
out to be high
<httpRuntime maxRequestLengt h="1048576" executionTimeou t="4000"/>
2. I have the console application which is the caller to have
webservice.time out = 60*1000;
3.I did not want to change the machine.config, as it will effect all
other projects.
I get the following webexception still after implement 1 and 2 ( A
WebException occurred while executing the requested operation.
Message: The operation has timed-out.)
Is there anything I am missing other than machine.config ?
Thanks 3 3428
Hi Srini,
I'm guessing your web service call times out. The default is 100 000
milliseconds before it gives up waiting.
Set the Timeout property before you call the service.
On Wed, 06 Sep 2006 23:50:00 +0200, srini <sr************ **@gmail.com
wrote:
I have a console application in C#, which calls a .net webservice.
The .net webservice calls a stored procedure to retrieve the data.
The sp runs for around 3 minutes and get the results. The first time, I
get the exception
and the next time I understand it is in the buffer cache and it is able
to run without error.
I have made the following changes so far
1. Changed web.config in the webservice to have the http execution time
out to be high
<httpRuntime maxRequestLengt h="1048576" executionTimeou t="4000"/>
2. I have the console application which is the caller to have
webservice.time out = 60*1000;
3.I did not want to change the machine.config, as it will effect all
other projects.
I get the following webexception still after implement 1 and 2 ( A
WebException occurred while executing the requested operation.
Message: The operation has timed-out.)
Is there anything I am missing other than machine.config ?
Thanks
--
Happy Coding!
Morten Wennevik [C# MVP]
Morten
I thought thats what I am doing in the console application. I changed
from 60000
to 100000 and it still fails. would you mind reading the problem again
?
thanks
Morten Wennevik wrote:
Hi Srini,
I'm guessing your web service call times out. The default is 100 000
milliseconds before it gives up waiting.
Set the Timeout property before you call the service.
On Wed, 06 Sep 2006 23:50:00 +0200, srini <sr************ **@gmail.com>
wrote:
I have a console application in C#, which calls a .net webservice.
The .net webservice calls a stored procedure to retrieve the data.
The sp runs for around 3 minutes and get the results. The first time, I
get the exception
and the next time I understand it is in the buffer cache and it is able
to run without error.
I have made the following changes so far
1. Changed web.config in the webservice to have the http execution time
out to be high
<httpRuntime maxRequestLengt h="1048576" executionTimeou t="4000"/>
2. I have the console application which is the caller to have
webservice.time out = 60*1000;
3.I did not want to change the machine.config, as it will effect all
other projects.
I get the following webexception still after implement 1 and 2 ( A
WebException occurred while executing the requested operation.
Message: The operation has timed-out.)
Is there anything I am missing other than machine.config ?
Thanks
--
Happy Coding!
Morten Wennevik [C# MVP]
Never mind, just realized we are dealing with milliseconds. It works
now after changing to 300 seconds.
srini wrote:
Morten
I thought thats what I am doing in the console application. I changed
from 60000
to 100000 and it still fails. would you mind reading the problem again
?
thanks
Morten Wennevik wrote:
Hi Srini,
I'm guessing your web service call times out. The default is 100 000
milliseconds before it gives up waiting.
Set the Timeout property before you call the service.
On Wed, 06 Sep 2006 23:50:00 +0200, srini <sr************ **@gmail.com>
wrote:
I have a console application in C#, which calls a .net webservice.
The .net webservice calls a stored procedure to retrieve the data.
The sp runs for around 3 minutes and get the results. The first time, I
get the exception
and the next time I understand it is in the buffer cache and it is able
to run without error.
>
I have made the following changes so far
1. Changed web.config in the webservice to have the http execution time
out to be high
<httpRuntime maxRequestLengt h="1048576" executionTimeou t="4000"/>
2. I have the console application which is the caller to have
webservice.time out = 60*1000;
3.I did not want to change the machine.config, as it will effect all
other projects.
>
I get the following webexception still after implement 1 and 2 ( A
WebException occurred while executing the requested operation.
Message: The operation has timed-out.)
Is there anything I am missing other than machine.config ?
>
Thanks
>
--
Happy Coding!
Morten Wennevik [C# MVP]
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe Bloggs |
last post by:
I have a C# MRS application that uses the ReportingService's Render
method to retrieve a byte array containing a report.
The following error message occurs
An unhandled exception of type 'System.Net.WebException' occurred in
system.web.services.dll
Additional information: The operation has timed-out.
|
by: genc_ ymeri at hotmail dot com |
last post by:
Hi,
I'm trying to recieve the response status code rather than the message in
the below code :
try
{
responseArray =
myWebClient.UploadValues(uriString,"POST",myNameValueCollection);
}
catch (System.Net.WebException ex)
|
by: Matt |
last post by:
(can't find any of my previous post for same issue. please CC to my email
address as well. Thanks!)
Hi all,
What is the possible reason that HttpWebRequest.GetRequestStream() may hang
there until a timeout exception. Here is the stack trace and code snippet.
Please do help. --Matt
// stack trace
System.Net.HttpWebRequest.GetRequestStream() +190
|
by: etantonio |
last post by:
Good morning, I've a problem, in the past I translate my site from
google or altavista with a code similar to this :
<%@ Page Language="c#" Trace="true" Debug="true" %>
<%@ import Namespace="System.Net" %>
<%@ import Namespace="System.IO" %>
<script runat="server">
void Page_Load(Object Src, EventArgs E )
{
if (!Page.IsPostBack)
|
by: Tim Reynolds |
last post by:
Team,
From a windows service, we consume a web service on another server and
occasionally receive System.Net.WebException: The underlying connection was
closed:. For some clients we call, we do not see this as we ran into this
previoulsy, made a posting, and received some suggested code to resolved.
The code was put in their proxy classes and was this...
protected override WebRequest GetWebRequest(Uri uri)
{HttpWebRequest webRequest =...
| |
by: Tim Reynolds |
last post by:
Our .Net application calls a web method of aplpication 2 that resides on
their Apache server. When I as a developer C#, Studios 2003, make the call to
their web method from my desktop, I receive no exceptions - completes fine.
Their web service url was added as a web reference to our project with no
problem. The following was generated as part of the proxy class:
/// <remarks/>
public DueDateAvailabilityResponse...
|
by: Scott McFadden |
last post by:
When I invoke two web service methods sequentially with no delay, the first
web method invocation goes smooth while the 2nd one generates the dredded:
System.Net.WebException: The underlying connection was closed: An unexpected
error occurred on a send.
The only way I have been able to make consecutive web method invocations
work is by overriding GetRequest and disabling Keep-Alive. The IIS
Keep-Alive setting is enabled for 120...
|
by: =?Utf-8?B?UGhpbGlwIEs=?= |
last post by:
Simplifying the code a bit its like this:
try
{
myRemotingObj.Myfunction(string, string,string,string,timeSpan)
}
catch(WebException)
{
commsUp = false;
}
|
by: DBC User |
last post by:
Hello,
One of my client reports they are getting "System.Net.WebException:
The underlying connection was closed: The connection was closed
unexpectedly." error suddently from the last week. None of my other
clients and I am unable to reproduce the problem.
I have 4 web services and 2 of the web services seems to be working
fine, they are basically authentication and displaying some
information. The error happens when they try to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |