473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HttpWebRequest - Timeout

I am trying to do a HttpWebRequest/HttpWebResponse handshake. When I
do it on my local computer, it works fine. When I execute the same
code on the server, I get a timeout. I tried putting the request url
right into the browser (when I am on the server) and I get a response
back. I have also tried communicating with the same server in a
different application and it works there. Any ideas?

May 4 '06 #1
8 1965
I think I found some more relevant information. The problematic server
is Running Windows 2000 and is using the .NET 1.1 Framework. My local
machine is running Windows XP and is using the .NET 2.0 Framework.

How can I tell IIS to use the .NET 2.0 Framework for only one
application in Windows 2000? In Windows XP (local computer) all I need
to do is change a drop down menu. I don't see that menu in Windows
2000.

May 4 '06 #2
Rzaleski,

And you tried already to make the waiting on a requesttimeout longer using
the method for that?

Cor

<rz******@gmail.com> schreef in bericht
news:11*********************@i39g2000cwa.googlegro ups.com...
I think I found some more relevant information. The problematic server
is Running Windows 2000 and is using the .NET 1.1 Framework. My local
machine is running Windows XP and is using the .NET 2.0 Framework.

How can I tell IIS to use the .NET 2.0 Framework for only one
application in Windows 2000? In Windows XP (local computer) all I need
to do is change a drop down menu. I don't see that menu in Windows
2000.

May 5 '06 #3
Yes, myRequest.Timeout = 15000. It works fine locally, but not on the
server. I think it has something to do with the Framework version
because when I set my application to use the 1.1 Framework, it doesn't
work locally. How can I tell IIS to use the 2.0 Framework for that
appliation? I can't seem to find the setting.

May 5 '06 #4
Try creating a seperate Application Pool in IIS and assign it to run 2.0 of
the framework. Assign this site to use this application pool.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

<rz******@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
I think I found some more relevant information. The problematic server
is Running Windows 2000 and is using the .NET 1.1 Framework. My local
machine is running Windows XP and is using the .NET 2.0 Framework.

How can I tell IIS to use the .NET 2.0 Framework for only one
application in Windows 2000? In Windows XP (local computer) all I need
to do is change a drop down menu. I don't see that menu in Windows
2000.

May 5 '06 #5
How do I do that?

May 5 '06 #6
I am running Windows 2000, IIS 5.0 BTW.

May 5 '06 #7
Only one application pool is supported in IIS 5.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

<rz******@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
I am running Windows 2000, IIS 5.0 BTW.

May 5 '06 #8
I fixed it. Here is a recap:

Initially the web application was causing a timeout on a
HttpWebRequest. It was not working with the .NET 1.1 Framework. I
upgraded to the .NET 2.0 Framework and I was receiving a "Failed to
access IIS metabase error". I added ASPNET to the operators of the web
server and it worked.

May 5 '06 #9

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

Similar topics

3
by: Jerry Rhodes | last post by:
When I run the code below, the web server tells me that I need to enable cookies. Can anyone tell me what might be causing that? I'm trying to POST userid and password to their login web page. ...
8
by: Soeren S. Joergensen | last post by:
Hi, From a win-service I do a HttpWebRequest to a secure url with some parameters to get some simple data from a remote system used later on in a worker thread. When making the request from...
1
by: Jeff B | last post by:
I'm trying to create a simple screen scraping application and I kept getting a System.Net.WebException thrown back with a message of "The operation has timed-out." At first I thought it was some...
11
by: Keith Patrick | last post by:
Could someone explain to me the relationship between these two classes? I am ripping my hair out trying to divert an HttpRequest to a new location via an HttpWebRequest, but I cannot get my...
1
by: davvel | last post by:
It has been 6 days of re-writing the same code in different ways to try and avoid a getResponse Timeout which haunted me for much too long now. I am trying to do a very simple thing which is...
1
by: Brett | last post by:
I'm checking a URL and logging the results returned from the server. One problem is when a site ask for cookies, my code times out. For example, this link does:...
2
by: GHS | last post by:
I have some code to connect to a website and pull some content out of the HTML. I've verified that the 2 URLs I'm using are perfectly fine in Internet Explorer and both of them return results...
4
by: Natalia | last post by:
Hello, I need to provide the ability to post file and some form elements via our website (asp.net) to the third party website (asp page). On http://aspalliance.com/236#Page4 - I found great...
0
by: joshblair | last post by:
Hello, I am trying to post XML documents to a third party using the HttpWebRequest. This URL uses HTTPS (SSL) but I don't have a client certificate to deal with. Apparently they are using...
0
by: Morgan Cheng | last post by:
In the doc http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.timeout.aspx, it reads, "A Domain Name System (DNS) query may take up to 15 seconds to return or time out. If your...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.