GibbsUSA.net Blogs  

Tuesday, February 07, 2012

 Logon   Back to Blog   Blogs Home   GibbsUSA.net Home  


Archives
 Home... 
 May 2008 (1) 
 August 2007 (2) 
 December 2006 (1) 
 October 2006 (5) 
 

Leave your comments...

12/15/2006 8:20 AM: ASP.NET Error: No connection could be made because the target machine actively refused it

The answer for us was...USE A PROXY!!! GibbsUSA.net smilie: confused


Uri myuri = new Uri("http://" + System.Web.HttpContext.Current.Request.ServerVariables.Get("HTTP_HOST") + "/" + Request.QueryString["source"].ToString());
WebRequest myRequest = System.Net.HttpWebRequest.Create(myuri);
System.Net.IWebProxy proxyObject = new System.Net.WebProxy("http://dummy:80", true);
myRequest.Credentials = System.Net.CredentialCache.DefaultCredentials;
myRequest.Proxy = proxyObject;
Stream result = myRequest.GetResponse().GetResponseStream();
navDocument.Load(result);
Print >>> EMail >>>

Comments:
Please log on to the GibbsUSA site to post comments...

 

Join Chris on Facebook 
CLR v2.0.50727.3625


Please see the site Terms And Conditions and the site Privacy Statement.
This entire web site (and the software contents therein) is Copyright © Chris Gibbs 2000-2012.
Any reproduction or copying is expressly forbidden without the prior consent of Chris Gibbs.
For more information, please contact the site WebMaster (WebMaster@GibbsUSA.net).