68 instantiations of WebException
PresentationCore (1)
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
95throw new WebException(requestUri.ToString(), WebExceptionStatus.RequestCanceled);
System (60)
net\System\Net\_ChunkParser.cs (2)
408throw new WebException(NetRes.GetWebStatusString("net_requestaborted", 525throw new WebException(NetRes.GetWebStatusString("net_requestaborted",
net\System\Net\_CommandStream.cs (2)
161return new WebException( 340exception = new WebException(m_AbortReason);
net\System\Net\_Connection.cs (7)
3012theException = new WebException(errorString, 3020theException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.SecureChannelFailure), 3026theException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.Timeout), 3031theException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), 3039theException = new WebException(NetRes.GetWebStatusString("net_connclosed", m_Error), 3072theException = new WebException(NetRes.GetWebStatusString("net_connclosed", m_Error), 3081WebException pipelineException = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.PipelineFailure),
net\System\Net\_ConnectStream.cs (15)
686WebException we = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.SendFailure), 909throw new WebException( 916throw new WebException( 1019throw new WebException( 1122throw new WebException( 1330throw new WebException( 1391throw new WebException( 1398throw new WebException( 1660throw new WebException( 1667throw new WebException( 1795m_ErrorException = new WebException( 2284e = new WebException( 2291e = new WebException( 2675exceptionOnWrite = new WebException( 2701new WebException(
net\System\Net\_FtpDataStream.cs (1)
102throw new WebException(
net\System\Net\Cache\RequestCacheValidator.cs (1)
187throw new WebException(NetRes.GetWebStatusString("net_requestaborted", webStatus), webStatus);
net\System\Net\connectionpool.cs (2)
513throw new WebException(NetRes.GetWebStatusString("net_timeout", WebExceptionStatus.ConnectFailure), WebExceptionStatus.Timeout); 582m_ResError = new WebException(
net\System\Net\filewebrequest.cs (6)
381Exception e = new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 410Exception e = new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 442Exception ex = new WebException(e.Message, e); 479Exception ex = new WebException(e.Message, e); 523WebException webException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled); 670throw new WebException(
net\System\Net\filewebresponse.cs (1)
62Exception ex = new WebException(e.Message, e, WebExceptionStatus.ConnectFailure, null);
net\System\Net\FtpWebRequest.cs (9)
591throw new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 611webException = new WebException(webException.Message, 838throw new WebException(webException.Message, 911throw new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 1098throw new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 1200throw new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout); 1294m_Exception = new WebException(exception.Message, null, ((WebException)exception).Status, m_FtpWebResponse); 1306m_Exception = new WebException(exception.Message, exception); 1703m_Exception = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled),
net\System\Net\HttpWebRequest.cs (6)
3152webException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled); 3156webException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), exception, WebExceptionStatus.RequestCanceled, _HttpResponse); 3264((HttpWebRequest) context).Abort(new WebException(NetRes.GetWebStatusString(WebExceptionStatus.Timeout), WebExceptionStatus.Timeout), AbortState.Public); 3894E = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), unexpectedException, WebExceptionStatus.RequestCanceled, _HttpResponse); 3905E = new WebException(E.Message, E); 5623e = new WebException(message, innerException, WebExceptionStatus.ProtocolError, _HttpResponse);
net\System\Net\Internal.cs (4)
981return new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.KeepAliveFailure),WebExceptionStatus.KeepAliveFailure, WebExceptionInternalStatus.Isolated, null); 987return new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled); 993return new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.CacheEntryNotFound), WebExceptionStatus.CacheEntryNotFound); 999return new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestProhibitedByCachePolicy), WebExceptionStatus.RequestProhibitedByCachePolicy);
net\System\Net\NetWebProxyFinder.cs (1)
231throw new WebException(NetRes.GetWebStatusString("net_requestaborted",
net\System\Net\ServicePoint.cs (2)
274throw new WebException( 1266exception = new WebException(
net\System\Net\ServicePointManager.cs (1)
713Exception exception = new WebException(NetRes.GetWebStatusString(WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System.Web.Extensions (3)
ClientServices\Providers\ProxyHelper.cs (3)
73throw new WebException(AtlasWeb.ClientService_BadJsonResponse); 85throw new WebException(AtlasWeb.ClientService_BadJsonResponse); 95throw new WebException(String.Format(CultureInfo.CurrentCulture, AtlasWeb.ProxyHelper_BadStatusCode, response.StatusCode.ToString(), GetResponseString(response)), we);
System.Web.Services (4)
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
255throw new WebException(Res.GetString(Res.ThereWasAnErrorDownloading0, url), new WebException(errorMessage, null, WebExceptionStatus.ProtocolError, response));
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
331throw new WebException(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null,
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
598throw new WebException(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null, 620throw new WebException(RequestResponseUtils.CreateResponseExceptionString(httpResponse, responseStream), null,
144 references to WebException
PresentationCore (2)
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (1)
841catch (WebException e)
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
609catch (WebException)
PresentationFramework (5)
src\Framework\System\Windows\Application.cs (1)
829catch (WebException)
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
990if (!(e is System.Net.WebException || e is System.InvalidOperationException))
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
2893catch (WebException e) 3082catch (WebException we) 3105catch (WebException e)
System (86)
net\System\Net\_CommandStream.cs (1)
548if (e is WebException)
net\System\Net\_Connection.cs (10)
1094if (exception is WebException) { 1095ws = ((WebException)exception).Status; 1197WebException webException = exception as WebException; 2808internal bool AbortOrDisassociate(HttpWebRequest request, WebException webException) 2997if (!(theException is WebException) && !(theException is SecurityException)) 3081WebException pipelineException = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.PipelineFailure), 3155if (!(e is WebException) && NetworkStream is TlsStream) 3765if (exception is WebException) { 3766ws = ((WebException)exception).Status;
net\System\Net\_ConnectionGroup.cs (1)
208private bool Abort(HttpWebRequest request, WebException webException)
net\System\Net\_ConnectStream.cs (1)
686WebException we = new WebException(NetRes.GetWebStatusString("net_connclosed", WebExceptionStatus.SendFailure),
net\System\Net\_FtpDataStream.cs (2)
80WebException webException = exception as WebException;
net\System\Net\_ProxyChain.cs (1)
66internal bool HttpAbort(HttpWebRequest request, WebException webException)
net\System\Net\Cache\_RequestCacheProtocol.cs (5)
146if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 230if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 386if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 441if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 542if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
net\System\Net\filewebrequest.cs (1)
523WebException webException = new WebException(NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
net\System\Net\FtpWebRequest.cs (12)
607} catch (WebException webException) { 675WebException webException = exception as WebException; 833} catch (WebException webException) { 857WebException webException = exception as WebException; 1126} catch (WebException webException) { 1248if (!(e is WebException && ((WebException)e).InternalStatus == WebExceptionInternalStatus.Isolated)) 1291if (exception is WebException) 1294m_Exception = new WebException(exception.Message, null, ((WebException)exception).Status, m_FtpWebResponse); 2226private static int GetStatusCode(WebException webException)
net\System\Net\HttpWebRequest.cs (17)
1837WebException webException = exception as WebException; 1864WebException e = exception as WebException; 2095catch (WebException we) { 2290catch (WebException we) { 3149WebException webException = exception as WebException; 3571WebException newException = responseOrException as WebException; 3822WebException webException = _ReadAResult.Result as WebException; 3851WebException webException = HaveResponse ? _ReadAResult.Result as WebException : null; 3852WebException newWebException = E as WebException; 3902if (!(E is WebException) && !(E is SecurityException))
net\System\Net\Internal.cs (5)
979internal static WebException IsolatedException { 985internal static WebException RequestAbortedException { 991internal static WebException CacheEntryNotFoundException { 997internal static WebException RequestProhibitedByCachePolicyException { 1779internal delegate bool HttpAbortDelegate(HttpWebRequest request, WebException webException);
net\System\Net\webclient.cs (23)
360if (!(e is WebException || e is SecurityException)) { 404if (!(e is WebException || e is SecurityException)) { 452if (!(e is WebException || e is SecurityException)) { 507if (!(e is WebException || e is SecurityException)) { 578if (!(e is WebException || e is SecurityException)) { 725if (!(e is WebException || e is SecurityException)) { 813if (!(e is WebException || e is SecurityException)) { 1220if (!(e is WebException || e is SecurityException)) { 1259if (!(e is WebException || e is SecurityException)) { 1485if (!(e is WebException || e is SecurityException)) { 1516if (!(e is WebException || e is SecurityException)) { 1811if (!(e is WebException || e is SecurityException)) { 1844if (!(e is WebException || e is SecurityException)) { 1883if (!(e is WebException || e is SecurityException)) { 1926if (!(e is WebException || e is SecurityException)) { 1994if (!(e is WebException || e is SecurityException)) { 2048if (!(e is WebException || e is SecurityException)) { 2110if (!(e is WebException || e is SecurityException)) { 2144if (!(e is WebException || e is SecurityException)) { 2226if (!(e is WebException || e is SecurityException)) { 2322if (!(e is WebException || e is SecurityException)) { 2425if (!(e is WebException || e is SecurityException)) { 2521if (!(e is WebException || e is SecurityException)) {
net\System\Net\WebException.cs (5)
48/// Creates a new instance of the <see cref='System.Net.WebException'/> 61/// Creates a new instance of the <see cref='System.Net.WebException'/> class with the specified error 71/// Creates a new instance of the <see cref='System.Net.WebException'/> class with the specified error 90/// Creates a new instance of the <see cref='System.Net.WebException'/> class with the specified error 103/// Creates a new instance of the <see cref='System.Net.WebException'/> class with the specified error
net\System\Net\WebSockets\ClientWebSocket.cs (1)
182catch (WebException ex)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
365error is WebException ||
System.Data.Services.Client (9)
System\Data\Services\Client\DataServiceContext.cs (3)
1059/// <exception cref="WebException">failure to get response for requestUri</exception> 5921catch (WebException e) 6244catch (WebException)
System\Data\Services\Client\GetReadStreamResult.cs (2)
110catch (System.Net.WebException ex) 183catch (WebException e)
System\Data\Services\Client\QueryResult.cs (2)
222catch (WebException ex) 558catch (WebException e)
System\Data\Services\Client\WebUtil.cs (2)
91WebException webexception = (exception as WebException);
System.Net (1)
AssemblyInfo.cs (1)
38[assembly: TypeForwardedToAttribute(typeof(System.Net.WebException))]
System.Runtime.Remoting (3)
channels\http\httpclientchannel.cs (3)
489catch (WebException webException) 508private static void ProcessResponseException(WebException webException, out HttpWebResponse response) 1080catch (WebException webException)
System.ServiceModel (31)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (4)
63catch (WebException ex) 101catch (WebException ex) 151catch (WebException ex) 203static void TryConvertAndThrow(WebException ex)
System\ServiceModel\Channels\HttpChannelFactory.cs (7)
1299WebException responseException = null; 1329catch (WebException webException) 1635catch (WebException webException) 1660WebException responseException = null; 1692catch (WebException webException) 1759bool ProcessResponse(HttpWebResponse response, WebException responseException) 1880catch (WebException webException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (20)
46WebException webException; 76internal WebException WebException 988catch (WebException webException) 1008catch (WebException webException) 1028catch (WebException webException) 1049catch (WebException webException) 2491catch (WebException webException) 2739catch (WebException webException) 2759catch (WebException webException) 2824catch (WebException webException) 2857catch (WebException webException) 2877catch (WebException webException) 2897catch (WebException webException) 3500public static HttpWebResponse ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) 3588public static Exception ConvertWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) 3635public static Exception CreateResponseWebException(WebException webException, HttpWebResponse response) 3686public static Exception CreateRequestWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) 3714static Exception CreateUnexpectedResponseException(WebException responseException, HttpWebResponse response) 3778WebException responseException, HttpChannelFactory<IRequestChannel> factory) 3823HttpChannelFactory<IRequestChannel> factory, WebException responseException, ChannelBinding channelBinding)
System.Web.Extensions (2)
ClientServices\Providers\ClientSettingsProvider.cs (1)
595catch (WebException) {
ClientServices\Providers\ProxyHelper.cs (1)
91} catch(WebException we) {
System.Web.Services (5)
System\Web\Services\Protocols\ClientProtocol.cs (5)
257WebException webException = e as WebException; 294WebException we = e as WebException; 449catch (WebException e) {