c# - What could stop default proxy being used -
as question manually setting proxy google youtube v3 api has not yielded results. thought ask seperate question causes of proxy not being used are.
as stated in other question, have set following in web.config:
<defaultproxy usedefaultcredentials="false" enabled="true"> <proxy usesystemdefault="false" proxyaddress="http://192.111.111.102:8081" /> </defaultproxy>
which accounts should mean google api use proxy , port stated
yet still getting connection refused error. having looked systems team, looks if request google api doesn't hit proxy @ all.
so new question cause setting ignored , there other way of setting default proxy?
not sure stopping default proxy being used work randomly not on other occasions, in end went coding in redundancy when default proxy failed work:
private videolistresponse getvideolistreponse(string videoids) { // original call videolistresponse response = getvideolistreponsefromapi(videoids); if (response == null) { // if original call fails, use webrequest can set proxy manually return getvideolistreponsefromwebrequest(videoids); } else { return response; } }
Comments
Post a Comment