Deploying ASP.NET 2.0

Last post 01-09-2006 7:07 PM by donkiely. 2 replies.

Sort Posts:

  • Deploying ASP.NET 2.0

    11-25-2005, 7:51 PM
    • Loading...
    • keviny
    • Joined on 11-26-2005, 12:48 AM
    • Posts 1
    Hi,

    Hope someone can help us with this problem.  This is our first endeavour into .NET 2.0 :-)

    BACKGROUD INFO:
    ----------------------
    We've built a website using .NET 2.0 and deployed onto our webserver. This webpage simply calls some web services (built with .NET 1.1)
    running on the same web server. The webservice executes SQL transactions to a SQL Server which sits behind our company firewall.

    PROBLEM:
    ----------------------
    Everytime a form is submitted (a web service call happens here), it's trying to connect to a proxy server which no longer exist!!
    This was verified by our network team. (Please see below for error message and stack trace).


    OTHER NOTES:
    ------------------
    Numerous pages have been built using .NET 1.1 running on the same webserver and we've never encountered this problem.

    TESTING DONE:
    -------------------
    To test that it's not something wrong with the webservice, we've built a simple web page using .NET 1.1 which calls the same webservice,
    depoyed it onto the webserver, a request was made and it was successful.

    We've also ran this website in question from a internal webserver, and did not encounter this problem.

    QUESTIONS:
    -------------------
    1)Is there any differences in the way a ASP.NET page built on .NET 2.0 and .NET 1.1 makes it's call to a webservice??

    2)Where is the ASP page picking up this proxy settings from? ASPNET account??

    3)Is there a way to overcome this proxy problem from our ASP.NET code?

    Many Thanks,
    Kevin

    *********************************************************
    ERROR MESSAGE:

    "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond "

    STACK TRACE:

    "[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time,
    or established connection failed because connected host has failed to respond]
       System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002130
       System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
       System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address,
    ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431

    [WebException: Unable to connect to the remote server]
       System.Net.HttpWebRequest.GetRequestStream() +1504509
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +103
       CustomerService.CustomerService.ValidateLogin(String dbID, String login, String passwd, String appln, DataSet& dsRole, DataSet& dsOperator) +95
       _Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e) +147
       System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +106
       System.Web.UI.WebControls.Login.AttemptLogin() +105
       System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
    "


  • Re: Deploying ASP.NET 2.0

    12-19-2005, 3:17 PM
    • Loading...
    • anantatman
    • Joined on 07-30-2002, 3:48 AM
    • DC
    • Posts 364
    When you add a remote webservice as a reference in 1.1, it creates a proxy class from the WSDL.
    It might not be updated.

    Rahul

    Rahul Singh
    CEO, Anant
    Blog
  • Re: Deploying ASP.NET 2.0

    01-09-2006, 7:07 PM
    • Loading...
    • donkiely
    • Joined on 06-18-2002, 2:28 PM
    • Fairbanks, Alaska
    • Posts 2,159
    • Moderator
      TrustedFriends-MVPs
    Did you get this resolved? If not, check out Rick Stahl's blog post, Slow Http client calls from ASP.NET 2.0? Make sure you check your Proxy Settings!
    Don Kiely, MCP, MCSD
    In the Last Frontier, Interior Alaska
    Please post questions and replies to the forum! And remember to MARK AS ANSWER when someone definitively answers a question or resolves a problem!
Page 1 of 1 (3 items)