14 types derived from CommunicationException
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\AddressAccessDeniedException.cs (1)
9public class AddressAccessDeniedException : CommunicationException
System.ServiceModel.Primitives (13)
System\ServiceModel\ActionNotSupportedException.cs (1)
12public class ActionNotSupportedException : CommunicationException
System\ServiceModel\ChannelTerminatedException.cs (1)
10public class ChannelTerminatedException : CommunicationException
System\ServiceModel\CommunicationObjectAbortedException.cs (1)
10public class CommunicationObjectAbortedException : CommunicationException
System\ServiceModel\CommunicationObjectFaultedException.cs (1)
10public class CommunicationObjectFaultedException : CommunicationException
System\ServiceModel\EndpointNotFoundException.cs (1)
10public class EndpointNotFoundException : CommunicationException
System\ServiceModel\FaultException.cs (1)
19public class FaultException : CommunicationException
System\ServiceModel\MustUnderstandSoapException.cs (1)
14internal class MustUnderstandSoapException : CommunicationException
System\ServiceModel\ProtocolException.cs (1)
12public class ProtocolException : CommunicationException
System\ServiceModel\Security\MessageSecurityException.cs (1)
10public class MessageSecurityException : CommunicationException
System\ServiceModel\Security\SecurityAccessDeniedException.cs (1)
10public class SecurityAccessDeniedException : CommunicationException
System\ServiceModel\Security\SecurityNegotiationException.cs (1)
10public class SecurityNegotiationException : CommunicationException
System\ServiceModel\ServerTooBusyException.cs (1)
11public class ServerTooBusyException : CommunicationException
System\ServiceModel\ServiceActivationException.cs (1)
10public class ServiceActivationException : CommunicationException
84 instantiations of CommunicationException
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
194throw new CommunicationException(InternalSR.AsyncCallbackThrewException, e);
System.ServiceModel.Http (8)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (3)
259throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketVersionMismatchFromServer, ""), ex)); 261throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketSubProtocolMismatchFromServer, ""), ex)); 266throw FxTrace.Exception.AsError(new CommunicationException(ex.Message, ex));
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(requestException.Message, requestException)); 149return new CommunicationException(SR.Format(SR.HttpReceiveFailure, request.RequestUri), exception); 159return new CommunicationException(exception.Message, exception);
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
269throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
185return new CommunicationException(exception.Message, exception);
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\Connection.cs (2)
356return new CommunicationException(ioException.InnerException.Message, ioException); 360return new CommunicationException(SR.StreamError, ioException);
System\ServiceModel\Channels\FramingDecoders.cs (4)
284return new CommunicationException(SR.Format(SR.Sharing_ConnectionDispatchFailed, via)); 293return new CommunicationException(inner.Message, inner); 306return new CommunicationException(inner.Message, inner); 311return new CommunicationException(inner.Message, inner);
System.ServiceModel.NetNamedPipe (3)
System\ServiceModel\Channels\PipeConnection.cs (2)
101return new CommunicationException(_timeoutErrorString, pipeException); 110return new CommunicationException(exceptionMessage, pipeException);
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
36return new CommunicationException(
System.ServiceModel.NetTcp (6)
System\ServiceModel\Channels\SocketConnection.cs (6)
362new CommunicationException(SR.Format(SR.SocketCloseReadReceivedData, _socket.RemoteEndPoint))); 713CommunicationException communicationException = new CommunicationException(SR.Format(SR.TcpConnectionResetError, timeout), originalException); 730CommunicationException communicationException = new CommunicationException(SR.Format(SR.TcpTransferError, socketException.ErrorCode, socketException.Message), originalException); 750return new CommunicationException(timeoutErrorString, originalException); 863return new CommunicationException(SR.Format(SR.TcpConnectError, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message), innerException); 867return new CommunicationException(SR.Format(SR.TcpConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message, timeSpent), innerException);
System.ServiceModel.Primitives (51)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
465throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
276e = new CommunicationException(exceptionMessage);
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (3)
706exception = new CommunicationException(SRP.EarlySecurityFaulted, exception); 836ReliableSession.OnLocalFault(new CommunicationException(SRP.MaximumRetryCountExceeded, _maxRetryCountException), 949Exception e = new CommunicationException(SRP.EarlySecurityClose);
System\ServiceModel\Channels\CommunicationObject.cs (1)
480return new CommunicationException(SRP.Format(SRP.CommunicationObjectCloseInterrupted1, GetCommunicationObjectType().ToString()));
System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
94return new CommunicationException(message, inner); 107return new CommunicationException(message, inner);
System\ServiceModel\Channels\Message.cs (6)
1296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageVersionUnknown)); 1301throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageBodyMissing)); 1312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageBodyMissing)); 1353new CommunicationException(versionMismatchException.Message, versionMismatchException), 1581new CommunicationException(versionMismatchException.Message, versionMismatchException), 2006throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System\ServiceModel\Channels\MessageFault.cs (3)
110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Channels\MtomMessageEncoder.cs (4)
219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 649throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 654throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (2)
882new CommunicationException(exception.Message, exception)); 1860return new CommunicationException(reason);
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (3)
234exception = new CommunicationException(SRP.EarlySecurityFaulted, exception); 287_session.OnLocalFault(new CommunicationException(SRP.MaximumRetryCountExceeded, _maxRetryCountException), 832Exception e = new CommunicationException(SRP.EarlySecurityClose);
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (2)
243exception = new CommunicationException(SRP.EarlySecurityFaulted, exception); 285session.OnLocalFault(new CommunicationException(SRP.MaximumRetryCountExceeded, maxRetryCountException),
System\ServiceModel\Channels\ServiceChannel.cs (2)
765throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.SFxServerDidNotReply)); 1982throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.SFxServerDidNotReply));
System\ServiceModel\Channels\WsrmFault.cs (2)
116return new CommunicationException(message); 672return new CommunicationException(message);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (2)
498CommunicationException error = new CommunicationException(SRP.SFxOneWayMessageToTwoWayMethod0); 507CommunicationException error = new CommunicationException(SRP.SFxRequestReplyNone);
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
505throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 515throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 567throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.FailToReceiveReplyFromNegotiation));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new CommunicationException(SRP.OutputNotExpected));
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.FailToReceiveReplyFromNegotiation));
System\ServiceModel\Security\TimeBoundedCache.cs (1)
399throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System.ServiceModel.Primitives.Tests (3)
ServiceModel\ChannelFactoryTest.cs (1)
309customBinding.Elements.Insert(0, new ThrowingOnCloseBindingElement(new CommunicationException(nameof(ChannelFactory_AsyncDisposable_NoThrow)), false));
ServiceModel\ClientBaseTest.cs (1)
199customBinding.Elements.Insert(0, new ThrowingOnCloseBindingElement(new CommunicationException(nameof(ClientBaseDisposeAsyncNoThrow)), channelThrows));
ServiceModel\ThrowingOnCloseBindingElement.cs (1)
18_exception = new CommunicationException("Unspecified communication exception");
System.ServiceModel.UnixDomainSocket (6)
System\ServiceModel\Channels\SocketConnection.cs (6)
341new CommunicationException(SR.Format(SR.SocketCloseReadReceivedData, _socket.RemoteEndPoint))); 677CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSConnectionResetError, timeout), originalException); 694CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSTransferError, socketException.ErrorCode, socketException.Message), originalException); 714return new CommunicationException(timeoutErrorString, originalException); 828return new CommunicationException(SR.Format(SR.UDSConnectError, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message), innerException); 832return new CommunicationException(SR.Format(SR.UDSConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message, timeSpent), innerException);
65 references to CommunicationException
Binding.ReliableSession.IntegrationTests (2)
NetHttpBindingTests.cs (1)
249await Assert.ThrowsAsync<CommunicationException>(() => resultTask);
WSHttpBindingTests.cs (1)
248await Assert.ThrowsAsync<CommunicationException>(() => resultTask);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
114catch (System.ServiceModel.CommunicationException)
Client.ClientBase.IntegrationTests (5)
SessionTests.cs (5)
192catch(CommunicationException) 356ResultsVerificationHelper<CommunicationException>( 384ResultsVerificationHelper<CommunicationException>(canMakeServiceCall: false, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 441Assert.Throws<CommunicationException>(() => 474Assert.True(e is CommunicationException);
Client.ExpectedExceptions.IntegrationTests (5)
ExpectedExceptionTests.4.1.0.cs (5)
130CommunicationException exception = Assert.Throws<CommunicationException>(() => 356catch (CommunicationException exception) 398catch (CommunicationException exception) 445catch (CommunicationException exception)
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
455catch (CommunicationException)
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
209catch (CommunicationException)
Security.TransportSecurity.IntegrationTests (8)
Https\HttpsTests.4.1.1.cs (2)
83CommunicationException communicationException = null; 104catch (CommunicationException ce)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (4)
70catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException) 72if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 147catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException) 149if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
Tcp\ClientCredentialTypeTests.4.1.1.cs (2)
81CommunicationException communicationException = null; 102catch (CommunicationException ce)
System.ServiceModel (1)
netstandard.cs (1)
104[assembly: TypeForwardedTo(typeof(CommunicationException))]
System.ServiceModel.Http (4)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
89catch (CommunicationException) 107catch (CommunicationException)
System\ServiceModel\Channels\WebSocketHelper.cs (2)
192throw FxTrace.Exception.AsError<CommunicationException>(task.Exception); 205return FxTrace.Exception.AsError<CommunicationException>(task.Exception);
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\Connection.cs (1)
354else if (ioException.InnerException is CommunicationException)
System\ServiceModel\Channels\ConnectionPool.cs (1)
179catch (CommunicationException)
System\ServiceModel\Channels\ConnectionPoolHelper.cs (2)
75catch (CommunicationException) 210catch (CommunicationException /*e*/)
System\ServiceModel\Channels\ConnectionUtilities.cs (1)
21catch (CommunicationException)
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
74catch (CommunicationException)
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnection.cs (1)
320catch (CommunicationException e)
System.ServiceModel.NetTcp (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
713CommunicationException communicationException = new CommunicationException(SR.Format(SR.TcpConnectionResetError, timeout), originalException); 730CommunicationException communicationException = new CommunicationException(SR.Format(SR.TcpTransferError, socketException.ErrorCode, socketException.Message), originalException);
System.ServiceModel.Primitives (26)
System\ServiceModel\ChannelFactory.cs (1)
160catch (CommunicationException)
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
447return (e is CommunicationException)
System\ServiceModel\Channels\RequestContextBase.cs (1)
314catch (CommunicationException)
System\ServiceModel\Channels\ServiceChannel.cs (4)
842catch (CommunicationException) { } 872catch (CommunicationException) { } 913catch (CommunicationException) 1700catch (CommunicationException)
System\ServiceModel\Channels\WsrmFault.cs (3)
94public virtual CommunicationException CreateException() 119public static CommunicationException CreateException(WsrmFault fault) 658public override CommunicationException CreateException()
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
526catch (CommunicationException exception)
System\ServiceModel\ClientBase.cs (2)
194(ex is CommunicationException || 487catch (CommunicationException)
System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (3)
73catch (CommunicationException e) 111catch (CommunicationException e) 156catch (CommunicationException e)
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (4)
198catch (CommunicationException e) 238catch (CommunicationException e) 498CommunicationException error = new CommunicationException(SRP.SFxOneWayMessageToTwoWayMethod0); 507CommunicationException error = new CommunicationException(SRP.SFxRequestReplyNone);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
509catch (CommunicationException)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
880if ((e is CommunicationException) || (e is TimeoutException) || (Fx.IsFatal(e)) || !ShouldWrapException(e)) 1684catch (CommunicationException) 1701catch (CommunicationException)
System\ServiceModel\Security\SecurityUtils.cs (2)
584catch (CommunicationException) 610catch (CommunicationException)
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
677CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSConnectionResetError, timeout), originalException); 694CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSTransferError, socketException.ErrorCode, socketException.Message), originalException);