Click here to Skip to main content
15,902,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncan't make otbound connections Pin
Mridang Agarwalla18-Mar-07 8:11
Mridang Agarwalla18-Mar-07 8:11 
Hi guys,
I'm developing a small site for someone who made the mistake of hosting with GoDaddy. I am unable to make any outbound connections for WebRequest and stuff from Godaddy.

<br />
<br />
String strResult;<br />
<br />
WebResponse objResponse;<br />
<br />
WebRequest objRequest =<br />
System.Net.HttpWebRequest.Create("http://www.google.com");<br />
<br />
objRequest.Proxy = new<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
//objRequest.Proxy = new<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
//objRequest.Proxy = new<br />
WebProxy("http://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
//objRequest.Proxy = new<br />
WebProxy("https://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
objResponse = objRequest.GetResponse();<br />
<br />
// the using keyword will automatically<br />
dispose the object <br />
<br />
// once complete<br />
<br />
using (StreamReader sr = new<br />
StreamReader(objResponse.GetResponseStream()))<br />
<br />
{<br />
<br />
strResult = sr.ReadToEnd();<br />
<br />
// Close and clean up the<br />
StreamReader<br />
<br />
sr.Close();<br />
<br />
}<br />
<br />
Response.Write(strResult);<br />
<br />



I used that code to test f I could make outbound connections. On my IIS it worked fine but when I uploaded it gave "Could not connect kind of error". I did comment out all the Proxy code when I ran it on my IIS. GoDaddy has a Proxy server. I've tried all combinations to make it work but it doesn't. GoDaddy claims its a coding error. Is there a simpler code to test whether I ca n make outbound connections froma particular server or something.
Questiondraw on web form Pin
no need to tell name18-Mar-07 8:10
no need to tell name18-Mar-07 8:10 
GeneralRe: draw on web form Pin
Guffa18-Mar-07 8:46
Guffa18-Mar-07 8:46 
GeneralRe: draw on web form Pin
no need to tell name18-Mar-07 9:06
no need to tell name18-Mar-07 9:06 
GeneralRe: draw on web form Pin
Guffa18-Mar-07 23:28
Guffa18-Mar-07 23:28 
GeneralRe: draw on web form Pin
no need to tell name21-Mar-07 10:53
no need to tell name21-Mar-07 10:53 
AnswerRe: draw on web form Pin
Guffa21-Mar-07 21:43
Guffa21-Mar-07 21:43 
Questionupload xml file Pin
Marwa Bahaa18-Mar-07 4:56
Marwa Bahaa18-Mar-07 4:56 
AnswerRe: upload xml file Pin
Vasudevan Deepak Kumar19-Mar-07 5:37
Vasudevan Deepak Kumar19-Mar-07 5:37 
Questioni want to shar som val Pin
Ahmed El-Badry18-Mar-07 4:20
Ahmed El-Badry18-Mar-07 4:20 
AnswerRe: i want to shar som val Pin
Guffa18-Mar-07 4:42
Guffa18-Mar-07 4:42 
GeneralRe: i want to shar som val Pin
Ahmed El-Badry18-Mar-07 4:48
Ahmed El-Badry18-Mar-07 4:48 
AnswerRe: i want to shar som val Pin
Guffa18-Mar-07 5:14
Guffa18-Mar-07 5:14 
GeneralRe: i want to shar som val Pin
Ahmed El-Badry18-Mar-07 5:26
Ahmed El-Badry18-Mar-07 5:26 
AnswerRe: i want to shar som val Pin
Guffa18-Mar-07 5:51
Guffa18-Mar-07 5:51 
GeneralRe: i want to shar som val Pin
Ahmed El-Badry18-Mar-07 7:19
Ahmed El-Badry18-Mar-07 7:19 
QuestionCSS Pin
monirkuet2418-Mar-07 2:06
monirkuet2418-Mar-07 2:06 
QuestionCollapsible panel extender Pin
yogita charhate17-Mar-07 23:59
yogita charhate17-Mar-07 23:59 
AnswerRe: Collapsible panel extender Pin
Ziyad Mohammad18-Mar-07 20:23
Ziyad Mohammad18-Mar-07 20:23 
Questionpage size based on screen resolution Pin
dasumohan17-Mar-07 20:19
dasumohan17-Mar-07 20:19 
Questiontextbox validation please help Pin
dasumohan17-Mar-07 20:13
dasumohan17-Mar-07 20:13 
AnswerRe: textbox validation please help Pin
Guffa18-Mar-07 4:45
Guffa18-Mar-07 4:45 
GeneralRe: textbox validation please help Pin
dasumohan18-Mar-07 6:14
dasumohan18-Mar-07 6:14 
AnswerRe: textbox validation please help Pin
Guffa18-Mar-07 8:31
Guffa18-Mar-07 8:31 
QuestionUnable to cast object of type 'ASP.client_master' to type 'Master' Pin
Nilesh Thakkar17-Mar-07 19:49
Nilesh Thakkar17-Mar-07 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.