17 instantiations of HttpListenerException
System.Net.HttpListener (17)
System\Net\Managed\ChunkedInputStream.cs (1)
171
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.Format(SR.net_io_operation_aborted, ares._error.Message));
System\Net\Managed\HttpEndPointListener.cs (2)
267
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.Format(SR.net_listener_already, prefix));
354
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.Format(SR.net_listener_already, prefix));
System\Net\Managed\HttpEndPointManager.cs (7)
91
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.net_invalid_port);
97
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.net_listener_host);
100
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.net_invalid_path);
103
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest, SR.net_invalid_path);
127
throw new
HttpListenerException
(NotSupportedErrorCode, SR.net_listener_not_supported);
133
throw new
HttpListenerException
(NotSupportedErrorCode, SR.net_listener_not_supported);
161
throw new
HttpListenerException
(ex.ErrorCode, ex.Message);
System\Net\Managed\HttpRequestStream.Managed.cs (2)
119
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest);
205
throw new
HttpListenerException
((int)HttpStatusCode.BadRequest);
System\Net\Managed\HttpResponseStream.Managed.cs (3)
152
throw new
HttpListenerException
(ex.HResult, ex.Message);
254
throw new
HttpListenerException
(ex.HResult, ex.Message);
292
throw new
HttpListenerException
(ex.HResult, ex.Message);
System\Net\Managed\ListenerAsyncResult.Managed.cs (2)
71
_exception = new
HttpListenerException
((int)SocketError.OperationAborted, SR.net_listener_close);
171
Complete(new
HttpListenerException
((int)HttpStatusCode.Unauthorized, SR.net_listener_auth_errors));
10 references to HttpListenerException
Aspire.Acquisition.Tests (4)
Scripts\Common\ScriptHostFixture.cs (4)
66
catch (
HttpListenerException
) when (attempt < maxRetries - 1)
100
catch (
HttpListenerException
)
129
catch (
HttpListenerException
)
154
catch (
HttpListenerException
)
dotnet-aot (2)
parent\dotnet\Commands\Test\MTP\IPC\HttpTestHostGateway.cs (2)
65
catch (
HttpListenerException
) when (attempt + 1 < maximumAttempts)
94
catch (
HttpListenerException
) when (cancellationToken.IsCancellationRequested || !_listener.IsListening)
Infrastructure.Tests (1)
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
550
catch (
HttpListenerException
) { return; }
netstandard (1)
netstandard.cs (1)
1143
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
HttpListenerException
))]
System (1)
parent\ref\System.cs (1)
628
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
HttpListenerException
))]
System.Net.HttpListener (1)
System\Net\Managed\HttpResponseStream.Managed.cs (1)
84
catch (
HttpListenerException
)