473,769 Members | 5,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NET -> Http web request timeout HELP

74 New Member
Hi,

Currenty I have a window based NET application running and have a following function to http post some data.

string url = xxxx.aspx? parameter1=&par ameter2=&..etc

WebRequest request = WebRequest.Crea te(url);
request.Timeout =150000;
WebResponse response = request.GetResp onse();
StreamReader stream = new StreamReader(re sponse.GetRespo nseStream());
Contents = stream.ReadToEn d();

PROBLEM:
My problem is that is ALWAYS operation timeout...

CAN someone help me on THIS?
Aug 17 '07 #1
0 991

Sign in to post your reply or Sign up for a free account.

Similar topics

3
8328
by: Fran?ois-Xavier Testard-Vaillant | last post by:
In a Perl script I want to send several http requests WITHOUT waiting for the remote servers answer (i.e. just triggering http requests) and without having to create lots of processes... Thanks in advance François-Xavier
0
1651
by: Brian Pearson | last post by:
Hi, I'm wondering how I can find out when a request timeout has occurred and handle it programmatically. Here's is what I have so far: // This handler is added to the web application's Error event // somewhere else with this code: // this.Error += new EventHandler( D2LWebApp_Error );
1
1244
by: Sam | last post by:
Hi All I'm assigned a task to create some kind of services to monitor new sales in database and send out emails and I'm thinking to use window service to do that. Does anyone know where I can find some good samples of window service that do similar things? Can a window service send an http request? Any help would be greatly appreciated Regards,
1
3778
by: felippe | last post by:
Hi! I have got IIS 6.0 on Windows 2003 Server. I have installed HTTP handler (as simple reverse-proxy) - code below. I created virtual category with this dll and Wilcard application mapping set to aspnet_isapi.dll Now everything works fine, but sometimes IIS stops working and return 'Error in /catalog Application. Request timeout...' And than i must restart IIS (at least application pools).
0
1280
by: felippe | last post by:
Hi! I have got IIS 6.0 on Windows 2003 Server. I have installed HTTP handler (as simple reverse-proxy) - code below. I created virtual category with this dll and Wilcard application mapping set to aspnet_isapi.dll Now everything works fine, but sometimes IIS stops working and return 'Error in /catalog Application. Request timeout...' And than i must restart IIS (at least application pools).
1
3140
by: Shashank | last post by:
Hi all, I am a new member of this community. I am making a http request to a html file placed on a Apache server. On this page there is an embeded perl statement which requires reading environment variables from the server. When I am typing the url of the html page in my browser, I am able to read the Environment variables from the server and getting the desired results. But, when I am making Http request through my window application,...
1
1174
by: johnlim20088 | last post by:
Hi, Currenty I have a window based NET application running and have a following function to http post some data. string url = xxxx.aspx? parameter1=&parameter2=&..etc WebRequest request = WebRequest.Create(url); request.Timeout =150000; WebResponse response = request.GetResponse(); StreamReader stream = new StreamReader(response.GetResponseStream());
0
953
by: johnlim20088 | last post by:
Hi, Currenty I have a window based NET application running and have a following function to http post some data. string url = xxxx.aspx? parameter1=&parameter2=&..etc WebRequest request = WebRequest.Create(url); request.Timeout =150000; WebResponse response = request.GetResponse(); StreamReader stream = new StreamReader(response.GetResponseStream());
2
3491
by: rajeshsia | last post by:
Hi Frienzs, If we need to customize Request Timeout timeperiod, then what are different ways to do so? Scenario is: In my application, I called an action and and itz takin more time to complete the action , but after few mins(about 20 mins, approx...), application interface showing the message with 408 error.So I guess it is request timeout error and I wanna increase the time limit.As i know in ColdFusion its very easy, but i am using...
0
9590
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
9424
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
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
10051
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...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8879
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
7413
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
6675
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();...
3
2815
bsmnconsultancy
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...

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.