HttpWebRequest - Timeout

  • Thread starter Thread starter rzaleski
  • Start date Start date
R

rzaleski

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?
 
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.
 
Rzaleski,

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

Cor
 
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.
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top