Pergunta

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?

Foi útil?

Solução

Check the message property, I suppose :/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top