261 references to Assert
System (261)
net\System\Net\_AuthenticationManager2.cs (1)
265
GlobalLog.
Assert
(
net\System\Net\_AuthenticationManagerDefault.cs (1)
412
GlobalLog.
Assert
(
net\System\Net\_AutoWebProxyScriptEngine.cs (2)
53
GlobalLog.
Assert
(proxy != null, "'proxy' must be assigned.");
313
GlobalLog.
Assert
(syncStatus == SyncStatus.LockOwner, "AutoWebProxyScriptEngine#{0}::Close()|Failed to acquire lock.", ValidationHelper.HashString(this));
net\System\Net\_BasicClient.cs (4)
21
GlobalLog.
Assert
(credentials != null, "BasicClient::Authenticate()|credentials == null");
32
GlobalLog.
Assert
(httpWebRequest != null, "BasicClient::Authenticate()|httpWebRequest == null");
59
GlobalLog.
Assert
(credentials != null, "BasicClient::Authenticate()|credentials == null");
70
GlobalLog.
Assert
(httpWebRequest != null, "BasicClient::Authenticate()|httpWebRequest == null");
net\System\Net\_BufferOffsetSize.cs (1)
21
GlobalLog.
Assert
(buffer != null && buffer.Length >= size + offset, "BufferOffsetSize::.ctor|Illegal parameters.");
net\System\Net\_Connection.cs (14)
1279
GlobalLog.
Assert
(startRequestResult != TriState.Unspecified, "WriteStartNextRequest got TriState.Unspecified from StartRequest, things are about to hang!");
1380
GlobalLog.
Assert
(currentCount >= 0, "m_ReservedCount must not be < 0 when decremented.");
1488
GlobalLog.
Assert
(startRequestResult != TriState.Unspecified, "ReadStartNextRequest got TriState.Unspecified from StartRequest, things are about to hang!");
1555
GlobalLog.
Assert
(currentCount > 0, "m_ReservedCount must not be less or equal zero after incrementing.");
1672
GlobalLog.
Assert
((statusLineLength - bytesParsed) >= 0, "Connection#{0}::ParseStatusLine()|(statusLineLength - bytesParsed) < 0", ValidationHelper.HashString(this));
1872
GlobalLog.
Assert
((statusLineLength - bytesParsed) >= 0, "Connection::ParseStatusLineStrict()|(statusLineLength - bytesParsed) < 0");
1873
GlobalLog.
Assert
(maximumHeaderLength <= 0 || totalBytesParsed <= maximumHeaderLength, "Connection::ParseStatusLineStrict()|Headers already read exceeds limit.");
2382
GlobalLog.
Assert
(!fHaveChunked || contentLength == -1, "Connection#{0}::ParseStreamData()|fHaveChunked but contentLength != -1", ValidationHelper.HashString(this));
2703
GlobalLog.
Assert
(m_CurrentRequest != null, "Connection#{0}::ParseResponseData()|m_CurrentRequest == null", ValidationHelper.HashString(this));
3223
GlobalLog.
Assert
(asyncResult != null, "Connection#{0}::ReadCallback()|asyncResult == null", ValidationHelper.HashString(this));
3224
GlobalLog.
Assert
((asyncResult is OverlappedAsyncResult || asyncResult is LazyAsyncResult), "Connection#{0}::ReadCallback()|asyncResult is not OverlappedAsyncResult.", ValidationHelper.HashString(this));
3648
GlobalLog.
Assert
(writeBuffer != null, "Connection#{0}::Write(ScatterGatherBuffers)|writeBuffer == null", ValidationHelper.HashString(this));
3683
GlobalLog.
Assert
(thisConnection != null, "Connection#{0}::PostReceiveWrapper()|thisConnection == null", ValidationHelper.HashString(thisConnection));
3698
GlobalLog.
Assert
(m_BytesScanned == 0, "PostReceive()|A receive should not be posted when m_BytesScanned != 0 (the data should be moved to offset 0).");
net\System\Net\_ConnectionGroup.cs (1)
545
GlobalLog.
Assert
(leastbusyConnection != null, "Connect.leastbusyConnection != null|All connections have BusyCount equal to Int32.MaxValue.");
net\System\Net\_ConnectStream.cs (9)
213
GlobalLog.
Assert
(m_HttpWriteMode != HttpWriteMode.Unknown, "ConnectStream#{0}::.ctor()|HttpWriteMode:{1}", ValidationHelper.HashString(this), m_HttpWriteMode);
641
GlobalLog.
Assert
(m_HttpWriteMode != HttpWriteMode.None, "ConnectStream#{0}::ResubmitWrite()|m_HttpWriteMode == HttpWriteMode.None", ValidationHelper.HashString(this));
706
GlobalLog.
Assert
(WriteStream, "ConnectStream#{0}::EnableWriteBuffering()|!WriteStream", ValidationHelper.HashString(this));
1575
GlobalLog.
Assert
(m_ReadBytes >= 0, "ConnectStream: Attempting to read more bytes than available.|m_ReadBytes < 0");
1784
GlobalLog.
Assert
(m_DoneCalled == 0 || m_ReadBytes != -1, "BeginRead: Calling BeginRead after ReadDone.|m_DoneCalled > 0 && m_ReadBytes == -1");
2075
GlobalLog.
Assert
(m_ReadBytes >= 0, "ConnectStream: Attempting to read more bytes than available.|m_ReadBytes < 0");
2649
GlobalLog.
Assert
(m_Request != null, "ConnectStream#{0}::CloseInternal|m_Request == null", ValidationHelper.HashString(this));
3140
GlobalLog.
Assert
(m_RequestLifetimeSetter == null, "TrackRequestLifetime called more than once.");
3212
GlobalLog.
Assert
(m_RequestLifetimeSetter == null, "TrackRequestLifetime called more than once.");
net\System\Net\_ContextAwareResult.cs (9)
161
GlobalLog.
Assert
(AsyncCallback != null || (_Flags & StateFlags.CaptureContext) != 0, "ContextAwareResult#{0}::ContextCopy|No context captured - specify a callback or forceCaptureContext.", ValidationHelper.HashString(this));
167
GlobalLog.
Assert
(_Lock != null, "ContextAwareResult#{0}::ContextCopy|Must lock (StartPostingAsyncOp()) { ... FinishPostingAsyncOp(); } when calling ContextCopy (unless it's only called after FinishPostingAsyncOp).", ValidationHelper.HashString(this));
189
GlobalLog.
Assert
(!InternalPeekCompleted || (_Flags & StateFlags.ThreadSafeContextCopy) != 0, "ContextAwareResult#{0}::Identity|Called on completed result.", ValidationHelper.HashString(this));
201
GlobalLog.
Assert
((_Flags & StateFlags.CaptureIdentity) != 0, "ContextAwareResult#{0}::Identity|No identity captured - specify captureIdentity.", ValidationHelper.HashString(this));
207
GlobalLog.
Assert
(_Lock != null, "ContextAwareResult#{0}::Identity|Must lock (StartPostingAsyncOp()) { ... FinishPostingAsyncOp(); } when calling Identity (unless it's only called after FinishPostingAsyncOp).", ValidationHelper.HashString(this));
211
GlobalLog.
Assert
(!InternalPeekCompleted || (_Flags & StateFlags.ThreadSafeContextCopy) != 0, "ContextAwareResult#{0}::Identity|Result became completed during call.", ValidationHelper.HashString(this));
246
GlobalLog.
Assert
(!InternalPeekCompleted, "ContextAwareResult#{0}::StartPostingAsyncOp|Called on completed result.", ValidationHelper.HashString(this));
364
GlobalLog.
Assert
((_Flags & StateFlags.PostBlockStarted) != 0, "ContextAwareResult#{0}::CaptureOrComplete|Called without calling StartPostingAsyncOp.", ValidationHelper.HashString(this));
409
GlobalLog.
Assert
(AsyncCallback == null || CompletedSynchronously, "ContextAwareResult#{0}::CaptureOrComplete|Didn't capture context, but didn't complete synchronously!", ValidationHelper.HashString(this));
net\System\Net\_DigestClient.cs (8)
52
GlobalLog.
Assert
(credentials != null, "DigestClient::DoAuthenticate()|credentials == null");
58
GlobalLog.
Assert
(httpWebRequest != null, "DigestClient::DoAuthenticate()|httpWebRequest == null");
59
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "DigestClient::DoAuthenticate()|httpWebRequest.ChallengedUri == null");
183
GlobalLog.
Assert
(httpWebRequest!=null, "DigestClient::Update()|httpWebRequest == null");
184
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "DigestClient::Update()|httpWebRequest.ChallengedUri == null");
260
GlobalLog.
Assert
(httpWebRequest != null, "NtlmClient::ClearSession()|httpWebRequest == null");
448
GlobalLog.
Assert
(authSession.IsCompleted, "DigestClient::XPUpdate()|IsCompleted == false");
1074
GlobalLog.
Assert
(nonce != null, "HttpDigest::IsUpgraded()|'nonce' must not be null.");
net\System\Net\_FtpControlStream.cs (1)
695
GlobalLog.
Assert
(port != -1, "FtpControlStream#{0}|'port' not set.", ValidationHelper.HashString(this));
net\System\Net\_KerberosClient.cs (6)
29
GlobalLog.
Assert
(credentials != null, "KerberosClient::DoAuthenticate()|credentials == null");
36
GlobalLog.
Assert
(httpWebRequest != null, "KerberosClient::DoAuthenticate()|httpWebRequest == null");
37
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "KerberosClient::DoAuthenticate()|httpWebRequest.ChallengedUri == null");
145
GlobalLog.
Assert
(httpWebRequest != null, "KerberosClient::Update()|httpWebRequest == null");
146
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "KerberosClient::Update()|httpWebRequest.ChallengedUri == null");
203
GlobalLog.
Assert
(httpWebRequest != null, "KerberosClient::ClearSession()|httpWebRequest == null");
net\System\Net\_LazyAsyncResult.cs (3)
90
GlobalLog.
Assert
(result != DBNull.Value, "LazyAsyncResult#{0}::.ctor()|Result can't be set to DBNull - it's a special internal value.", ValidationHelper.HashString(this));
300
GlobalLog.
Assert
(value != DBNull.Value, "LazyAsyncResult#{0}::set_Result()|Result can't be set to DBNull - it's a special internal value.", ValidationHelper.HashString(this));
301
GlobalLog.
Assert
(!InternalPeekCompleted, "LazyAsyncResult#{0}::set_Result()|Called on completed result.", ValidationHelper.HashString(this));
net\System\Net\_LoggingObject.cs (2)
880
Assert
((threadKind & allowedSources) != 0, errorMsg, "Thread Contract Violation.|Expected source:({0}) Actual source:({1})", allowedSources , threadKind & ThreadKinds.SourceMask);
881
Assert
((threadKind & kind) == kind, errorMsg, "Thread Contract Violation.|Expected kind:({0}) Actual kind:({1})", kind, threadKind & ~ThreadKinds.SourceMask);
net\System\Net\_NegotiateClient.cs (6)
26
GlobalLog.
Assert
(credentials != null, "NegotiateClient::DoAuthenticate()|credentials == null");
33
GlobalLog.
Assert
(httpWebRequest != null, "NegotiateClient::DoAuthenticate()|httpWebRequest == null");
34
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "NegotiateClient::DoAuthenticate()|httpWebRequest.ChallengedUri == null");
160
GlobalLog.
Assert
(httpWebRequest != null, "NegotiateClient::Update()|httpWebRequest == null");
161
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "NegotiateClient::Update()|httpWebRequest.ChallengedUri == null");
226
GlobalLog.
Assert
(httpWebRequest != null, "NegotiateClient::ClearSession()|httpWebRequest == null");
net\System\Net\_NTAuthentication.cs (12)
239
GlobalLog.
Assert
(IsCompleted && IsValidContext, "NTAuthentication#{0}::OSSupportsExtendedProtection|The context is not completed or invalid.", ValidationHelper.HashString(this));
314
GlobalLog.
Assert
(IsCompleted && IsValidContext, "NTAuthentication#{0}::MaxDataSize|The context is not completed or invalid.", ValidationHelper.HashString(this));
577
GlobalLog.
Assert
(IsCompleted && IsValidContext, "NTAuthentication#{0}::GetContextToken|Should be called only when completed with success, currently is not!", ValidationHelper.HashString(this));
578
GlobalLog.
Assert
(IsServer, "NTAuthentication#{0}::GetContextToken|The method must not be called by the client side!", ValidationHelper.HashString(this));
771
GlobalLog.
Assert
(statusCode == SecurityStatus.OK, "NTAuthentication#{0}::GetOutgoingBlob()|statusCode:[0x{1:x8}] ({2}) m_SecurityContext#{3}::Handle:[{4}] [STATUS != OK]", ValidationHelper.HashString(this), (int)statusCode, statusCode, ValidationHelper.HashString(m_SecurityContext), ValidationHelper.ToString(m_SecurityContext));
962
GlobalLog.
Assert
(false, "NTAuthentication#" + ValidationHelper.HashString(this) + "::Encrypt", "Arguments out of range.");
1028
GlobalLog.
Assert
(false, "NTAuthentication#" + ValidationHelper.HashString(this) + "::Decrypt", "Argument 'offset' out of range.");
1033
GlobalLog.
Assert
(false, "NTAuthentication#" + ValidationHelper.HashString(this) + "::Decrypt", "Argument 'count' out of range.");
1074
GlobalLog.
Assert
(IsValidContext && IsCompleted, "NTAuthentication: Trying to get the client SPN before handshaking is done!");
1089
GlobalLog.
Assert
(false, "NTAuthentication#" + ValidationHelper.HashString(this) + "::DecryptNtlm", "Argument 'count' out of range.");
1138
GlobalLog.
Assert
(
1150
GlobalLog.
Assert
(
net\System\Net\_NtlmClient.cs (6)
27
GlobalLog.
Assert
(credentials != null, "NtlmClient::DoAuthenticate()|credentials == null");
34
GlobalLog.
Assert
(httpWebRequest != null, "NtlmClient::DoAuthenticate()|httpWebRequest == null");
35
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "NtlmClient::DoAuthenticate()|httpWebRequest.ChallengedUri == null");
153
GlobalLog.
Assert
(httpWebRequest != null, "NtlmClient::Update()|httpWebRequest == null");
154
GlobalLog.
Assert
(httpWebRequest.ChallengedUri != null, "NtlmClient::Update()|httpWebRequest.ChallengedUri == null");
191
GlobalLog.
Assert
(httpWebRequest != null, "NtlmClient::ClearSession()|httpWebRequest == null");
net\System\Net\_PooledStream.cs (4)
152
GlobalLog.
Assert
(owningObject == Owner || Owner == null, "PooledStream::Activate|Owner is not the same as expected.");
199
GlobalLog.
Assert
(owningObject == Owner || Owner == null, "PooledStream::ConnectionCallback|Owner is not the same as expected.");
290
GlobalLog.
Assert
(!IsEmancipated, "Pooled object not in pool.");
291
GlobalLog.
Assert
(CanBePooled, "Pooled object is not poolable.");
net\System\Net\_ProxyChain.cs (2)
108
GlobalLog.
Assert
(m_Chain.m_Cache.Count > m_CurrentIndex, "ProxyEnumerator::Current|Not all proxies made it to the cache.");
175
GlobalLog.
Assert
(m_Chain.m_Cache.Count > m_CurrentIndex, "ProxyEnumerator::MoveNext|Not all proxies made it to the cache.");
net\System\Net\_SafeNetHandles.cs (6)
1473
GlobalLog.
Assert
(outSecBuffer != null, "SafeDeleteContext::InitializeSecurityContext()|outSecBuffer != null");
1474
GlobalLog.
Assert
(inSecBuffer == null || inSecBuffers == null, "SafeDeleteContext::InitializeSecurityContext()|inSecBuffer == null || inSecBuffers == null");
1798
GlobalLog.
Assert
(outSecBuffer != null, "SafeDeleteContext::AcceptSecurityContext()|outSecBuffer != null");
1799
GlobalLog.
Assert
(inSecBuffer == null || inSecBuffers == null, "SafeDeleteContext::AcceptSecurityContext()|inSecBuffer == null || inSecBuffers == null");
2091
GlobalLog.
Assert
(inSecBuffers != null, "SafeDeleteContext::CompleteAuthToken()|inSecBuffers == null");
2202
GlobalLog.
Assert
(inSecBuffers != null, "SafeDeleteContext::ApplyControlToken()|inSecBuffers == null");
net\System\Net\_ScatterGatherBuffers.cs (1)
71
GlobalLog.
Assert
(available >= 0, "ScatterGatherBuffers::Add()|available < 0");
net\System\Net\_SecureChannel.cs (9)
97
GlobalLog.
Assert
(hostname != null, "SecureChannel#{0}::.ctor()|hostname == null", ValidationHelper.HashString(this));
707
GlobalLog.
Assert
(((object) clientCertificate == (object) selectedCert) || clientCertificate.Equals(selectedCert), "AcquireClientCredentials()|'selectedCert' does not match 'clientCertificate'.");
827
GlobalLog.
Assert
(localCertificate.Equals(selectedCert), "AcquireServerCredentials()|'selectedCert' does not match 'localCertificate'.");
932
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::GenerateToken", "Argument 'offset' out of range.");
937
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::GenerateToken", "Argument 'count' out of range.");
1090
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::ProcessHandshakeSuccess", "StreamSizes out of range.");
1147
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt", "Arguments out of range.");
1182
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt", "Argument 'offset' out of range.");
1187
GlobalLog.
Assert
(false, "SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt", "Argument 'count' out of range.");
net\System\Net\_SslSessionsCache.cs (1)
158
GlobalLog.
Assert
(creds != null, "CacheCredential|creds == null");
net\System\Net\_SSPIWrapper.cs (4)
474
GlobalLog.
Assert
(iBuffer.offset >= 0 && iBuffer.offset <= (iBuffer.token == null ? 0 : iBuffer.token.Length), "SSPIWrapper::EncryptDecryptHelper|'offset' out of range. [{0}]", iBuffer.offset);
475
GlobalLog.
Assert
(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.token == null ? 0 : iBuffer.token.Length - iBuffer.offset), "SSPIWrapper::EncryptDecryptHelper|'size' out of range. [{0}]", iBuffer.size);
734
GlobalLog.
Assert
(false, "StreamSizes::.ctor", "Negative size.");
762
GlobalLog.
Assert
(false, "SecSizes::.ctor", "Negative size.");
net\System\Net\_StreamFramer.cs (4)
210
GlobalLog.
Assert
(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::ReadFrameCallback|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.GetType().FullName);
247
GlobalLog.
Assert
(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::ReadFrameComplete|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.GetType().FullName);
253
GlobalLog.
Assert
(workerResult.Offset <= workerResult.End, "StreamFramer::ReadFrameCallback|WRONG: offset - end = {0}", workerResult.Offset - workerResult.End);
413
GlobalLog.
Assert
(transportResult.AsyncState is WorkerAsyncResult, "StreamFramer::BeginWriteCallback|The state expected to be WorkerAsyncResult, received:{0}.", transportResult.AsyncState.GetType().FullName);
net\System\Net\_TimerThread.cs (2)
306
GlobalLog.
Assert
(m_Timers.Prev.Next == m_Timers, "TimerThread#{0}::CreateTimer()|m_Tail corruption.", Thread.CurrentThread.ManagedThreadId.ToString());
530
GlobalLog.
Assert
(m_TimerState != TimerState.Sentinel, "TimerThread#{0}::Fire()|TimerQueue tried to Fire a Sentinel.", Thread.CurrentThread.ManagedThreadId.ToString());
net\System\Net\_TLSstream.cs (2)
524
GlobalLog.
Assert
(result != null, "TlsStream::ProcessAuthentication() this is a Sync call and it did not started the handshake hence null result must be wrapped into LazyAsyncResult");
557
GlobalLog.
Assert
(nullState == null, "TlsStream::StartWakeupPendingIO|Expected null state but got {0}.", nullState == null ? "null" : (nullState.GetType().FullName));
net\System\Net\Cache\_CacheStreams.cs (6)
171
GlobalLog.
Assert
(transportResult.AsyncState is InnerAsyncResult, "InnerAsyncResult::ReadCallback|The state expected to be of type InnerAsyncResult, received {0}.", transportResult.GetType().FullName);
276
GlobalLog.
Assert
(m_HeadEOF, "CombinedReadStream::EndRead|m_HeadEOF is false and asyncResult is not of InnerAsyncResult type {0).", asyncResult.GetType().FullName);
526
GlobalLog.
Assert
(transportResult.AsyncState is InnerAsyncResult, "InnerAsyncResult::ReadCallback|The state expected to be of type InnerAsyncResult, received {0}.", transportResult.GetType().FullName);
567
GlobalLog.
Assert
(!m_ShadowStreamIsDead, "ForwardingReadStream::ReadComplete|ERROR: IsWriteCompletion && m_ShadowStreamIsDead");
619
GlobalLog.
Assert
(userResult != null, "ForwardingReadStream::ReadComplete|ERROR: Inner IAResult is null after stream FastForwarding.");
717
GlobalLog.
Assert
(m_ShadowStreamIsDead, "ForwardingReadStream::EndRead|m_ShadowStreamIsDead is false and asyncResult is not of InnerAsyncResult type {0}.", asyncResult.GetType().FullName);
net\System\Net\Cache\_RequestCacheProtocol.cs (2)
284
GlobalLog.
Assert
(_ProtocolStatus == CacheValidationStatus.Continue, "CheckRetrieveBeforeSubmit()|Unexpected _ProtocolStatus = {0}", _ProtocolStatus);
400
GlobalLog.
Assert
(_ProtocolStatus == CacheValidationStatus.Continue || _ProtocolStatus == CacheValidationStatus.RetryResponseFromServer, "CheckRetrieveOnResponse()|Unexpected _ProtocolStatus = ", _ProtocolStatus);
net\System\Net\connectionpool.cs (6)
375
GlobalLog.
Assert
(!pooledStream.IsEmancipated, "Pooled object not in pool.");
376
GlobalLog.
Assert
(pooledStream.CanBePooled, "Pooled object is not poolable.");
481
GlobalLog.
Assert
(res != null, "GetFromPool called with nothing in the pool!");
730
GlobalLog.
Assert
(null != pooledStream, "Why are we adding a null object to the pool?");
731
GlobalLog.
Assert
(pooledStream.CanBePooled, "Non-poolable object in pool.");
824
GlobalLog.
Assert
(null != pooledStream, "push null");
net\System\Net\cookie.cs (1)
668
GlobalLog.
Assert
(value == CookieVariant.Rfc2965, "Cookie#{0}::set_Variant()|value:{1}" , ValidationHelper.HashString(this), value);
net\System\Net\FtpWebRequest.cs (2)
1154
GlobalLog.
Assert
(m_Async, "QueueOrCreateConnection|m_ConnectionPool.GetConnection() returned null on a Sync Request.");
1709
GlobalLog.
Assert
(stream is ICloseEx, "FtpWebRequest.Abort()|The m_Stream member is not CloseEx hence the risk of connection been orphaned.");
net\System\Net\HttpListener.cs (22)
67
GlobalLog.
Assert
(m_MemoryBlob != null || m_BackingBuffer == null, "RequestContextBase::ReleasePins()|ReleasePins() called twice.");
82
GlobalLog.
Assert
(m_MemoryBlob == null, "RequestContextBase::Dispose()|Dispose() called before ReleasePins().");
97
GlobalLog.
Assert
(m_MemoryBlob != null || m_BackingBuffer == null, "RequestContextBase::Dispose()|RequestBlob requested after ReleasePins().");
129
GlobalLog.
Assert
(m_MemoryBlob != null || m_BackingBuffer == null, "RequestContextBase::Dispose()|SetBlob() called after ReleasePins().");
209
GlobalLog.
Assert
(!disposing, "AsyncRequestContext::Dispose()|Must call ReleasePins() before calling Dispose().");
272
GlobalLog.
Assert
(!disposing, "AsyncRequestContext::Dispose()|Must call ReleasePins() before calling Dispose().");
504
GlobalLog.
Assert
(m_UrlGroupId != 0, "SetUrlGroupProperty called with invalid url group id");
505
GlobalLog.
Assert
(info != IntPtr.Zero, "SetUrlGroupProperty called with invalid pointer");
804
GlobalLog.
Assert
(id != 0, "Invalid id returned by HttpCreateServerSession");
816
GlobalLog.
Assert
(id != 0, "Invalid id returned by HttpCreateUrlGroup");
902
GlobalLog.
Assert
(m_UrlGroupId != 0, "HttpCloseUrlGroup called with invalid url group id");
911
GlobalLog.
Assert
(m_ServerSessionHandle != null, "ServerSessionHandle is null in CloseV2Config");
912
GlobalLog.
Assert
(!m_ServerSessionHandle.IsInvalid, "ServerSessionHandle is invalid in CloseV2Config");
933
GlobalLog.
Assert
(m_UrlGroupId != 0, "DetachRequestQueueFromUrlGroup can't detach using Url group id 0.");
1063
GlobalLog.
Assert
(disposing, "Dispose(bool) does nothing if called from the finalizer.");
1298
GlobalLog.
Assert
(castedAsyncResult.Result is Exception, "EndGetContext|The result is neither a HttpListenerContext nor an Exception.");
2040
GlobalLog.
Assert
(policy.PolicyEnforcement != PolicyEnforcement.Always, "User managed to set PolicyEnforcement.Always when the OS does not support extended protection!");
2053
GlobalLog.
Assert
(result != null, "GetChannelBindingFromTls returned null even though OS supposedly supports Extended Protection");
2091
GlobalLog.
Assert
(policy.PolicyEnforcement != PolicyEnforcement.Always, "User managed to set PolicyEnforcement.Always when the OS does not support extended protection!");
2285
GlobalLog.
Assert
(disconnectResult == null, "HttpListener#{0}::RegisterForDisconnectNotification()|Called with a disconnectResult.", ValidationHelper.HashString(this));
2734
GlobalLog.
Assert
(oldValue != 1, "DisconnectAsyncResult#{0}::HandleDisconnect()|StartOwningDisconnectHandling() called twice.", ValidationHelper.HashString(this));
2804
GlobalLog.
Assert
(oldValue == 2, "DisconnectAsyncResult#{0}::HandleDisconnect()|Expected OwnershipState of 2, saw {1}.", ValidationHelper.HashString(this), oldValue);
net\System\Net\HttpListenerRequest.cs (1)
972
GlobalLog.
Assert
(statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND, "HttpListenerRequest#{0}::ProcessClientCertificate()|Call to UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate() failed with statusCode {1}.", ValidationHelper.HashString(this), statusCode);
net\System\Net\HttpListenerResponse.cs (2)
479
GlobalLog.
Assert
(!SentHeaders, "HttpListenerResponse#{0}::SendHeaders()|SentHeaders is true.", ValidationHelper.HashString(this));
636
GlobalLog.
Assert
(!ComputedHeaders, "HttpListenerResponse#{0}::ComputeHeaders()|ComputedHeaders is true.", ValidationHelper.HashString(this));
net\System\Net\HttpWebRequest.cs (21)
1236
GlobalLog.
Assert
(!UnsafeAuthenticatedConnectionSharing, "Created a unique connection AND UnsafeConnectionNtlmAuthentication is true.");
1413
GlobalLog.
Assert
(_ReadAResult.InternalPeekCompleted, "HttpWebRequest#{0}::BeginGetRequestStream()|Incomplete _ReadAResult present on request.", ValidationHelper.HashString(this));
1414
GlobalLog.
Assert
(_ReadAResult.Result is Exception, "HttpWebRequest#{0}::BeginGetRequestStream()|_ReadAResult with successful completion already present on request.", ValidationHelper.HashString(this));
1566
GlobalLog.
Assert
(_ReadAResult.InternalPeekCompleted, "HttpWebRequest#{0}::GetRequestStream()|Incomplete _ReadAResult present on request.", ValidationHelper.HashString(this));
1567
GlobalLog.
Assert
(_ReadAResult.Result is Exception, "HttpWebRequest#{0}::GetRequestStream()|_ReadAResult with successful completion already present on request.", ValidationHelper.HashString(this));
2082
GlobalLog.
Assert
(httpWebResponse.ResponseStream != null, "HttpWebRequest#{0}::EndGetResponse()|httpWebResponse.ResponseStream == null", ValidationHelper.HashString(this));
2274
GlobalLog.
Assert
(httpWebResponse.ResponseStream != null, "HttpWebRequest#{0}::GetResponse()|httpWebResponse.ResponseStream == null", ValidationHelper.HashString(this));
2318
GlobalLog.
Assert
(object.ReferenceEquals(stream, _SubmitWriteStream), "HttpWebRequest#{0}::CallDone|Called from invalid stream.", ValidationHelper.HashString(this));
2374
GlobalLog.
Assert
(oldResult == null, "HttpWebRequest#{0}::NeedEndSubmitRequest()|Duplicate call. typeof(oldResult):", ValidationHelper.HashString(this), oldResult != null ? oldResult.GetType().ToString() : "null");
3325
GlobalLog.
Assert
(asyncResult == null || this == (HttpWebRequest)asyncResult.AsyncObject, "HttpWebRequest#{0}::InvokeGetRequestStreamCallback()|this != asyncResult.AsyncObject", ValidationHelper.HashString(this));
3405
GlobalLog.
Assert
(_CoreResponse is Exception, "SetRequestSubmitDone()|Found offensive response right after getting connection ({0}).", _CoreResponse);
3825
GlobalLog.
Assert
(object.ReferenceEquals(webException.Response, _HttpResponse), "HttpWebRequset#{0}::ProcessResponse|Different HttpWebResponse in exception versus _HttpResponse.", ValidationHelper.HashString(this));
4386
GlobalLog.
Assert
(WriteBufferLength != 0 && WriteBuffer[0] < 0x80 && WriteBuffer[0] != 0x0, "HttpWebRequest#{0}::EndSubmitRequest()|Invalid WriteBuffer generated.", ValidationHelper.HashString(this));
4574
GlobalLog.
Assert
(submitWriteStream != null, "HttpWebRequest#{0}::EndWriteHeaders_Part2()|submitWriteStream == null", ValidationHelper.HashString(this));
4994
GlobalLog.
Assert
(HttpWriteMode!=HttpWriteMode.Unknown, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
4997
GlobalLog.
Assert
(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod, HttpWriteMode, ContentLength);
5001
GlobalLog.
Assert
(HttpWriteMode == HttpWriteMode.ContentLength, "HttpWebRequest#{0}::SerializeHeaders()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
5002
GlobalLog.
Assert
(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod, HttpWriteMode, ContentLength);
5063
GlobalLog.
Assert
(_ServicePoint != null, "HttpWebRequest#{0}::SerializeHeaders()|_ServicePoint == null", ValidationHelper.HashString(this));
5908
GlobalLog.
Assert
(HttpWriteMode != HttpWriteMode.Unknown, "HttpWebRequest#{0}::CheckResubmit()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
6044
GlobalLog.
Assert
(HttpWriteMode != HttpWriteMode.Unknown, "HttpWebRequest#{0}::ClearRequestForResubmit()|HttpWriteMode:{1}", ValidationHelper.HashString(this), HttpWriteMode);
net\System\Net\HttpWebResponse.cs (2)
416
GlobalLog.
Assert
(connectStream != null, "HttpWebResponse.m_ConnectStream should always be a ConnectStream in WebSocket cases.");
417
GlobalLog.
Assert
(connectStream.Connection != null, "HttpWebResponse.m_ConnectStream.Connection should never be null in WebSocket cases.");
net\System\Net\Internal.cs (3)
1463
GlobalLog.
Assert
(offset >= 0 && offset <= (data == null ? 0 : data.Length), "SecurityBuffer::.ctor", "'offset' out of range. [" + offset + "]");
1464
GlobalLog.
Assert
(size >= 0 && size <= (data == null ? 0 : data.Length - offset), "SecurityBuffer::.ctor", "'size' out of range. [" + size + "]");
1479
GlobalLog.
Assert
(size >= 0, "SecurityBuffer::.ctor", "'size' out of range. [" + size.ToString(NumberFormatInfo.InvariantInfo) + "]");
net\System\Net\mail\SmtpTransport.cs (2)
269
GlobalLog.
Assert
(recipients.Count > 0, "SmtpTransport::BeginSendMail()|recepients.Count <= 0");
315
GlobalLog.
Assert
(recipients.Count > 0, "SmtpTransport::SendMail()|recepients.Count <= 0");
net\System\Net\NetworkInformation\TeredoHelper.cs (5)
68
GlobalLog.
Assert
(callback != null,
96
GlobalLog.
Assert
(!helper.cancelHandle.IsInvalid,
129
GlobalLog.
Assert
(helper.cancelHandle != null && !helper.cancelHandle.IsInvalid,
139
GlobalLog.
Assert
(runCallbackCalled, "RunCallback called without setting runCallbackCalled!");
158
GlobalLog.
Assert
(cancelHandle != null && !cancelHandle.IsInvalid,
net\System\Net\SecureProtocols\_FixedSizeReader.cs (2)
120
GlobalLog.
Assert
(_TotalRead + bytes <= _Request.Count, "FixedSizeReader::CheckCompletion()|State got out of range. Total:{0} Count:{1}", _TotalRead + bytes, _Request.Count);
136
GlobalLog.
Assert
(transportResult.AsyncState is FixedSizeReader, "ReadCallback|State type is wrong, expected FixedSizeReader.");
net\System\Net\SecureProtocols\_HelperAsyncResults.cs (2)
104
GlobalLog.
Assert
(userAsyncResult != null, "AsyncProtocolRequest()|userAsyncResult == null");
105
GlobalLog.
Assert
(!userAsyncResult.InternalPeekCompleted, "AsyncProtocolRequest()|userAsyncResult is already completed.");
net\System\Net\SecureProtocols\_NegoState.cs (3)
463
GlobalLog.
Assert
(_ExtendedProtectionPolicy.PolicyEnforcement != PolicyEnforcement.Always,
739
GlobalLog.
Assert
(transportResult.AsyncState is LazyAsyncResult, "WriteCallback|State type is wrong, expected LazyAsyncResult.");
775
GlobalLog.
Assert
(transportResult.AsyncState is LazyAsyncResult, "ReadCallback|State type is wrong, expected LazyAsyncResult.");
net\System\Net\SecureProtocols\_NegoStream.cs (2)
299
GlobalLog.
Assert
(readBytes == _ReadHeader.Length, "NegoStream::ProcessHeader()|Frame size must be 4 but received {0} bytes.", readBytes);
389
GlobalLog.
Assert
(transportResult.AsyncState is AsyncProtocolRequest , "NegotiateSteam::WriteCallback|State type is wrong, expected AsyncProtocolRequest.");
net\System\Net\SecureProtocols\_SslState.cs (3)
1554
GlobalLog.
Assert
((bytes != null && bytes.Length > 0), "SslState::DetectFraming()|Header buffer is not allocated will boom shortly.");
1724
GlobalLog.
Assert
(lazyAsyncResult != null, "SslState::RehandshakeCompleteCallback()|result is null!");
1725
GlobalLog.
Assert
(lazyAsyncResult.InternalPeekCompleted, "SslState::RehandshakeCompleteCallback()|result is not completed!");
net\System\Net\SecureProtocols\_SslStream.cs (3)
698
GlobalLog.
Assert
(InternalBufferCount == 0, "SslStream::StartReading()|Previous frame was not consumed. InternalBufferCount:{0}", InternalBufferCount);
905
GlobalLog.
Assert
(transportResult.AsyncState is AsyncProtocolRequest , "SslStream::WriteCallback|State type is wrong, expected AsyncProtocolRequest.");
939
GlobalLog.
Assert
(transportResult.AsyncState is AsyncProtocolRequest, "SslStream::MulitpleWriteCallback|State type is wrong, expected AsyncProtocolRequest.");
net\System\Net\ServicePoint.cs (4)
398
GlobalLog.
Assert
(connGroup != null, "ServicePoint#{0}::SubmitRequest()|connGroup == null", ValidationHelper.HashString(this));
478
GlobalLog.
Assert
(!m_HostMode, "ServicePoint#{0}::InternalAddress|Can't be used in Host Mode.", ValidationHelper.HashString(this));
988
GlobalLog.
Assert
(m_ExpiringTimer != null, "ServicePoint#{0}::IncrementConnection|First connection active, but ServicePoint wasn't idle.", ValidationHelper.HashString(this));
1020
GlobalLog.
Assert
(m_ExpiringTimer == null, "ServicePoint#{0}::DecrementConnection|Expiring timer set on non-idle ServicePoint.", ValidationHelper.HashString(this));
net\System\Net\ServicePointManager.cs (1)
706
GlobalLog.
Assert
(abortDelegate == null, "ServicePointManager::FindServicePoint()|AbortDelegate already set.");
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
139
GlobalLog.
Assert
(Logging.On, "AcceptOverlappedAsyncResult#{0}::LogBuffer()|Logging is off!", ValidationHelper.HashString(this));
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (7)
164
GlobalLog.
Assert
(m_UnmanagedBlob == null, "BaseOverlappedAsyncResult#{0}::SetUnmanagedStructures()|Unmanaged blob already allocated. (Called twice?)", ValidationHelper.HashString(this));
228
GlobalLog.
Assert
(m_Cache == null, "BaseOverlappedAsyncResult#{0}::SetUnmanagedStructures()|Cache already set up. (Called twice?)", ValidationHelper.HashString(this));
327
GlobalLog.
Assert
(!asyncResult.InternalPeekCompleted, "BaseOverlappedAsyncResult#{0}::CompletionPortCallback()|asyncResult.IsCompleted", ValidationHelper.HashString(asyncResult));
370
GlobalLog.
Assert
(socketError != 0, "BaseOverlappedAsyncResult#{0}::CompletionPortCallback()|socketError:0 numBytes:{1}", ValidationHelper.HashString(asyncResult), numBytes);
373
GlobalLog.
Assert
(!success, "BaseOverlappedAsyncResult#{0}::CompletionPortCallback()|Unexpectedly succeeded. errorCode:{1} numBytes:{2}", ValidationHelper.HashString(asyncResult), errorCode, numBytes);
413
GlobalLog.
Assert
(!asyncResult.InternalPeekCompleted, "AcceptOverlappedAsyncResult#{0}::OverlappedCallback()|asyncResult.IsCompleted", ValidationHelper.HashString(asyncResult));
475
GlobalLog.
Assert
(m_UnmanagedBlob != null, "BaseOverlappedAsyncResult#{0}::CheckAsyncCallOverlappedResult()|Unmanaged blob isn't allocated.", ValidationHelper.HashString(this));
net\System\Net\Sockets\_MultipleConnectAsync.cs (6)
41
GlobalLog.
Assert
(endPoint.AddressFamily == AddressFamily.Unspecified ||
57
GlobalLog.
Assert
(state == State.NotStarted, "MultipleConnectAsync.StartConnectAsync(): Unexpected object state");
98
GlobalLog.
Assert
(state == State.DnsQuery, "MultipleConnectAsync.DoDnsCallback(): Unexpected object state");
103
GlobalLog.
Assert
(addressList != null, "MultipleConnectAsync.DoDnsCallback(): EndGetHostAddresses returned null!");
158
GlobalLog.
Assert
(state == State.ConnectAttempt, "MultipleConnectAsync.InternalConnectCallback(): Unexpected object state");
230
GlobalLog.
Assert
(attemptSocket != null, "MultipleConnectAsync.AttemptConnection: attemptSocket is null!");
net\System\Net\Sockets\_OverlappedAsyncResult.cs (1)
190
GlobalLog.
Assert
(Logging.On, "OverlappedAsyncResult#{0}::LogBuffer()|Logging is off!", ValidationHelper.HashString(this));
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (1)
196
GlobalLog.
Assert
(Logging.On, "ReceiveMessageOverlappedAsyncResult#{0}::LogBuffer()|Logging is off!", ValidationHelper.HashString(this));
net\System\Net\Sockets\Socket.cs (19)
924
GlobalLog.
Assert
(!(localEP is DnsEndPoint), "Calling InternalBind with a DnsEndPoint, about to get NotImplementedException");
2982
GlobalLog.
Assert
(asyncResult != null, "Socket#{0}::ConnectCallback()|asyncResult should not be null.", ValidationHelper.HashString(this));
2985
GlobalLog.
Assert
(CleanedUp, "Socket#{0}::ConnectCallback()|asyncResult is compelted but the socket does not have CleanedUp set.", ValidationHelper.HashString(this));
4280
GlobalLog.
Assert
(errorCode != SocketError.Success, "Socket#{0}::DoBeginReceive()|GetLastWin32Error() returned zero.", ValidationHelper.HashString(this));
4396
GlobalLog.
Assert
(errorCode != SocketError.Success, "Socket#{0}::DoBeginReceive()|GetLastWin32Error() returned zero.", ValidationHelper.HashString(this));
5244
GlobalLog.
Assert
(!willBlockInternal, "Socket#{0}::AcceptCallback|Socket should be in non-blocking state.", ValidationHelper.HashString(this));
6888
GlobalLog.
Assert
(endPointSnapshot.GetType() == typeof(IPEndPoint), "Socket#{0}::BeginConnectEx()|Socket not bound and endpoint not IPEndPoint.", ValidationHelper.HashString(this));
6987
GlobalLog.
Assert
(buffers != null, "Socket#{0}::MultipleSend()|buffers == null", ValidationHelper.HashString(this));
7221
GlobalLog.
Assert
(buffers != null, "Socket#{0}::DoBeginMultipleSend()|buffers == null", ValidationHelper.HashString(this));
7276
GlobalLog.
Assert
(asyncResult != null, "Socket#{0}::EndMultipleSend()|asyncResult == null", ValidationHelper.HashString(this));
7280
GlobalLog.
Assert
(castedAsyncResult != null, "Socket#{0}::EndMultipleSend()|castedAsyncResult == null", ValidationHelper.HashString(this));
7281
GlobalLog.
Assert
(castedAsyncResult.AsyncObject == this, "Socket#{0}::EndMultipleSend()|castedAsyncResult.AsyncObject != this", ValidationHelper.HashString(this));
7282
GlobalLog.
Assert
(!castedAsyncResult.EndCalled, "Socket#{0}::EndMultipleSend()|castedAsyncResult.EndCalled", ValidationHelper.HashString(this));
7476
GlobalLog.
Assert
(CleanedUp, "Socket#{0}::UnsetAsyncEventSelect|Got exception and CleanedUp not set.", ValidationHelper.HashString(this));
7510
GlobalLog.
Assert
(blockEventBits != AsyncEventBits.FdNone, "Socket#{0}::SetAsyncEventSelect|Use UnsetAsyncEventSelect for FdNone.", ValidationHelper.HashString(this));
7511
GlobalLog.
Assert
(m_BlockEventBits == AsyncEventBits.FdNone || m_BlockEventBits == blockEventBits, "Socket#{0}::SetAsyncEventSelect|Can't change from one active wait to another.", ValidationHelper.HashString(this));
7512
GlobalLog.
Assert
(m_RegisteredWait == null, "Socket#{0}::SetAsyncEventSelect|Already actively waiting on an op.", ValidationHelper.HashString(this));
7563
GlobalLog.
Assert
(CleanedUp, "Socket#{0}::SetAsyncEventSelect|WSAEventSelect got exception and CleanedUp not set.", ValidationHelper.HashString(this));
9121
GlobalLog.
Assert
(m_CurrentSocket != null, "SocketAsyncEventArgs::CancelConnectAsync - CurrentSocket and MultipleConnect both null!");
net\System\Net\TransportContext.cs (3)
26
GlobalLog.
Assert
(connectStream != null, "ConnectStreamContext..ctor(): Not expecting a null connectStream!");
42
GlobalLog.
Assert
(sslStream != null, "SslStreamContext..ctor(): Not expecting a null sslStream!");
58
GlobalLog.
Assert
(request != null, "HttpListenerRequestContext..ctor(): Not expecting a null request!");
net\System\Net\webproxy.cs (6)
153
GlobalLog.
Assert
(_UseRegistry == false, "Cannot set AutoDetect if we are using registry for proxy settings");
154
GlobalLog.
Assert
(m_EnableAutoproxy, "WebProxy#{0}::.ctor()|Cannot set AutoDetect if usesystemdefault is set.", ValidationHelper.HashString(this));
169
GlobalLog.
Assert
(value != null, "Cannot set ScriptLocation to null");
170
GlobalLog.
Assert
(_UseRegistry == false, "Cannot set AutoDetect if we are using registry for proxy settings");
171
GlobalLog.
Assert
(m_EnableAutoproxy, "WebProxy#{0}::.ctor()|Cannot set ScriptLocation if usesystemdefault is set.", ValidationHelper.HashString(this));
516
GlobalLog.
Assert
(!_UseRegistry, "WebProxy#{0}::UnsafeUpdateFromRegistry()|_UseRegistry ScriptEngine#{1}", ValidationHelper.HashString(this), ValidationHelper.HashString(m_ScriptEngine));
net\System\Net\WinHttpWebProxyFinder.cs (1)
256
GlobalLog.
Assert
(errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_INVALID_PARAMETER,