195 references to SR
System.Net.Requests (195)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (2)
134throw new InvalidOperationException(SR.net_completed_result); 157throw new InvalidOperationException(SR.net_completed_result);
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (8)
13throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 19throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 71throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 81throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value)); 89throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 95throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value));
System\Net\Cache\HttpRequestCachePolicy.cs (4)
38throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl)); 64throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl));
System\Net\CommandStream.cs (7)
144return new WebException(SR.Format(SR.net_ftp_servererror, NetRes.GetWebStatusCodeString(code, statusDescription)), 319exception = GenerateException(SR.net_ftp_protocolerror, WebExceptionStatus.ServerProtocolViolation, null); 546throw GenerateException(SR.net_ftp_receivefailure, WebExceptionStatus.ReceiveFailure, e); 582throw GenerateException(SR.net_ftp_protocolerror, WebExceptionStatus.ServerProtocolViolation, null); 591throw GenerateException(SR.net_ftp_protocolerror, WebExceptionStatus.ServerProtocolViolation, null); 605throw GenerateException(SR.net_ftp_protocolerror, WebExceptionStatus.ServerProtocolViolation, null);
System\Net\ExceptionHelper.cs (3)
8internal static NotSupportedException PropertyNotSupportedException => new NotSupportedException(SR.net_PropertyNotSupportedException); 10internal static WebException RequestAbortedException => new WebException(SR.net_reqaborted); 12internal static WebException TimeoutException => new WebException(SR.net_timeout);
System\Net\FileWebRequest.cs (13)
103throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 112new WebException(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled); 124throw new ProtocolViolationException(SR.net_nouploadonget); 129throw new InvalidOperationException(SR.net_reqsubmitted); 136throw new InvalidOperationException(SR.net_repcall); 188throw new InvalidOperationException(SR.net_repcall); 261throw new WebException(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout); 277throw new WebException(SR.net_webstatus_Timeout, WebExceptionStatus.Timeout); 291get { throw new NotSupportedException(SR.net_PropertyNotSupportedException); } 292set { throw new NotSupportedException(SR.net_PropertyNotSupportedException); } 468throw new WebException(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System\Net\FtpControlStream.cs (22)
115throw new WebException(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError); 261throw new WebException(SR.net_InvalidStatusCode, WebExceptionStatus.ProtocolError); 353_abortReason = SR.Format(SR.net_ftp_invalid_status_response, status, entry.Command); 568throw new WebException(SR.net_ftp_invalid_uri); 678_abortReason = SR.Format(SR.net_ftp_server_failed_passive, response.Status); 748throw new WebException(SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError); 910throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 996throw new FormatException(SR.Format(SR.net_ftp_invalid_response_filename, filename)); 1003throw new FormatException(SR.Format(SR.net_ftp_invalid_response_filename, filename)); 1062throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 1084throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 1091throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 1141throw GenerateException(SR.net_ftp_protocolerror, WebExceptionStatus.ProtocolError, e); // could not open data connection 1152throw new FormatException(SR.net_ftp_no_newlines);
System\Net\FtpWebRequest.cs (36)
104throw new ArgumentException(SR.net_ftp_unsupported_method, nameof(method)); 271throw new InvalidOperationException(SR.net_reqsubmitted); 279throw new ArgumentException(SR.net_ftp_unsupported_method, nameof(value)); 301throw new InvalidOperationException(SR.net_reqsubmitted); 324throw new InvalidOperationException(SR.net_reqsubmitted); 329throw new ArgumentException(SR.net_ftp_no_defaultcreds, nameof(value)); 359throw new InvalidOperationException(SR.net_reqsubmitted); 363throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 397throw new InvalidOperationException(SR.net_reqsubmitted); 401throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 420throw new InvalidOperationException(SR.net_reqsubmitted); 452throw new InvalidOperationException(SR.net_reqsubmitted); 469throw new InvalidOperationException(SR.net_reqsubmitted); 493throw new FormatException(SR.net_ftp_no_newlines); 537throw new InvalidOperationException(SR.net_repcall); 622throw new InvalidOperationException(SR.net_repcall); 689throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 693throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetResponse")); 720throw new InvalidOperationException(SR.net_repcall); 725throw new ProtocolViolationException(SR.net_nouploadonget); 773throw new InvalidOperationException(SR.net_repcall); 778throw new ProtocolViolationException(SR.net_nouploadonget); 812throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 817throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetResponse")); 922SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new WebException(SR.net_timeout, WebExceptionStatus.Timeout))); 941return new WebException(SR.net_webstatus_NameResolutionFailure, WebExceptionStatus.NameResolutionFailure); 945return new WebException(SR.net_webstatus_ConnectFailure, WebExceptionStatus.ConnectFailure); 1116_exception = new WebException(SR.Format(SR.net_ftp_servererror, connection.StatusLine), exception, WebExceptionStatus.ProtocolError, _ftpWebResponse); 1470throw new InvalidOperationException(SR.net_reqsubmitted); 1487throw new InvalidOperationException(SR.net_reqsubmitted); 1507throw new InvalidOperationException(SR.net_reqsubmitted); 1523throw new InvalidOperationException(SR.net_reqsubmitted); 1555throw new InvalidOperationException(SR.net_reqsubmitted);
System\Net\HttpWebRequest.cs (44)
255throw new InvalidOperationException(SR.net_reqsubmitted); 297throw new InvalidOperationException(SR.net_reqsubmitted); 301throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 317throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero); 336throw new InvalidOperationException(SR.net_writestarted); 376throw new InvalidOperationException(SR.net_writestarted); 383throw new ArgumentException(SR.net_invalid_host, nameof(value)); 477throw new ArgumentException(SR.net_nochunked, nameof(value)); 481throw new InvalidOperationException(SR.net_needchunked); 522throw new InvalidOperationException(SR.net_writestarted); 615throw new ArgumentException(SR.net_connarg, nameof(value)); 664throw new ArgumentException(SR.net_no100, nameof(value)); 763throw new InvalidOperationException(SR.net_writestarted); 836throw new ArgumentException(SR.net_wrongversion, nameof(value)); 851throw new InvalidOperationException(SR.net_reqsubmitted); 856throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_gt_zero); 906throw new InvalidOperationException(SR.net_reqsubmitted); 937throw new ArgumentException(SR.net_badmethod, nameof(value)); 969throw new InvalidOperationException(SR.net_writestarted); 989throw new InvalidOperationException(SR.net_reqsubmitted); 1081throw new ProtocolViolationException(SR.net_nouploadonget); 1086throw new InvalidOperationException(SR.net_reqsubmitted); 1146throw new InvalidOperationException(SR.net_repcall); 1163throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 1168throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetRequestStream")); 1188throw new InvalidOperationException(SR.net_reqsubmitted); 1278SR.Format(SR.net_servererror, (int)response.StatusCode, response.StatusDescription), 1330throw new WebException(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound); 1386throw new WebException(SR.CacheEntryNotFound, WebExceptionStatus.CacheEntryNotFound); 1419throw new InvalidOperationException(SR.net_repcall); 1434throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 1439throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetResponse")); 1514throw new ArgumentOutOfRangeException(from < 0 ? nameof(from) : nameof(to), SR.net_rangetoosmall); 1518throw new ArgumentOutOfRangeException(nameof(from), SR.net_fromto); 1522throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier)); 1526throw new InvalidOperationException(SR.net_rangetype); 1541throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier)); 1545throw new InvalidOperationException(SR.net_rangetype); 1586throw new WebException(SR.net_reqaborted, WebExceptionStatus.RequestCanceled); 1630throw new ProtocolViolationException(SR.net_baddate); 1832throw new OverflowException(SR.net_maximumbindretries);
System\Net\HttpWebResponse.cs (1)
158throw new ProtocolViolationException(SR.net_baddate);
System\Net\NetRes.cs (16)
18statusMessage = SR.net_ftpstatuscode_ServiceNotAvailable; 21statusMessage = SR.net_ftpstatuscode_CantOpenData; 24statusMessage = SR.net_ftpstatuscode_ConnectionClosed; 27statusMessage = SR.net_ftpstatuscode_ActionNotTakenFileUnavailableOrBusy; 30statusMessage = SR.net_ftpstatuscode_ActionAbortedLocalProcessingError; 33statusMessage = SR.net_ftpstatuscode_ActionNotTakenInsufficientSpace; 36statusMessage = SR.net_ftpstatuscode_CommandSyntaxError; 39statusMessage = SR.net_ftpstatuscode_ArgumentSyntaxError; 42statusMessage = SR.net_ftpstatuscode_CommandNotImplemented; 45statusMessage = SR.net_ftpstatuscode_BadCommandSequence; 48statusMessage = SR.net_ftpstatuscode_NotLoggedIn; 51statusMessage = SR.net_ftpstatuscode_AccountNeeded; 54statusMessage = SR.net_ftpstatuscode_ActionNotTakenFileUnavailable; 57statusMessage = SR.net_ftpstatuscode_ActionAbortedUnknownPageType; 60statusMessage = SR.net_ftpstatuscode_FileActionAborted; 63statusMessage = SR.net_ftpstatuscode_ActionNotTakenFilenameNotAllowed;
System\Net\ServicePoint\ServicePointManager.cs (1)
46throw new NotSupportedException(SR.net_securityprotocolnotsupported);
System\Net\WebException.cs (1)
94SR.net_webstatus_Timeout,
System\Net\WebRequest.cs (30)
138throw new NotSupportedException(SR.net_unknown_prefix); 211throw new NotSupportedException(SR.net_unknown_prefix); 387throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 391throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 399throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 403throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 411throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 419throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 423throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 431throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 435throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 443throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 447throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 456throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 460throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 468throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 472throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 480throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 484throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 490throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 495throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 500throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 505throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 510throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 515throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 542throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 567throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 571throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 579throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 583throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException);
System\Net\WebResponse.cs (7)
77throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 81throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 95throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 99throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 114throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); 125throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); 139throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException);