asp.net mvc 4 - Unable to connect web exception mvc4 -


we doing facebook posting application using httpwebrequest.

httpwebrequest request = webrequest.create(url) httpwebrequest; using (httpwebresponse response = request.getresponse() httpwebresponse) {     //doing stuff here. } 

this code failing @ line uisng unable connect server exception. not failing always, failing in 90% cases.

can advise how best can addressed?

try (this may not answer; trying debug issue), see if fails other 1 does; try replacing google.com own url:

webrequest g = httpwebrequest.create("http://www.google.com"); var response = g.getresponse(); 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -