Cache\SqlCacheDependency.cs (12)
243Debug.Assert(sqlDependencies.Count > 0, "sqlDependencies.Count > 0");
521Debug.Assert(_poolConn, "_poolConn");
522Debug.Assert(_sqlCmd != null, "_sqlCmd != null");
558Debug.Assert(sqlCmd == null, "sqlCmd == null");
562Debug.Assert(sqlCmd != null, "sqlCmd != null");
632Debug.Assert(s_shutdown != true, "s_shutdown != true");
870Debug.Assert(!dbState._tables.ContainsKey(tableName),
880Debug.Assert(dbState._tables.ContainsKey(tableName),
1096Debug.Assert(dbRegistered == false, "When this error happened, we shouldn't be able to poll the database");
1141Debug.Assert(s_DatabaseNotifStates[database] != null, "s_DatabaseNotifStates[database] != null");
1161Debug.Assert(dbState != null, "AddRef: s_DatabaseNotifStates[database] != null");
1618Debug.Assert(!disable && table != null, "disable && table != null");
HttpApplication.cs (16)
237Debug.Assert(_moduleIndexMap != null && _moduleIndexMap.Count > 0, "_moduleIndexMap != null && _moduleIndexMap.Count > 0");
571Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline");
576Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline");
707Debug.Assert(container != null, "container != null");
1627Debug.Assert(context != null, "context != null");
1649Debug.Assert(_moduleConfigInfo != null, "_moduleConfigInfo != null");
1650Debug.Assert(_moduleConfigInfo.Count >= 0, "_moduleConfigInfo.Count >= 0");
1666Debug.Assert(null == _moduleContainers, "null == _moduleContainers");
2345Debug.Assert(null != _moduleConfigInfo, "null != _moduleConfigInfo");
2729Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline");
2828Debug.Assert(!String.IsNullOrEmpty(moduleName), "!String.IsNullOrEmpty(moduleName)");
3394Debug.Assert(context.ConfigurationPath == context.Request.FilePathObject, "context.ConfigurationPath (" +
4290Debug.Assert(needToDisassociateThreadContext == true, "needToDisassociateThreadContext MUST BE true");
4306Debug.Assert(needToDisassociateThreadContext == true, "needToDisassociateThreadContext MUST BE true");
4396Debug.Assert(originalState == ASYNC_STATE_BEGIN_UNWOUND, "Unexpected state.");
4418Debug.Assert(originalState == ASYNC_STATE_CALLBACK_COMPLETED, "Unexpected state.");
State\SessionStateModule.cs (34)
484Debug.Assert(_rqIctx == null, "_rqIctx == null");
485Debug.Assert(_rqChangeImpersonationRefCount == 0, "_rqChangeImpersonationRefCount == 0");
737Debug.Assert(_rqId == null || // Session id isn't found in the request, OR
745Debug.Assert(_rqChangeImpersonationRefCount > 0, "Must call ChangeImpersonation first");
765Debug.Assert(_rqId != null, "Session State ID must exist");
766Debug.Assert(_rqItem != null, "Session State item must exist");
795Debug.Assert(!(s_allowDelayedStateStoreItemCreation && s_configRegenerateExpiredSessionId),
878Debug.Assert(_rqChangeImpersonationRefCount > 0, "Must call ChangeImpersonation first");
888Debug.Assert(_rqId != null || s_allowInProcOptimization, "_rqId != null || s_allowInProcOptimization");
930Debug.Assert(s_allowInProcOptimization, "Shouldn't be called if we don't allow InProc optimization");
931Debug.Assert(_rqId == null, "Shouldn't be called if we already have the id");
932Debug.Assert(!((SessionIDManager)_idManager).UseCookieless(_rqContext), "We can delay session id only if we are not using cookieless");
946Debug.Assert(!redirected, "DelayedGetSessionId shouldn't redirect us here.");
960Debug.Assert(_rqId != null, "_rqId != null");
961Debug.Assert(_rqChangeImpersonationRefCount > 0, "Must call ChangeImpersonation first");
965Debug.Assert(storedItem != null, "Must succeed in locking session state item.");
974Debug.Assert(_rqId != null, "_rqId != null");
975Debug.Assert(_rqChangeImpersonationRefCount > 0, "Must call ChangeImpersonation first");
1150Debug.Assert(_rqIctx == null, "_rqIctx == null");
1158Debug.Assert(_rqChangeImpersonationRefCount != 0, "_rqChangeImpersonationRefCount != 0");
1163Debug.Assert(!(_rqIctx != null && _rqTimerThreadImpersonationIctx != null), "Should not have mixed mode of impersonation");
1171Debug.Assert(_rqContext != null, "_rqContext != null");
1179Debug.Assert(_rqId != null, "_rqId != null");
1206Debug.Assert(_timer != null, "_timer != null");
1239Debug.Assert(s_allowInProcOptimization, "s_allowInProcOptimization");
1243Debug.Assert(_rqId != null, "_rqId != null");
1261Debug.Assert(!(_rqAddedCookie && !_rqIsNewSession),
1312Debug.Assert(s_allowDelayedStateStoreItemCreation, "s_allowDelayedStateStoreItemCreation");
1313Debug.Assert(_rqItem == null, "_rqItem == null");
1322Debug.Assert(_rqItem != null, "_rqItem cannot null if it's not a new session");
1347Debug.Assert(_rqIsNewSession, "Saving a session and delayedSessionState is true: _rqIsNewSession must be true");
1348Debug.Assert(s_allowDelayedStateStoreItemCreation, "Saving a session and delayedSessionState is true: s_allowDelayedStateStoreItemCreation");
1349Debug.Assert(_rqItem == null, "Saving a session and delayedSessionState is true: _rqItem == null");
1383Debug.Assert(_rqItem != null, "_rqItem cannot null if it's not a new session");
State\sqlstateclientmanager.cs (24)
254Debug.Assert(context != null, "context != null");
266Debug.Assert(context != null, "context != null");
273Debug.Assert(s_usePartition, "_partitionInfo can be null only if we're using paritioning and we haven't called GetConnection yet.");
419Debug.Assert(id.Length <= SessionIDManager.SESSION_ID_LENGTH_LIMIT, "id.Length <= SessionIDManager.SESSION_ID_LENGTH_LIMIT");
420Debug.Assert(context != null, "context != null");
433Debug.Assert(_partitionInfo != null, "_partitionInfo != null");
434Debug.Assert(_partitionInfo.SupportFlags != SupportFlags.Uninitialized, "_partitionInfo.SupportFlags != SupportFlags.Uninitialized");
516Debug.Assert(!Convert.IsDBNull(cmd.Parameters[3].Value), "!Convert.IsDBNull(cmd.Parameters[3].Value)");
517Debug.Assert(!Convert.IsDBNull(cmd.Parameters[4].Value), "!Convert.IsDBNull(cmd.Parameters[4].Value)");
524Debug.Assert(((int)cmd.Parameters[5].Value & (int)SessionStateActions.InitializeItem) == 0,
549Debug.Assert(!Convert.IsDBNull(cmd.Parameters[1].Value), "!Convert.IsDBNull(cmd.Parameters[1].Value)");
552Debug.Assert(buf != null, "buf != null");
598Debug.Assert(lockId != null, "lockId != null");
599Debug.Assert(context != null, "context != null");
632Debug.Assert(context != null, "context != null");
637Debug.Assert(item.Items != null, "item.Items != null");
638Debug.Assert(item.StaticObjects != null, "item.StaticObjects != null");
664Debug.Assert(_rqOrigStreamLen > 0, "_rqOrigStreamLen > 0");
711Debug.Assert(lockId != null, "lockId != null");
712Debug.Assert(context != null, "context != null");
734Debug.Assert(context != null, "context != null");
754Debug.Assert(context != null, "context != null");
760Debug.Assert(context != null, "context != null");
1082Debug.Assert(!Convert.IsDBNull(p), "!Convert.IsDBNull(p)");
UI\ControlBuilder.cs (17)
102Debug.Assert(ctrlType != null, "Control type is null.");
103Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
120Debug.Assert(ctrlType != null, "Control type is null.");
121Debug.Assert(typeof(INamingContainer).IsAssignableFrom(ctrlType), String.Format(CultureInfo.InvariantCulture, "NamingContainerBuilder.Control type {0} is not an INamingContainer", ctrlType.FullName));
140Debug.Assert(bindingContainerBuilder is TemplateBuilder, "Assert failure in ControlBuilder class, there's a scenario where BindingContainerBuilder is not a TemplateBuilder, is someone asking for ModelType out of a Data Binding Context??");
711Debug.Assert(ControlType != null, "ControlType should not be null if we're adding a property entry");
726Debug.Assert(!(String.IsNullOrEmpty(expressionPrefix) ^ (expressionBuilder == null)), "expressionBuilder should be non-null iff expressionPrefix is non-empty");
1272Debug.Assert(!InDesigner, "!InDesigner");
1691Debug.Assert(false, "The type " + cba.BuilderType.Name + " should be made public for better performance.");
1726Debug.Assert(FChildrenAsProperties, "ChildrenAsProperties");
1938Debug.Assert(DefaultPropertyBuilder != null, pca.DefaultProperty);
2176Debug.Assert(((ComplexPropertyEntry)entry).IsCollectionItem, "The entry should be a collection entry, instead it's a " + entry.GetType());
2315Debug.Assert(eb != null, "Did not expect null expression builder");
2383Debug.Assert(TemplateControl != null, "TemplateControl should not be null in no-compile pages. We need it for the FilterResolutionService.");
2408Debug.Assert(!entry.UseSetAttribute, "Two-way binding is not supported on expandos - this should have been prevented in ControlBuilder");
2413Debug.Assert(entry.ControlType.IsInstanceOfType(sender), "The DataBinding event sender was not of type " + entry.ControlType.Name);
2849Debug.Assert(_controlType != null, "If we get here then the tag type must be either an ICollection or a Control, so how can it be null?");
UI\WebControls\ObjectDataSourceView.cs (14)
682Debug.Assert(inputParameters != null, "Did not expect null parameter dictionary");
683Debug.Assert(dataObjectType != null, "Did not expect null DataObjectType");
687Debug.Assert(dataObject != null, "We should never get back a null instance of the DataObject if the creation succeeded.");
840Debug.Assert(type != null, "Should not have a null type at this point");
918Debug.Assert(type != null, "Should not have a null type at this point");
1092Debug.Assert(type != null, "Should not have a null type at this point");
1201Debug.Assert(type != null, "Should not have a null type at this point");
1342Debug.Assert(dataObjectType != null, "This overload of GetResolvedMethodData should only be called when using a DataObject");
1343Debug.Assert(oldDataObject != null || newDataObject != null, "Did not expect both oldDataObject and newDataObject to be null");
1407Debug.Assert(matchedMethodParameters != null, "Method parameters should not be null if a method was found");
1457Debug.Assert(allParameters != null, "The 'allParameters' dictionary should never be null");
1569Debug.Assert(matchedMethodParameters != null, "Method parameters should not be null if a method was found");
1942Debug.Assert(type != null, "Should not have a null type at this point");
1956Debug.Assert(instance != null, "ReleaseInstance: Instance shouldn't be null");