HttpWebRequest - Timeout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rzaleski@gmail.com

    #1

    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?

  • rzaleski@gmail.com

    #2
    Re: HttpWebRequest - Timeout

    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.

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: HttpWebRequest - Timeout

      Rzaleski,

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

      Cor

      <rzaleski@gmail .com> schreef in bericht
      news:1146776040 .321417.54400@i 39g2000cwa.goog legroups.com...[color=blue]
      >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.
      >[/color]


      Comment

      • rzaleski@gmail.com

        #4
        Re: HttpWebRequest - Timeout

        Yes, myRequest.Timeo ut = 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.

        Comment

        • vbnetdev

          #5
          Re: HttpWebRequest - Timeout

          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




          <rzaleski@gmail .com> wrote in message
          news:1146776040 .321417.54400@i 39g2000cwa.goog legroups.com...[color=blue]
          >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.
          >[/color]


          Comment

          • rzaleski@gmail.com

            #6
            Re: HttpWebRequest - Timeout

            How do I do that?

            Comment

            • rzaleski@gmail.com

              #7
              Re: HttpWebRequest - Timeout

              I am running Windows 2000, IIS 5.0 BTW.

              Comment

              • vbnetdev

                #8
                Re: HttpWebRequest - Timeout

                Only one application pool is supported in IIS 5.



                --
                Get a powerful web, database, application, and email hosting with KJM
                Solutions




                <rzaleski@gmail .com> wrote in message
                news:1146845766 .390583.135870@ j73g2000cwa.goo glegroups.com.. .[color=blue]
                >I am running Windows 2000, IIS 5.0 BTW.
                >[/color]


                Comment

                • rzaleski@gmail.com

                  #9
                  Re: HttpWebRequest - Timeout

                  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.

                  Comment

                  Working...