문제

SoapHttpClientProtocol throws a WebException with status NameResolutionFailure when the proxy name is invalid. How then can I tell if it's the proxy or the destination that is in err?

I'd rather not perform a check if the proxy server exists when a NameResolutionFailure shows up. The only think I can think to do is check the WebException.message property and see if it contains the proxy name vs. the destination name, but this seems icky. Is it the best available?

도움이 되었습니까?

해결책

Check the message property, I suppose :/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top