473,653 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Net.WebE xception: The operation has timed out

Hi,

I have a web client code written in C# and I am using web services
using the proxy created by VS2005. Only timeout I am using this case
is the SOAP envelop timeout. When I run the code it is keeping timing
out. Could someone tell me what could be the reasons? [One side note a
new server is added to the pool and this code didn't change for couple
of months and its been working properly till a week ago, there is
nothing changed during that week though]. Here is the code snippet
that is failing

private void CIn()
{
taskComplete = false;

ServiceWse wse = new ServiceWse();
wse.UseDefaultC redentials = false;
SoapContext ctx = wse.RequestSoap Context;
ctx.Security.To kens.Add(token) ;
ctx.Security.El ements.Add(new MessageSignatur e(token));
ctx.Security.Ti mestamp.TtlInSe conds = _Timeout;
AppSettingsRead er config = new AppSettingsRead er();
Uri dest = new
Uri(config.GetV alue(ReferenceN ames.WebService URI,
typeof(string)) .ToString());
Uri via = new Uri(config.GetV alue(WSELocatio n(),
typeof(string)) .ToString());
ctx.Addressing. Destination = new EndpointReferen ce(dest,
via);

byte[] fileContents = File.ReadAllByt es(aDirectory =
zFileName);
try
{
wse.CIn(a, y, t, x, R, fileContents);
taskComplete = true;
}
catch (System.Web.Ser vices.Protocols .SoapException e1)
{
log.Fatal(" failed " + e1.ToString());
}
catch (Exception e1)
{
log.Fatal(" failed " + e1.ToString());
}
}
else
{
log.Fatal("Unab le to file");
}
}

Jan 30 '07 #1
0 3046

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3294
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.
0
1297
by: yariv | last post by:
Hello All, I am having a very strange problem. while trying to access http page on the web. I happen to have some problems at specific machines. the exception I get is: ************* Exception Text ************** System.Net.WebException: The operation has timed-out. at System.Net.HttpWebRequest.GetResponse()
5
9023
by: Sachin Surana | last post by:
We use HttpWebRequest to send the request at a URL. But some times the method GetResponse throws a time out exception. But when we check the IIS logs, there is no such entry. So the request never reached the server but the client is getting a time out exception. What could be the possible reasons? Confirmed that the request does not get lost in the network.
1
2246
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)
4
2928
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is the page does show up on the left side of the screen listing the available methods but the Add...
2
25458
by: tlan | last post by:
Hi, I got this error when I move my web service to Windows2003 server. I spent hours scouting on the internet and could find any answer. Please help!!! I the webservice is timeout between 1 -2 minutes when my web app, which consume this webService, retrieves a large amount of data. When I perform the same operation to retrieve smaller amount of data, it works fine. The timeout value I set for my web app, web service, and sql
4
22712
by: arun.hallan | last post by:
I know this has been asked umpteen times but i cant find an answer to my problem. Very simply, i have a GUI which is trying to call a webservice. The webservice may take any time from 5mins to 30mins (or more). However after 2mins i get the following error: System.Net.WebException: The operation has timed-out The webservice doesnt return anything. I tried the whole thing with the
3
3429
by: srini | last post by:
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...
0
1111
by: PoonamS | last post by:
Hi, I created WCF "Hello world" application. everything works fine. but when i try to run the client website. It gives me WebException. it shows me that "Operation has timed out". i tried the option mentioned in the Microsoft site. like Service1 obj = new Service1(); obj.Timeout = -1 // Infinite but it takes so much time n still i dont get the result.
0
8370
marktang
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...
0
8811
Oralloy
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...
0
8704
jinu1996
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...
0
8590
tracyyun
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...
0
7302
agi2029
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...
1
6160
isladogs
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...
0
4147
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2707
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
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.