1680 references to Debug
System.Web (1680)
AspNetEventSource.cs (2)
131Debug.Assert(pCookedUrl->pFullUrl != null); 195Debug.Assert(pGuid != null);
AspNetSynchronizationContext.cs (1)
94Debug.Assert(_state.SyncControlDisassociationActions.Count > 0, "DisassociateFromCurrentThread() was called on a thread which hadn't previously called AssociateWithCurrentThread().");
BufferAllocator.cs (1)
306Debug.Assert(allocator != null);
Cache\cache.cs (2)
31using Debug = System.Web.Util.Debug; 357Debug.Fail("Reason should never be CacheItemRemovedReason.Underused since the entry was inserted as NotRemovable.");
Cache\CacheDependency.cs (8)
91Debug.Assert(s_dependencyEmpty == null, "s_dependencyEmpty == null"); 485Debug.Trace("CacheDependencyInit", "file=" + f + "; utcStart=" + utcStart + "; utcLastWrite=" + utcLastWrite); 488Debug.Trace("CacheDependencyInit", "changes occurred since start time for file " + f); 536Debug.Trace("CacheDependencyInit", "Cache item not found to create dependency on:" + k); 559Debug.Assert(_objNotify == null, "_objNotify == null"); 729Debug.Assert(_objNotify == null, "_objNotify == null"); 830Debug.Trace("CacheDependencyNotifyDependencyChanged", "change occurred"); 849Debug.Trace("CacheDependencyFileChange", "FileChange file=" + e.FileName + ";Action=" + e.Action);
Cache\CacheEntry.cs (1)
319Debug.Assert(State == EntryState.RemovedFromCache, "State == EntryState.RemovedFromCache");
Cache\OutputCache.cs (5)
146Debug.Assert(false, "Unexpected, " + providerName + " should be a member of the collection."); 158Debug.Assert(context != null, "context != null"); 327Debug.Trace("OutputCache", "DependencyRemovedCallback: reason=" + reason + ", key=" + key); 353Debug.Trace("OutputCache", "DependencyRemovedCallbackForFragment: reason=" + reason + ", key=" + key); 370Debug.Trace("OutputCache", "EntryRemovedCallback: reason=" + reason + ", key=" + key);
Cache\SqlCacheDependency.cs (43)
70Debug.Trace("SqlCacheDependency", 173Debug.Trace("SqlCacheDependency", "SQL9 dependency changed: depId=" + _sqlYukonDep.Id); 188Debug.Trace("SqlCacheDependency", "SqlCmd added to SqlDependency object"); 194Debug.Trace("SqlCacheDependency", "SQL9 dependency created: depId=" + _sqlYukonDep.Id); 226Debug.Assert(context != null); 230Debug.Trace("SqlCacheDependency", "Setting depId=" + dep._sqlYukonDep.Id); 243Debug.Assert(sqlDependencies.Count > 0, "sqlDependencies.Count > 0"); 245Debug.Trace("SqlCacheDependency", "Creating SqlCacheDependency for SQL8 output cache"); 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"); 633Debug.Trace("SqlCacheDependencyManager", "Dispose is called"); 687Debug.Trace("SqlCacheDependencyManager", 707Debug.Trace("SqlCacheDependencyManager", 725Debug.Trace("SqlCacheDependencyManager", 731Debug.Trace("SqlCacheDependencyManager", 766Debug.Trace("SqlCacheDependencyManagerPolling", 777Debug.Trace("SqlCacheDependencyManagerPolling", 827Debug.Trace("SqlCacheDependencyManagerPolling", 863Debug.Trace("SqlCacheDependencyManagerPolling", 870Debug.Assert(!dbState._tables.ContainsKey(tableName), 873Debug.Trace("SqlCacheDependencyManagerPolling", 880Debug.Assert(dbState._tables.ContainsKey(tableName), 883Debug.Trace("SqlCacheDependencyManagerPolling", 903Debug.Trace("SqlCacheDependencyManagerPolling", 917Debug.Trace("SqlCacheDependencyManagerPolling", "Error reading rows. SqlException:"+ 925Debug.Trace("SqlCacheDependencyManagerPolling", "Error reading rows. Exception:"+ pollExpt); 957Debug.Trace("SqlCacheDependencyManagerPolling", 971Debug.Trace("SqlCacheDependencyManagerPolling", "dbState:_pollExpt="+ dbState._pollExpt + 997Debug.Trace("SqlCacheDependencyManagerCheck", 1022Debug.Trace("SqlCacheDependencyManagerCheck", "Waiting for intialization: timeout=" + timeout + "s"); 1048Debug.Trace("SqlCacheDependencyManagerCheck", "dbState:_pollExpt="+ dbState._pollExpt + 1063Debug.Trace("SqlCacheDependencyManagerCheck", "The table is registered too. Exit now!"); 1087Debug.Trace("SqlCacheDependencyManagerCheck", "Double check..."); 1096Debug.Assert(dbRegistered == false, "When this error happened, we shouldn't be able to poll the database"); 1136Debug.Trace("SqlCacheDependencyManager", "UpdateDatabaseNotifState called for database " + database + 1141Debug.Assert(s_DatabaseNotifStates[database] != null, "s_DatabaseNotifStates[database] != null"); 1161Debug.Assert(dbState != null, "AddRef: s_DatabaseNotifStates[database] != null"); 1532Debug.Trace("SqlCacheDependencyAdmin", "\n" + 1556Debug.Trace("SqlCacheDependencyAdmin", "SqlException:"+ 1618Debug.Assert(!disable && table != null, "disable && table != null");
CachedPathData.cs (8)
168Debug.Assert(ConfigPathUtility.IsValid(configPath), "ConfigPathUtility.IsValid(configPath)"); 169Debug.Assert(configPath == configPath.ToLower(CultureInfo.InvariantCulture), "configPath == configPath.ToLower(CultureInfo.InvariantCulture)"); 358Debug.Assert(dataAdd._flags[FInited], "_flags[FInited]"); 495Debug.Assert(configPath == configPath.ToLower(CultureInfo.InvariantCulture), "configPath == configPath.ToLower(CultureInfo.InvariantCulture)"); 503Debug.Assert(_runtimeConfig == RuntimeConfig.GetErrorRuntimeConfig(), "_runtimeConfig == RuntimeConfig.GetErrorRuntimeConfig()"); 513Debug.Assert(configRecord != null, "configRecord != null"); 526Debug.Assert(parentData != null, "parentData != null"); 576Debug.Assert(false, "ValidatePath optimization failed: Request.PhysicalPath="
Compilation\AssemblyBuilder.cs (7)
115Debug.Assert(CultureName == null); 895Debug.Assert(providerOptionName != null, "providerOptionName should not be null"); 896Debug.Assert(trueCompilerOption != null, "trueCompilerOption should not be null"); 897Debug.Assert(falseCompilerOption != null, "falseCompilerOption should not be null"); 1266Debug.Assert(!fileData.IsDirectory); 1269Debug.Trace("CbmCodeGeneratorBuildProviderHost", "Deleting " + fileData.FullName); 1296Debug.Trace("CbmCodeGeneratorBuildProviderHost", "Generating " + generatedCodeFile);
Compilation\BaseCodeDomTreeGenerator.cs (8)
124Debug.Assert(_codeDomProvider == null && _stringResourceBuilder == null); 164Debug.Assert(Parser.BaseType != null); 168Debug.Assert(_designerMode, "This method should only be used in design mode."); 196Debug.Assert(UrlPath.IsAppRelativePath(appRelVirtualDir)); 247Debug.Assert(Parser.CodeFileVirtualPath != null); 358Debug.Assert(_ctor != null); 359Debug.Assert(Parser.BaseType != null); 649Debug.Assert(!Util.IsLateBoundComClassicType(declaredType));
Compilation\BaseTemplateBuildProvider.cs (4)
38Debug.Assert(_parser != null); 71Debug.Assert(_parser == null); 102Debug.Assert(Parser.RequiresCompilation); 168Debug.Assert(typeName != null);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (14)
25using Debug = System.Web.Util.Debug; 157Debug.Assert(builder.ServiceProvider == null); 196Debug.Assert(builder.ControlType != null); 440Debug.Assert(autoTemplateName != null && autoTemplateName.Length > 0, "Template Name is empty."); 453Debug.Assert(false, "baseClassType is not an INamingContainer"); 592Debug.Assert(child is CodeBlockBuilder, "child is CodeBlockBuilder"); 755Debug.Assert(pseSub.Name.IndexOf('.') < 0, "pseSub._name.IndexOf('.') < 0"); 869Debug.Assert(eb != null, "Did not expect null expression builder"); 1288Debug.Assert(child is string, "child is string"); 1293Debug.Assert(codeBlock.BlockType == CodeBlockType.DataBinding); 1411Debug.Assert(!entry.ReadOnlyProperty, "We should not attempt to build a data binding handler if the two way entry is read only."); 1412Debug.Assert(!entry.UseSetAttribute, "Two-way binding is not supported on expandos - this should have been prevented in ControlBuilder"); 1523Debug.Assert(codeBlockBuilder.BlockType == CodeBlockType.Code); 1687Debug.Assert(pse is ComplexPropertyEntry);
Compilation\BrowserCapabilitiesCompiler.cs (6)
265Debug.Assert(BrowserTree != null); 369Debug.Assert(isBrowserDefinition); 444Debug.Assert(!(bd is GatewayDefinition)); 458Debug.Assert(bd != null); 465Debug.Assert(bd != null); 473Debug.Assert(bd != null);
Compilation\BuildManager.cs (45)
148Debug.Trace("BuildManager", "InitializeBuildManager " + HttpRuntime.FusionInited); 183Debug.Assert(_topLevelFileCompilationException != null); 392Debug.Assert(_caches == null); 568Debug.Trace("BuildManager", "specialFilesCombinedHash=" + cachedHash); 690Debug.Assert(File.Exists(_webHashFilePath), _webHashFilePath); 706Debug.Trace("BuildManager", "Precompiling for clean build."); 709Debug.Trace("BuildManager", "EnsureFirstTimeInit: hash codes don't match. Old=" + 716Debug.Trace("BuildManager", "BuildManager: the special files are up to date"); 722Debug.Trace("BuildManager", _webHashFilePath + " changed - shutting down the app domain"); 723Debug.Trace("AppDomainFactory", "Shutting down appdomain because " + _webHashFilePath + " file changed"); 784Debug.Assert(PreStartInitStage == Compilation.PreStartInitStage.BeforePreStartInit); 813Debug.Assert(PreStartInitStage == Compilation.PreStartInitStage.AfterPreStartInit); 837Debug.Assert(assemblies != null); 838Debug.Assert(!String.IsNullOrEmpty(path)); 839Debug.Assert(!assemblies.Any(String.IsNullOrEmpty)); 970Debug.Assert(type != null); 971Debug.Assert(!String.IsNullOrEmpty(methodName)); 990Debug.Trace("BuildManager", "CompileCodeDirectory(" + virtualDir.VirtualPathString + ")"); 1049Debug.Trace("BuildManager", "CompileCodeDirectory generated assembly: " + 1060Debug.Assert(_appResourcesAssembly == null); 1160Debug.Assert(HostingEnvironment.IsHosted); 1358Debug.Assert(s_dynamicallyAddedReferencedAssembly != null); 1499Debug.Assert(result.DependenciesHashComputed); 1572Debug.Trace("BuildManager", "GetBuildResult(" + virtualPath + ")"); 1580Debug.Assert(!virtualPath.IsRelative); 1648Debug.Assert(circularReferenceChecker.Contains(virtualPath)); 1788Debug.Trace("BuildManager", "EnsureFirstTimeDirectoryInit(" + virtualDir + ")"); 1806Debug.Trace("BuildManager", "EnsureFirstTimeDirectoryInit: dirExists=" + dirExists); 2104Debug.Assert(virtualCodeDir.HasTrailingSlash); 2231Debug.Assert(key == key.ToLowerInvariant()); 2258Debug.Assert(slashIndex >= 0 || virtualPathString == "~"); 2263Debug.Assert(slashIndex != virtualPathString.Length - 1); 2308Debug.Assert(_caches[0] == _memoryCache); 2316Debug.Trace("BuildManager", "Didn't find '" + virtualPath + "' in memory cache before lock"); 2357Debug.Assert(_memoryCache != null); 2364Debug.Trace("BuildManager", "Found '" + virtualPath + "' in " + _caches[i]); 2377Debug.Assert(false); 2478Debug.Trace("BuildManager", "Failed to delete " + _precompTargetPhysicalDir + ". Sleeping and trying once more..."); 2482Debug.Trace("BuildManager", "Failed to delete " + _precompTargetPhysicalDir + ". Sleeping and trying once more..."); 2621Debug.Assert(PrecompilingForDeployment); 2662Debug.Assert(root != null && root.Name == "precompiledApp"); 2754Debug.Assert(fileEncoding != null); 2759Debug.Assert(!virtualPath.IsRelative); 2814Debug.Assert(dir != null); 3005Debug.Assert(result != null);
Compilation\BuildManagerHost.cs (4)
30using Debug = System.Web.Util.Debug; 108Debug.Trace("BuildManagerHost", "RegisterAssembly '" + assemblyName + "','" + assemblyLocation + "'"); 124Debug.Trace("BuildManagerHost", "ResolveAssembly '" + e.Name + "'"); 132Debug.Trace("BuildManagerHost", "ResolveAssembly: found");
Compilation\BuildProvider.cs (4)
211Debug.Assert(extension != null); 381Debug.Assert((resultFlags & 0xFFFF0000) == 0); 499Debug.Assert(type != null); 534Debug.Assert(attrs[0] is BuildProviderAppliesToAttribute);
Compilation\BuildProvidersCompiler.cs (5)
95Debug.Assert(!CbmGenerateOnlyMode); 317Debug.Assert(!_ignoreProvidersWithErrors); 368Debug.Assert(!(buildProvider is IgnoreFileBuildProvider)); 378Debug.Assert(retryIfDeletionHappens); 384Debug.Trace("WebDirectoryBatchCompiler", "Rerunning AddBuildProviders for '" +
Compilation\BuildResult.cs (23)
117Debug.Assert(false, "code=" + code); 172Debug.Assert(_virtualPathDependenciesHash == null); 186Debug.Assert(_virtualPathDependenciesHash == null); 208Debug.Assert(_virtualPathDependencies == null); 209Debug.Assert(sourceDependencies != null); 339Debug.Assert(_lock >= 0); 347Debug.Trace("BuildResult", "IsUpToDate: true since called less than 2 seconds ago. " 354Debug.Trace("BuildResult", "IsUpToDate returning true because it didn't get the lock"); 371Debug.Trace("BuildResult", "IsUpToDate: '" + VirtualPath + "' is out of date"); 378Debug.Trace("BuildResult", "IsUpToDate: '" + VirtualPath + "' is up to date"); 422Debug.Assert(customString != null); 434Debug.Assert(_customString != null); 499Debug.Trace("BuildResult", "GetPreservedAssembly: couldn't load assembly '" + assemblyName + "'; deleting associated files."); 667Debug.Assert(appInitializeType != null); 671Debug.Assert(_appInitializeMethod != null); 687Debug.Assert(_appInitializeMethod == null); 767Debug.Assert(_resourcesDependenciesHash == null); 769Debug.Assert(_resourcesDependenciesHash != null); 812set { Debug.Assert(false); } 918Debug.Assert(a != null); 984Debug.Assert(false, "BuildResultNoCompileTemplateControl"); 1099Debug.Assert(i == pageParser.SourceDependencies.Count); 1260Debug.Assert(FileUtil.FileExists(_ccuPreservationFileName), _ccuPreservationFileName);
Compilation\BuildResultCache.cs (30)
57Debug.Assert(!assembly.GlobalAssemblyCache); 62Debug.Assert(StringUtil.StringStartsWith(assemblyName, BuildManager.AssemblyNamePrefix)); 112Debug.Assert(!dependentList.Contains(name)); 119Debug.Trace("BuildResultCache", "Looking for '" + cacheKey + "' in the memory cache"); 126Debug.Trace("BuildResultCache", "'" + cacheKey + "' was not found in the memory cache"); 135Debug.Trace("BuildResultCache", "'" + cacheKey + "' was found but is out of date"); 140Debug.Assert(HttpRuntime.Cache.InternalCache.Get(key) == null); 145Debug.Trace("BuildResultCache", "'" + cacheKey + "' was found in the memory cache"); 156Debug.Trace("BuildResultCache", "Adding cache " + cacheKey + " in the memory cache"); 186Debug.Trace("BuildResultCache", "Adding marker cache entry " + compiledResult.ResultAssembly); 192Debug.Assert(a == compiledResult.ResultAssembly); 251Debug.Trace("BuildResultCache", "OnCacheItemRemoved Key=" + key); 344Debug.Trace("BuildResultCache", "removing cacheKey for assembly " + assemblyPath + " because of dependency change"); 425Debug.Trace("BuildResultCache", "Looking for '" + cacheKey + "' in the disk cache"); 435Debug.Trace("BuildResultCache", "'" + cacheKey + "' was found in the disk cache"); 437Debug.Trace("BuildResultCache", "'" + cacheKey + "' was not found in the disk cache"); 505Debug.Trace("DiskBuildResultCache", "RemoveAssemblyAndRelatedFiles(" + assemblyName + ")"); 583Debug.Trace("DiskBuildResultCache", "RemoveAssembly: " + f.Name + " was renamed"); 631Debug.Trace("DiskBuildResultCache", "TryDeleteFile removed " + f.Name); 651Debug.Trace("DiskBuildResultCache", "CheckAndRemoveDotDeleteFile deleted " + baseName); 660Debug.Trace("DiskBuildResultCache", "CheckAndRemoveDotDeleteFile deleted " + f.Name); 678Debug.Trace("DiskBuildResultCache", "CreateDotDeleteFile succeeded: " + newName); 681Debug.Trace("DiskBuildResultCache", "CreateDotDeleteFile failed: " + newName); 698Debug.Assert(cacheDir == HttpRuntime.CodegenDirInternal); 749Debug.Assert(hash != null && hash.Item1 != 0 && hash.Item2 != 0, "SavePreservedSpecialFilesCombinedHash: hash0 != 0, hash1 != 0"); 767Debug.Assert(_satelliteDirectories == null); 821Debug.Trace("BuildResultCache", "Deleting old temporary files from " + _cacheDir); 872Debug.Trace("BuildResultCache", "Deleting old temporary files: " + fileData.FullName); 881Debug.Trace("BuildResultCache", "Deleting codegen temporary resource directory: " + path); 896Debug.Trace("BuildResultCache", "Deleting all files from " + _cacheDir);
Compilation\ClientBuildManager.cs (35)
26using Debug = System.Web.Util.Debug; 270Debug.Assert(_appId != null); 271Debug.Assert(_appHost != null); 283Debug.Trace("CBM", "GetAppDomainShutdownDirectories"); 293Debug.Trace("CBM", "CompileApplicationDependencies"); 302Debug.Trace("CBM", "GetBrowserDefinitions"); 315Debug.Trace("CBM", "GetGeneratedSourceFile " + virtualPath); 331Debug.Trace("CBM", "GetGeneratedFileVirtualPath " + filePath); 346Debug.Trace("CBM", "GetHostedVirtualCodeDirectories"); 358Debug.Trace("CBM", "GetHostedVirtualCodeDirectories"); 378Debug.Trace("CBM", "GetCodeDirectoryInformation " + virtualCodeDir); 389Debug.Trace("CBM", "GetCodeDirectoryInformation " + virtualCodeDir + " end"); 399Debug.Trace("CBM", "GetCompilerParameters " + virtualPath); 417Debug.Trace("CBM", "GenerateCodeCompileUnit " + virtualPath); 427Debug.Trace("CBM", "GenerateCodeCompileUnit " + virtualPath); 441Debug.Trace("CBM", "GenerateCode " + virtualPath); 457Debug.Trace("CBM", "GetCompiledType " + virtualPath); 482Debug.Trace("CBM", "CompileFile " + virtualPath); 505Debug.Trace("CBM", "IsCodeAssembly " + assemblyName); 516Debug.Trace("CBM", "IsCodeAssembly " + result.ToString()); 522Debug.Trace("CBM", "Unload"); 548Debug.Trace("CBM", "PrecompileApplication"); 559Debug.Trace("CBM", "Started Unload"); 591Debug.Trace("CBM", "WaitForCallBack"); 598Debug.Trace("CBM", "timeout while waiting for callback"); 601Debug.Trace("CBM", "callback received before timeout"); 610Debug.Trace("CBM", "Initialize"); 632Debug.Trace("CBM", "EnsureHostCreated: after CreateHost()"); 639Debug.Trace("CBM", "EnsureHostCreated: failed. " + _hostCreationException); 648Debug.Trace("CBM", "CreateHost"); 649Debug.Assert(_host == null); 651Debug.Assert(!_hostCreationPending, "CreateHost: creation already pending"); 702Debug.Trace("CBM", "CreateHost LEAVE"); 707Debug.Trace("CBM", "OnAppDomainUnloaded " + reason.ToString()); 728Debug.Trace("CBM", "OnAppDomainUnloadedCallback");
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (1)
24Debug.Assert(_targetFrameworkProvider != null, "_targetFrameworkProvider should not be null");
Compilation\CodeDirectoryCompiler.cs (8)
77Debug.Assert(result is BuildResultCompiledAssembly); 83Debug.Assert(dirType == CodeDirectoryType.MainCode); 84Debug.Assert(_mainCodeBuildResult == null); 149Debug.Assert(supportLocalization); 173Debug.Assert(result == null); 174Debug.Assert(resultAssembly == null); 184Debug.Trace("CodeDirectoryCompiler", results.PathToAssembly + " is already loaded. Waiting a bit"); 190Debug.Trace("CodeDirectoryCompiler", "Timeout waiting for old assembly to unload: " + results.PathToAssembly);
Compilation\CompilationLock.cs (7)
21using Debug = System.Web.Util.Debug; 64Debug.Trace("Mutex", "Creating Mutex " + MutexDebugName); 69Debug.Trace("Mutex", "Failed to create Mutex " + MutexDebugName); 74Debug.Trace("Mutex", "Successfully created Mutex " + MutexDebugName); 117Debug.Trace("Mutex", "Waiting for mutex " + MutexDebugName); 130Debug.Trace("Mutex", "Got mutex " + MutexDebugName); 140Debug.Trace("Mutex", "Releasing mutex " + MutexDebugName);
Compilation\CompilationUtil.cs (3)
512Debug.Assert(codeDomProviderType != null, "codeDomProviderType should not be null"); 551Debug.Assert(ci != null, "CompilerInfo ci should not be null"); 641Debug.Assert(version.Length > 1, "Version has invalid length");
Compilation\CompilerTypeWithParams.cs (1)
41Debug.Assert(codeDomProviderType != null);
Compilation\ExpressionBuilder.cs (1)
85Debug.Assert(expressionBuilderType != null, "expressionBuilderType should not be null");
Compilation\ForceCopyBuildProvider.cs (1)
22Debug.Assert(false);
Compilation\IgnoreFileBuildProvider.cs (1)
22Debug.Assert(false);
Compilation\MultiTargetingUtil.cs (1)
80Debug.Assert(s_targetFrameworkName != null, "s_targetFrameworkName should not be null");
Compilation\PageCodeDomTreeGenerator.cs (3)
16using Debug = System.Web.Util.Debug; 83Debug.Assert(Parser.SourceDependencies != null); 583Debug.Assert(methodInfo != null);
Compilation\PageThemeCodeDomTreeGenerator.cs (4)
18using Debug=System.Web.Util.Debug; 209Debug.Assert(typeof(Control).IsAssignableFrom(ctrlType)); 210Debug.Assert(ThemeableAttribute.IsTypeThemeable(ctrlType)); 285Debug.Assert(pse is ComplexPropertyEntry);
Compilation\PreservationFileReader.cs (11)
39Debug.Trace("PreservationFileReader", "Can't find preservation file " + Path.GetFileName(preservationFile)); 73Debug.Assert(_root != null && _root.Name == "preserve", "_root != null && _root.Name == \"preserve\""); 94Debug.Assert(hashString != null, "hashString != null"); 121Debug.Trace("PreservationFileReader", Path.GetFileName(preservationFile) + 137Debug.Trace("PreservationFileReader", Path.GetFileName(preservationFile) + 183Debug.Assert(dependenciesNode.Attributes.Count == 0); 187Debug.Assert(_sourceDependencies == null); 193Debug.Assert(false, dependenciesNode.Name); 209Debug.Assert(dependencyNode.Name.Equals(tagName)); 215Debug.Assert(fileName != null, "fileName != null"); 218Debug.Assert(dependencyNode.Attributes.Count == 0);
Compilation\PreservationFileWriter.cs (2)
48Debug.Assert(result.GetCode() != BuildResultTypeCode.Invalid); 59Debug.Assert(hash != 0, "hash != 0");
Compilation\ProfileBuildProvider.cs (1)
76Debug.Assert(false);
Compilation\ResourceExpressionBuilder.cs (2)
198Debug.Assert(pd != null); 203Debug.Assert(converter != null);
Compilation\SimpleHandlerBuildProvider.cs (3)
33Debug.Assert(_parser == null); 46Debug.Assert(_parser != null); 90Debug.Assert(results != null);
Compilation\TemplateControlCodeDomTreeGenerator.cs (3)
18using Debug=System.Web.Util.Debug; 287Debug.Assert(ctor != null); 288Debug.Assert(ctor.GetParameters().Length > 0);
Compilation\TimeStampChecker.cs (8)
14using Debug = System.Web.Util.Debug; 29Debug.Trace("TimeStampChecker", "Creating new TimeStampChecker"); 49Debug.Trace("TimeStampChecker", "AddFileInternal: Same time stamp (" + path + ")"); 56Debug.Trace("TimeStampChecker", "AddFileInternal: Changed time stamp (" + path + ")"); 62Debug.Trace("TimeStampChecker", "AddFileInternal: New path (" + path + ")"); 74Debug.Trace("TimeStampChecker", "CheckFilesStillValidInternal (" + key + ")"); 88Debug.Trace("TimeStampChecker", "CheckFilesStillValidInternal: File (" + path + ") has changed!"); 94Debug.Trace("TimeStampChecker", "CheckFilesStillValidInternal (" + key + ") is still valid");
Compilation\WebReferencesBuildProvider.cs (2)
58Debug.Assert(StringUtil.StringStartsWithIgnoreCase( 69Debug.Assert(rootWebRefDirVirtualPath.HasTrailingSlash);
Configuration\AssemblyInfo.cs (3)
74Debug.Trace("AssemblyInternal", "Loading assembly: " + Assembly); 76Debug.Assert(_compilationSection != null); 82Debug.Trace("AssemblyInternal", "Set assembly: " + Assembly);
Configuration\AuthenticationConfig.cs (2)
41Debug.Assert(BuildManager.PreStartInitStage == PreStartInitStage.DuringPreStartInit); 42Debug.Assert(value == AuthenticationMode.Forms, "Only Forms mode can be set to override config");
Configuration\BrowserCapabilitiesCodeGenerator.cs (9)
293Debug.Assert(node.Name == "defaultBrowser"); 674Debug.Assert(_browserTree != null); 766Debug.Assert(bd != null); 774Debug.Assert(bd != null); 780Debug.Assert(bd != null); 856Debug.Assert(fileReadAccess != null); 912Debug.Assert(!(bd is GatewayDefinition)); 932Debug.Assert(!(bd is GatewayDefinition)); 1007Debug.Assert(!(bd is GatewayDefinition));
Configuration\BrowserDefinition.cs (1)
577Debug.Assert(definition.IsRefID);
Configuration\BufferModeSettings.cs (1)
211Debug.Assert(value is BufferModeSettings);
Configuration\BuildProvider.cs (2)
102Debug.Assert(_info != null); 113Debug.Assert(buildProvider != null);
Configuration\CompilationSection.cs (4)
719System.Web.Util.Debug.Assert(HttpRuntime.TrustLevel != null); 764System.Web.Util.Debug.Assert(HttpRuntime.TrustLevel != null); 829System.Web.Util.Debug.Trace("LoadAssembly", "Successfully loaded assembly '" + assemblyName + "'"); 844System.Web.Util.Debug.Trace("Template", "Failed to access bin dir \"" + binPath + "\"");
Configuration\ConfigUtil.cs (3)
35Debug.Assert((propertyName != null) != (node != null)); 129Debug.Assert(propInfo != null); 130Debug.Assert(propInfo.Type.IsInstanceOfType(newDefaultValue));
Configuration\EventMappingSettings.cs (1)
56get { Debug.Assert(_type != null, "_type != null"); return _type; }
Configuration\ExpressServerConfig.cs (2)
86Debug.Assert(false, "siteID is not numeric"); 319Debug.Assert(!String.IsNullOrEmpty(siteName), "!String.IsNullOrEmpty(siteName), siteArg=" + siteArgument);
Configuration\FolderLevelBuildProvider.cs (1)
115Debug.Assert(attrs[0] is FolderLevelBuildProviderAppliesToAttribute);
Configuration\HandlerFactoryWrapper.cs (1)
37Debug.Assert(handler == _handler);
Configuration\HealthMonitoringSectionHelper.cs (11)
135Debug.Assert(eventMappingSettings.ElementInformation.Properties[attribute].LineNumber != 0, 203Debug.Trace("BuildRuleInfos", "BuildRuleInfos called"); 238Debug.Assert(ruleInfo._referencedProvider == null, "ruleInfo._referencedProvider == null"); 246Debug.Assert(provider != null, "provider != null"); 256Debug.Assert(profileSettings != null, "profileSettings != null"); 371Debug.Assert(customWebEventKey != null); 442Debug.Assert(customWebEventKey != null); 540Debug.Assert(type != null, "type != null"); 565Debug.Trace("ProviderInstances", "Create a provider instance: " + 572Debug.Assert(provider != null, "provider != null"); 595Debug.Trace("ProviderInstances", "Remove " + (string)o + " from providers");
Configuration\HttpCapabilitiesBase.cs (1)
31using Debug=System.Web.Util.Debug;
Configuration\HttpConfigurationSystem.cs (6)
26using Debug = System.Web.Util.Debug; 127Debug.Assert(s_httpConfigSystem != null, "s_httpConfigSystem != null - The appdomain is using the client configuration system."); 131Debug.Assert(!s_initComplete, "!s_initComplete"); 150Debug.Assert(s_httpConfigSystem == null, "s_httpConfigSystem == null"); 209Debug.Assert(UseHttpConfigurationSystem, "UseHttpConfigurationSystem"); 227Debug.Assert(UseHttpConfigurationSystem, "UseHttpConfigurationSystem");
Configuration\IdentitySection.cs (3)
253Debug.Trace("Token", "Token " + token + " for (" + name + "," + password + ") obtained via ISAPI"); 263Debug.Trace("Token", "Token " + token + " for (" + name + "," + password + ") obtained directly"); 271Debug.Trace("Token", "Failed to create token for (" + name + "," + password + ")");
Configuration\IgnoreDeviceFilterElement.cs (1)
73Debug.Assert((value != null) && (value is IgnoreDeviceFilterElement));
Configuration\LowerCaseStringConverter.cs (2)
107Debug.Assert(data != null); 108Debug.Assert(data is string);
Configuration\MachineKeySection.cs (1)
568Debug.Assert(iv != null, "Invalid value for IVType: " + ivType.ToString("G"));
Configuration\MetabaseServerConfig.cs (1)
389Debug.Trace("MapPath", "IsapiAppHostMapPath(" + path + ") returns " + r);
Configuration\PassportAuthentication.cs (1)
134Debug.Assert(value is PassportAuthentication);
Configuration\ProcessHostMapPath.cs (9)
50Debug.Assert(IntPtr.Zero != configSystem, "null != configSystem"); 74Debug.Trace("MapPath", "ProcHostMP.GetRootWebConfigFilename = " + 77Debug.Assert(!String.IsNullOrEmpty(rootWeb), "rootWeb != null or empty"); 91Debug.Trace("MapPath", "ProcHostMP.GetPathConfigFilename(" + siteID + ", " + path + ")\n" + 111Debug.Trace("MapPath", "ProcHostMP.GetDefaultSiteNameAndID\n"); 118Debug.Trace("MapPath", "ProcHostMP.ResolveSiteArgument(" + siteArgument + ")\n"); 160Debug.Assert(!String.IsNullOrEmpty(siteName), "!String.IsNullOrEmpty(siteName), siteArg=" + siteArgument); 164Debug.Trace("MapPath", "ProcHostMP.MapPath(" + siteID + ", " + path + ")\n"); 188Debug.Trace("MapPath", "ProcHostMP.GetAppPathForPath(" + siteID + ", " + path.VirtualPathString + ")\n");
Configuration\ProcessHostServerConfig.cs (2)
57Debug.Assert(IntPtr.Zero != configSystem, "null != configSystem"); 76Debug.Assert(false, "siteID is not numeric");
Configuration\ProtocolsConfigurationHandler.cs (1)
47Debug.Assert(parent == null, "<protocols> config is only allowed in machine.config");
Configuration\RuleInfoComparer.cs (1)
63Debug.Trace("RuleInfoComparer", "xType=" + xType.ToString() +
Configuration\WebConfigurationHost.cs (2)
128Debug.Assert(!String.IsNullOrEmpty(appSiteID), "No appSiteID found when site argument is null"); 219Debug.Assert(configMapPath == null || useConfigMapPath, "non-null configMapPath without useConfigMapPath == true");
DataAccess\SqlConnectionHelper.cs (2)
72System.Web.Util.Debug.Assert((specifiedConnectionString != null) && (specifiedConnectionString.Length != 0)); 292System.Web.Util.Debug.Assert(_Connection != null);
ErrorFormatter.cs (2)
61using Debug=System.Web.Util.Debug; 277Debug.Assert(preferredRenderingType != null);
FileChangesMonitor.cs (35)
169Debug.Trace("GetDacl", "Returning null dacl"); 181Debug.Trace("GetDacl", "Error in first call to GetFileSecurity: 0x" + hr.ToString("x", NumberFormatInfo.InvariantInfo)); 203Debug.Trace("GetDacl", "Interning new dacl, length " + dacl.Length); 210Debug.Trace("GetDacl", "Returning dacl, length " + dacl.Length); 420Debug.Trace("FileChangesMonitor", "DirMonCompletion::ctor " + dir + " " + watchSubtree.ToString() + " " + notifyFilter.ToString(NumberFormatInfo.InvariantInfo)); 468Debug.Trace("FileChangesMonitor", "DirMonCompletion::Dispose"); 1008Debug.Assert(fileName == null, "fileName == null"); 1009Debug.Assert(action != FileAction.Overwhelming, "action != FileAction.Overwhelming"); 1035Debug.Assert((int) action >= 1 && fileName != null && fileName.Length > 0, 1081Debug.Assert(StringUtil.EqualsIgnoreCase(fileMon.FileNameLong, ffd.FileNameLong), 1154Debug.Dump("FileChangesMonitor", HttpRuntime.FileChangesMonitor); 1195Debug.Assert(action == FileAction.Modified, "action == FileAction.Modified"); 1295Debug.Trace(Debug.TAG_INTERNAL, 1300Debug.TraceException(Debug.TAG_INTERNAL, ex); 1324Debug.Trace("FileChangesMonitorFireNotification", "Firing change event" + 1331Debug.Trace(Debug.TAG_INTERNAL, 1336Debug.TraceException(Debug.TAG_INTERNAL, ex); 1671Debug.Trace("FileChangesMonitor", "StartMonitoringFile\n" + "\tArgs: File=" + alias + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1748Debug.Dump("FileChangesMonitor", this); 1764Debug.Trace("FileChangesMonitor", "StartMonitoringPath\n" + "\tArgs: File=" + alias + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1881Debug.Dump("FileChangesMonitor", this); 1897Debug.Trace("FileChangesMonitor", "StartMonitoringDirectoryRenamesAndBinDirectory\n" + "\tArgs: File=" + dir + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1950Debug.Trace("FileChangesMonitor", "StartListeningToVirtualSubdirectory\n" + "\tArgs: virtualDir=" + virtualDir); 2006Debug.Trace("ListenToSubDir", dirRoot + " " + dirToListenTo); 2048Debug.Trace("FileChangesMonitor", "OnSubdirChange\n" + "\tArgs: Action=" + e.Action + "; fileName=" + e.FileName); 2052Debug.Trace("FileChangesMonitor", "Firing subdir change event\n" + "\tArgs: Action=" + e.Action + "; fileName=" + e.FileName + "; Target=" + handler.Target + "(HC=" + handler.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 2073Debug.Trace("FileChangesMonitor", "OnCriticaldirChange\n" + "\tArgs: Action=" + e.Action + "; fileName=" + e.FileName); 2089Debug.Trace("FileChangesMonitor", "StopMonitoringFile\n" + "File=" + alias + "; Callback=" + target); 2147Debug.Trace("FileChangesMonitor", "StopMonitoringFile\n" + "File=" + alias + "; Callback=" + target); 2274Debug.Trace("FileChangesMonitor", "Stop!"); 2329Debug.Dump("FileChangesMonitor", this);
Handlers\AssemblyResourceLoader.cs (3)
145Debug.Assert(assemblyInfo != null, "Assembly info should not be null"); 193Debug.Assert(assembly != null, "Type.Assembly should never be null."); 525Debug.Assert(separatorIndex != -1, "The decrypted data must contain a separator.");
Hosting\AppDomainFactory.cs (1)
182Debug.Trace("internal", "AppDomainFactory::Create failed with " + e.GetType().FullName + ": " + e.Message + "\r\n" + e.StackTrace);
Hosting\ApplicationManager.cs (7)
830Debug.Trace("AppManager", "CreateObjectInNewWorkerAppDomain, type=" + type.FullName); 899Debug.Trace("AppManager", "CreateAppDomainWithHostingEnvironment, path=" + physicalPath + "; appId=" + appId + "; domainId=" + domainId); 1224Debug.Trace("AppManager", "AppDomain.CreateDomain failed", e); 1447Debug.Assert(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory)); 1492Debug.Assert(!foundGacCondition); 1611Debug.Assert(hostExecutionContextManager is HostExecutionContextManager || hostExecutionContextManager.GetType() == typeof(object), "THostExecutionContextManager was an unexpected type!"); 1617Debug.Assert(hostSecurityManager is HostSecurityManager || hostSecurityManager.GetType() == typeof(object), "THostSecurityManager was an unexpected type!");
Hosting\AsyncResultBase.cs (3)
66Debug.Assert(originalThread == null, "Another thread already called MarkCallToBeginMethodStarted."); 71Debug.Assert(originalThread == Thread.CurrentThread, "This thread did not call MarkCallToBeginMethodStarted."); 84Debug.Assert(error != null);
Hosting\BackgroundWorkScheduler.cs (2)
22Debug.Assert(unregisterCallback != null); 59Debug.Assert(workItem != null);
Hosting\CustomRuntimeManager.cs (1)
91Debug.Assert(removed, "Entry did not exist in the dictionary; was it removed twice?");
Hosting\HostingEnvironment.cs (20)
233Debug.Trace("PipelineRuntime", "HE.OnAppDomainUnload"); 322Debug.Assert(File.Exists(rootWebConfigPath), "File.Exists(rootWebConfigPath)"); 544Debug.Trace("HostingEnvironmentShutdown", "Shutting down: appId=" + _appId); 548Debug.Trace("HostingEnvironmentShutdown", "No registered objects"); 558Debug.Trace("HostingEnvironmentShutdown", "All registered objects gone after Stop(false)"); 569Debug.Trace("HostingEnvironmentShutdown", "Waiting for " + shutdownTimeoutSeconds + " sec..."); 576Debug.Trace("HostingEnvironmentShutdown", "Shutdown timeout (" + shutdownTimeoutSeconds + " sec) expired"); 583Debug.Trace("HostingEnvironmentShutdown", "All registered objects gone after Stop(true)"); 589Debug.Trace("HostingEnvironmentShutdown", "Forced shutdown: " + _registeredObjects.Count + " registered objects left"); 599Debug.Trace("AppManager", "HostingEnvironment.InitiateShutdownInternal appId=" + _appId); 685Debug.Trace("AppManager", "Removing HostingEnvironment from AppManager table, appId=" + _appId); 710Debug.Trace("AppManager", "HostingEnvironment - shutting down AppDomain, appId=" + _appId); 1049Debug.Assert(virtualPath != null); 1057Debug.Trace("MapPath", reqpath +" is the app path"); 1068Debug.Trace("MapPath", "Missing _configMapPath"); 1071Debug.Trace("MapPath", "call ConfigMapPath (" + reqpath + ")"); 1095Debug.Trace("MapPath", "null Result"); 1115Debug.Trace("MapPath", " result=" + result); 1187Debug.Assert(workItem != null); 1656Debug.Assert(baseVirtualDir != null, "baseVirtualDir != null");
Hosting\IIS7WorkerRequest.cs (24)
187Debug.Trace("ClientUrl", " *********** NEW REQUEST ****************"); 253Debug.Assert(hr == 0); // also ignore the HRESULT, as we can't do anything about it right now 358Debug.Trace("ClientUrl", "*** GetRawUrl --> " + rawUrl + " ***"); 940Debug.Trace("IIS7WorkerRequest", 950Debug.Trace("IIS7WorkerRequest", 959Debug.Trace("IIS7WorkerRequest", 974Debug.Trace("IIS7WorkerRequest", 989Debug.Trace("IIS7WorkerRequest", 1035Debug.Trace("IIS7WorkerRequest", 1065Debug.Trace("IIS7WorkerRequest", 1094Debug.Trace("IIS7WorkerRequest", "FlushResponse( " + finalFlush + ")"); 1324Debug.Assert(null !=bytes, "null != bytes"); 1413Debug.Trace("IIS7WorkerRequest", "FlushCore with " + 1628Debug.Trace("IIS7WorkerRequest", "RewriteNotifyPipeline(" + newPath + ")"); 1723Debug.Assert(numFragments > startFragments, "numFragments > startFragments"); 1881Debug.Assert(fragmentTypes[i] <= 1, "invalid fragment type"); 2019Debug.Assert(HttpWorkerRequest.HeaderUserAgent == 39, "HttpWorkerRequest.HeaderUserAgent == 39"); 2109Debug.Trace("IIS7ServerVarChanges", "Server Variable Changed: name=" + name + ", value=" + value); 2154Debug.Assert(HttpWorkerRequest.HeaderUserAgent == 39, "HttpWorkerRequest.HeaderUserAgent == 39"); 2155Debug.Assert(HttpWorkerRequest.RequestHeaderMaximum == 40, "HttpWorkerRequest.RequestHeaderMaximum == 40"); 2189Debug.Trace("IIS7ServerVarChanges", "Known Request Header Changed: name=" + name + ", value=" + value); 2193Debug.Trace("IIS7ServerVarChanges", "Known Response Header Changed: name=" + name + ", value=" + value); 2215Debug.Trace("IIS7ServerVarChanges", "Unknown Request Header Changed: name=" + name + ", value=" + value); 2219Debug.Trace("IIS7ServerVarChanges", "Unknown Response Header Changed: name=" + name + ", value=" + value);
Hosting\IPipelineRuntime.cs (11)
238Debug.Trace("PipelineDomain", "RegisterObject(this) called"); 247Debug.Trace("PipelineDomain", "StartProcessing AppId = " + s_thisAppDomainsIsapiAppId); 253Debug.Trace("PipelineDomain", "StopProcessing with stack = " + Environment.StackTrace 411Debug.Assert(pManagedRootedObjects != IntPtr.Zero); 414Debug.Assert(rootObj != null); 417Debug.Assert(workerRequest != null); 527Debug.Assert(root != null, "We should have a RootedObjects instance by this point."); 528Debug.Assert(wr != null, "We should have an IIS7WorkerRequest instance by this point."); 707Debug.Trace("PipelineDomain", "IRegisteredObject.Stop appId = " + 720Debug.Trace("PipelineDomain", "SetThisAppDomainsPipelineAppId appId=" + appId); 737Debug.Trace("PipelineDomain", "Calling MgdAppDomainShutdown appId=" +
Hosting\ISAPIRuntime.cs (3)
117Debug.Trace("ISAPIRuntime", "StartProcessing"); 130Debug.Trace("ISAPIRuntime", "StopProcessing"); 240Debug.Trace("ISAPIRuntime", "Calling UnsafeNativeMethods.AppDomainRestart appId=" + appId);
Hosting\ISAPIWorkerRequest.cs (15)
1376Debug.Assert(offset64 < Int32.MaxValue); 1377Debug.Assert(length64 < Int32.MaxValue); 1384Debug.Assert(offset < length); 1386Debug.Assert((f.Length - offset) == length); 1865Debug.Assert(_additionalServerVars == null); 2105Debug.Trace("ClientUrl", "*** GetRawUrl --> " + rawUrl + " ***"); 2156Debug.Assert(_basicServerVars == null); 2202Debug.Assert(_additionalServerVars == null); 2384Debug.Assert(0 <= finalStatus && finalStatus <= 2); 2709Debug.Trace("ExecuteUrl", "ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl: url=\"" + url + "\"."); 2739Debug.Trace("ExecuteUrl", "ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl: failed!"); 2754Debug.Trace("ExecuteUrl", "ISAPIWorkerRequestInProcForIIS6.EndExecuteUrl"); 2769Debug.Trace("ExecuteUrl", "ISAPIWorkerRequestInProcForIIS6.OnExecuteUrlCompletion"); 2919Debug.Assert(offset64 < Int32.MaxValue); 2920Debug.Assert(length64 < Int32.MaxValue);
Hosting\MapPathBasedVirtualPathProvider.cs (1)
166Debug.Assert(_ffd == null);
Hosting\ProcessHost.cs (9)
346Debug.Trace("internal", "ProcessHost::ctor failed with " + e.GetType().FullName + ": " + e.Message + "\r\n" + e.StackTrace); 688Debug.Assert(_functions != null, "_functions != null"); 845Debug.Assert(customRuntime != null); 931Debug.Assert( !String.IsNullOrEmpty(physicalPath), "!String.IsNullOrEmpty(physicalPath)"); 1161Debug.Assert(callback != null); 1258Debug.Fail("The provided HRESULT should've represented a failure."); 1325Debug.Assert( HostingEnvironment.IsHosted, "HostingEnvironment.IsHosted" ); 1326Debug.Assert( null != handler, "null != handler" ); 1330Debug.Assert(null != unwrappedProxy, "null != unwrappedProxy");
Hosting\ProcessHostSupportFunctionsExtensions.cs (4)
20Debug.Assert(supportFunctions != null); 21Debug.Assert(!String.IsNullOrWhiteSpace(appId)); 22Debug.Assert(!String.IsNullOrWhiteSpace(appVirtualPath) && appVirtualPath[0] == '/'); 23Debug.Assert(relativePath != null);
Hosting\SimpleApplicationHost.cs (1)
20using Debug = System.Web.Util.Debug;
Hosting\SuspendManager.cs (4)
24Debug.Assert(o != null); 29Debug.Assert(o != null); 96if (Debug.IsDebuggerPresent()) { 146Debug.Assert(!_resumeWasCalled, "Resume was called too many times!");
Hosting\VirtualPathProvider.cs (1)
184Debug.Assert(virtualDir.HasTrailingSlash);
HttpApplication.cs (26)
237Debug.Assert(_moduleIndexMap != null && _moduleIndexMap.Count > 0, "_moduleIndexMap != null && _moduleIndexMap.Count > 0"); 430Debug.Assert(_state != null); // app state always available 571Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 576Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 707Debug.Assert(container != null, "container != null"); 1527Debug.Assert(paramCount == 2); 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"); 1763Debug.Trace("PipelineRuntime", "InitSpecial for " + appContext.ToString() + "\n"); 1909Debug.Assert(reflectionEvent != null); 2345Debug.Assert(null != _moduleConfigInfo, "null != _moduleConfigInfo"); 2729Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 2746Debug.Trace("PipelineRuntime", "BeginProcessRequestNotification"); 2828Debug.Assert(!String.IsNullOrEmpty(moduleName), "!String.IsNullOrEmpty(moduleName)"); 2829Debug.Trace("PipelineRuntime", "AddEventMapping: for " + moduleName + 3132Debug.Trace("PipelineRuntime", "AsyncStep.OnAsyncEventCompletion"); 3394Debug.Assert(context.ConfigurationPath == context.Request.FilePathObject, "context.ConfigurationPath (" + 3879Debug.Trace("Async", "HttpApplication.ResumeSteps"); 4004Debug.Trace("PipelineRuntime", "BuildSteps"); 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."); 4459Debug.Assert(executionStep != null);
HttpApplicationFactory.cs (2)
301Debug.Trace("PipelineRuntime", "ReflectOnApplicationType"); 341Debug.Trace("AppDomainFactory", "Shutting down appdomain because of application file change");
HttpAsyncResult.cs (2)
112Debug.Assert(originalThread == null, "Another thread already called MarkCallToBeginMethodStarted."); 117Debug.Assert(originalThread == Thread.CurrentThread, "This thread did not call MarkCallToBeginMethodStarted.");
HttpCacheParams.cs (3)
53Debug.Assert(parameters.Length == 1, "parameters.Length == 1"); 58Debug.Assert(parameters.Length == 1, "parameters.Length == 1"); 115Debug.Assert(j == c, "j == c");
HttpCachePolicy.cs (5)
28using Debug = System.Web.Util.Debug; 313Debug.Assert(_validationCallbackInfo[i].data == null, "_validationCallbackInfo[i].data == null"); 821Debug.Assert(_privateFields.Size > 0); 836Debug.Assert(_noCacheFields.Size > 0); 1183Debug.Assert(_utcTimestampCreated != DateTime.MinValue, "_utcTimestampCreated != DateTime.MinValue");
HttpCacheVary.cs (2)
56Debug.Assert(headers.Length == 1, "headers.Length == 1"); 137Debug.Assert(j == c, "j == c");
HttpContext.cs (2)
1013Debug.Assert(_sessionStateModule != null, "_sessionStateModule != null"); 1890Debug.Assert(_traceContextStack != null);
HttpDebugHandler.cs (10)
162Debug.Trace("AutoAttach", "No debug command!!"); 168Debug.Trace("AutoAttach", "Debug command: " + command); 185Debug.Trace("AutoAttach", "Authentication type string: " + ((authType != null) ? authType : "NULL")); 186Debug.Trace("AutoAttach", "Logon user string: " + ((logonUser != null) ? logonUser : "NULL")); 190Debug.Trace("AutoAttach", "Invalid logon_user or auth_type string."); 199Debug.Trace("AutoAttach", "DebugSessionID: " + ((sessId != null) ? sessId : "NULL")); 225Debug.Trace("AutoAttach", "Debug attach not attempted because of invalid CLSID."); 242Debug.Trace("AutoAttach", "Debug attach failed! Return code: " + rc); 248Debug.Trace("AutoAttach", "Debug attach successful!"); 255Debug.Trace("AutoAttach","Http Debug attach done!");
HttpHeaderCollection.cs (1)
100Debug.Assert(_iis7WorkerRequest != null, "_iis7WorkerRequest != null");
HttpRequest.cs (5)
213Debug.Assert(rawContent != null); 1173Debug.Assert(_wr != null); 1415Debug.Assert(_wr != null); 1462Debug.Trace("ClientUrl", "*** ClientFilePath --> " + _clientFilePath + " ***"); 1675Debug.Assert(_wr != null);
HttpResponse.cs (10)
533Debug.Assert(!this.HeaderEncoding.Equals(Encoding.Unicode)); 1202Debug.Trace("internal", "errorFormatter's type = " + errorFormatter.GetType()); 1476Debug.Assert(_wr is IIS7WorkerRequest, "_wr is IIS7WorkerRequest"); 2556Debug.Assert(CanExecuteUrlForEntireResponse); 2601Debug.Trace("ExecuteUrl", "HttpResponse.BeginExecuteUrlForEntireResponse:" + 2628Debug.Trace("ExecuteUrl", "HttpResponse.EndExecuteUrlForEntireResponse"); 2706Debug.Trace("WriteVirtualFile", vf.Name); 3213Debug.Trace("ClientUrl", "*** SetAppPathModifier (" + appPathModifier + ") ***"); 3267Debug.Assert(virtualPath.Length >= appPath.Length); 3320Debug.Assert(!url.Contains("?"), "Querystring should have been stripped off.");
HttpRuntime.cs (39)
320Debug.Assert(HostingEnvironment.IsHosted); 333Debug.Assert(!HostingEnvironment.IsHosted); 550Debug.Trace("AppDomainFactory", "HostingInit failed. " + e.ToString()); 980Debug.Assert(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory)); 1193Debug.Trace("ThreadPool", "SetThreadLimit: from " + workerMax + "," + ioMax + " to " + pmConfig.DefaultMaxWorkerThreadsForAutoConfig + "," + pmConfig.DefaultMaxIoThreadsForAutoConfig); 1220Debug.Trace("ThreadPool", "SetThreadLimit: from " + workerMax + "," + ioMax + " to " + pmConfig.MaxWorkerThreadsTimesCpuCount + "," + pmConfig.MaxIoThreadsTimesCpuCount); 1252Debug.Trace("AppOffline", "File " + appOfflineFile + " exists. Using it."); 1312Debug.Trace("HealthMonitor", "Initalizing: ResponseDeadlockInterval=" + deadLockInterval); 1529Debug.Assert(status != RequestNotificationStatus.Pending, "status != RequestNotificationStatus.Pending"); 1609Debug.Trace("AppDomainFactory", "Shutting down appdomain because of HostingInit error"); 1813Debug.Trace("AppDomainFactory", "Shutting down appdomain because of HostingInit error"); 1869Debug.Trace("AppDomainFactory", "ReleaseResourcesAndUnloadAppDomain, Id=" + _appDomainAppId 1895Debug.Assert(false); 1898Debug.Trace("AppDomainFactory", "AppDomain.Unload exception: " + e + "; Id=" + _appDomainAppId); 2055Debug.Trace("PipelineRuntime", "OnRequestNotificationCompletion: completed synchronously"); 2059Debug.Trace("PipelineRuntime", "OnRequestNotificationCompletion: completed asynchronously"); 2084Debug.Trace("PipelineRuntime", "OnRequestNotificationCompletion(" + status + ")"); 2115Debug.Trace("PipelineRuntime", "HttpRuntime.EndOfSendCallback"); 2126Debug.Trace("AppDomainFactory", "Shutting down appdomain because of bin dir change or directory rename." + 2152Debug.Trace("AppDomainFactorySpecial", "Call SetUserForcedShutdown: FileName=" + e.FileName + "; now=" + DateTime.Now); 2240Debug.Trace("AppDomainFactory", "ShutdownAppDomain IGNORED (1st request is not done yet), Id = " + AppDomainAppId); 2275Debug.Trace("AppDomainFactory", "ShutdownAppDomain, Id = " + AppDomainAppId + ", ShutdownInProgress=" + ShutdownInProgress 2308Debug.Trace("AppDomainFactory", "Unexpected AppDomainUnload"); 2327Debug.Trace("AppDomainFactory", "Shutting down appdomain because of config change"); 2423Debug.Trace("AppDomainFactory", "HttpRuntime.Close, ShutdownInProgress=" + ShutdownInProgress); 2509Debug.Assert(IsTrustLevelInitialized); 2549Debug.Assert(TrustLevel != null || !HostingEnvironment.IsHosted, "TrustLevel != null || !HostingEnvironment.IsHosted"); 2580Debug.Assert(TrustLevel != null || !HostingEnvironment.IsHosted); 2607Debug.Assert(TrustLevel != null || !HostingEnvironment.IsHosted); 2636Debug.Assert(TrustLevel != null || !HostingEnvironment.IsHosted); 2679Debug.Assert(TrustLevel != null || !HostingEnvironment.IsHosted); 3177Debug.Assert(!foundGacCondition); 3286Debug.Assert(policyLevel != null); 3301Debug.Trace("AppDomainFactory", "Shutting down appdomain because code-access security policy file changed"); 3314Debug.Trace("AppOffline", AppOfflineFileName + " changed - shutting down the app domain"); 3315Debug.Trace("AppDomainFactory", "Shutting down appdomain because " + AppOfflineFileName + " file changed"); 3352Debug.Assert(AppDomainAppId != null); 3372Debug.Trace("RestrictIISFolders", "Cannot restrict folder access for '" + AppDomainAppId + "'."); 3476Debug.Trace("FastCreatePublicInstance", "Creating generator for type " + type.FullName);
HttpServerVarsCollection.cs (3)
39Debug.Assert( _request != null ); 285Debug.Assert(name != null); 286Debug.Assert(value != null);
HttpWriter.cs (8)
559Debug.Assert(s != null, "s != null"); 596Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 905Debug.Assert(HttpRuntime.UseIntegratedPipeline); 1010Debug.Assert(numChars > 0); 1042Debug.Assert(free >= estByteSize); 1218Debug.Assert(dstIndex <= srcIndex); 1446Debug.Assert(_filterSink != null); 1505Debug.Assert(_filterSink != null);
ImplicitAsyncPreloadModule.cs (4)
40Debug.Assert(_inputStream == null); 67Debug.Trace("AsyncPreload", " *** AsyncPreload skipped *** "); 72Debug.Trace("AsyncPreload", " *** AsyncPreload started *** "); 99Debug.Trace("AsyncPreload", " *** AsyncPreload finished *** ");
IntSecurity.cs (12)
28Debug.Trace("Permissions", "Unrestricted Set"); 38Debug.Trace("Permissions", "UnmanagedCode"); 48Debug.Trace("Permissions", "ControlPrincipal"); 58Debug.Trace("Permissions", "Reflection"); 68Debug.Trace("Permissions", "AppPathDiscovery"); 78Debug.Trace("Permissions", "ControlThread"); 88Debug.Trace("Permissions", "AspNetHostingPermissionLevelLow"); 98Debug.Trace("Permissions", "AspNetHostingPermissionLevelMedium"); 108Debug.Trace("Permissions", "AspNetHostingPermissionLevelHigh"); 117Debug.Trace("Permissions", "FileReadAccess(" + filename + ")"); 122Debug.Trace("Permissions", "FileWriteAccess(" + filename + ")"); 127Debug.Trace("Permissions", "PathDiscovery(" + path + ")");
LegacyAspNetSynchronizationContext.cs (2)
99Debug.Assert(_lastCompletionCallback == null); // only one at a time 182Debug.Trace("Async", "Queueing LastCompletionWorkItemCallback");
Management\BufferedWebEventProvider.cs (3)
18using Debug=System.Web.Util.Debug; 31Debug.Trace("BufferedWebEventProvider", "Initializing: name=" + name); 60Debug.Trace("BufferedWebEventProvider", "Saving event to buffer: event=" + eventRaised.GetType().Name);
Management\EventlogProvider.cs (2)
33Debug.Trace("WebEventLogEventProvider", "Initializing: name=" + name); 180Debug.Trace("EventLogWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name);
Management\IisTraceWebEventProvider.cs (1)
33Debug.Trace("IisTraceWebEventProvider", "Initializing: name=" + name);
Management\MailWebEventProvider.cs (5)
47Debug.Trace("MailWebEventProvider", "Initializing: name=" + name); 128Debug.Trace("MailWebEventProvider", "Sending a message: subject=" + msg.Subject); 142Debug.Trace("MailWebEventProvider", "ProcessEvent: type =" + eventRaised.GetType() + 216Debug.Trace("MailWebEventProvider", "Calling SendMessageInternal; # of events: " + eventsToSend.Count); 231Debug.Trace("MailWebEventProvider", "Stop sending because we hit a fatal error");
Management\regiisutil.cs (1)
295Debug.Assert(appPath.StartsWith("/", StringComparison.Ordinal), "This check is done in main.cxx in regiis");
Management\SimpleMailWebEventProvider.cs (2)
45Debug.Trace("SimpleMailWebEventProvider", "Initializing: name=" + name); 163Debug.Assert(events.Count > 0, "events.Count > 0");
Management\SqlServices.cs (6)
399Debug.Trace("SqlServices", "Execute File: about to run " + fullpath); 448Debug.Trace("SqlServices", "Error executing command. SqlException:" + 469Debug.Trace("SqlServices", "Got expected error: " + expectedError + "; not throwing"); 586Debug.Trace("SqlServices", 662Debug.Trace("SqlServices", 731Debug.Trace("SqlServices", "Connecting to SQL: " + connectionString);
Management\SqlWebEventProvider.cs (3)
44Debug.Trace("SqlWebEventProvider", "Initializing: name=" + name); 93Debug.Trace("SqlWebEventProvider", "EventBufferFlush called: " + 258Debug.Trace("SqlWebEventProvider", "Writing event to SQL: event=" + eventRaised.GetType().Name);
Management\TemplatedMailWebEventProvider.cs (1)
63Debug.Trace("TemplatedMailWebEventProvider", "Initializing: name=" + name);
Management\webeventbuffer.cs (22)
132Debug.Assert(callback != null, "callback != null"); 187Debug.Trace("WebEventBuffer", 252Debug.Assert(nextRegularFlushFromStartTime >= nowFromStartTime); 324Debug.Assert(max > 0, "max > 0"); 328Debug.Trace("WebEventBufferExtended", "Flush: buffer is empty, don't flush"); 363Debug.Trace("WebEventBuffer", "Flush: Called by AddEvent. Waiting for burst"); 367Debug.Trace("WebEventBuffer", "Flush: Called by AddEvent. Schedule an immediate flush"); 375Debug.Trace("WebEventBuffer", "Flush: Called by AddEvent. Have to wait longer because of _urgentFlushIntervalMs."); 379Debug.Trace("WebEventBuffer", "Wait time=" + waitTime + 387Debug.Trace("WebEventBuffer", "Flush called: max=" + max + 410Debug.Assert(reason != FlushCallReason.UrgentFlushThresholdExceeded, "reason != FlushCallReason.UrgentFlushThresholdExceeded"); 436Debug.Assert(!(!_regularTimeoutUsed && !_urgentFlushScheduled), 450Debug.Trace("WebEventBuffer", "Flush: going to flush " + toFlush + " events, but still have at least _urgentFlushThreshold left. Schedule a flush"); 456Debug.Trace("WebEventBuffer", "Flush: going to flush " + toFlush + " events"); 472Debug.Trace("WebEventBuffer", "Switch to use regular timeout"); 497Debug.Trace("WebEventBuffer", "Flush: Disposing the timer"); 498Debug.Assert(_regularFlushIntervalMs == Infinite, "We can dispose the timer only if _regularFlushIntervalMs == Infinite"); 512Debug.Assert(lastFlushTime != DateTime.MaxValue, "lastFlushTime != DateTime.MaxValue"); 513Debug.Assert(discardedSinceLastFlush != -1, "discardedSinceLastFlush != -1"); 514Debug.Assert(eventsInBuffer != -1, "eventsInBuffer != -1"); 516Debug.Trace("WebEventBufferSummary", "_threadsInFlush=" + _threadsInFlush); 561Debug.Trace("WebEventBuffer", "Buffer is full. Need to remove one from the tail");
Management\WebEventCodes.cs (5)
11using Debug=System.Web.Util.Debug; 356Debug.Assert(false, "ASP.NET event code " + eventCode.ToString(CultureInfo.InvariantCulture) + " doesn't have message string mapped to it"); 385Debug.Assert(dim == 0 || dim == 1, "dim == 0 || dim == 1"); 395Debug.Assert(index0 >= 0 && index0 < GetEventArrayDimensionSize(0), "Index0 of system eventCode out of expected range: " + eventCode); 396Debug.Assert(index1 >= 0 && index1 < GetEventArrayDimensionSize(1), "Index1 of system eventCode out of expected range: " + eventCode);
Management\WebEvents.cs (29)
29using Debug = System.Web.Util.Debug; 403Debug.Trace("WebEventRaiseError", "Error Event is raised; type=" + e.GetType().Name); 486Debug.Trace( 501Debug.Trace( 507Debug.Trace( 519Debug.Assert(manager != null, "manager != null"); 546Debug.Trace("WebEventRaiseDetails", 571Debug.Trace("WebEventRaiseDetails", 598Debug.Trace("WebEventRaiseDetails", "Calling ProcessEvent under " + HttpApplication.GetCurrentWindowsIdentityWithAssert().Name); 665Debug.Trace( 669Debug.Trace( 678Debug.Assert(false, "Unexpected system event code = " + eventCode); 827Debug.Assert(false, "WebEventProviderInformation shouldn't be used to Raise an event"); 886Debug.Assert(false, "Unexpected event type = " + systemEventType); 2202Debug.Assert(ruleInfo != null, "ruleInfo != null"); 2246Debug.Trace("RuleFiringRecord", "Can't configure healthmonitor"); 2263Debug.Trace("RuleFiringRecord", "Custom evaluator returns false."); 2269Debug.Trace("RuleFiringRecord", "Hit an exception when calling Custom evaluator"); 2277Debug.Trace("RuleFiringRecord", 2284Debug.Trace("RuleFiringRecord", 2298Debug.Trace("RuleFiringRecord", 2309Debug.Trace("RuleFiringRecord", 2338Debug.Assert(!s_inited); 2354Debug.Assert(s_manager == null); 2389Debug.Trace( 2395Debug.Trace( 2431Debug.Assert(HealthMonitoringManager.Enabled); 2536Debug.Trace("WebEventManager", "Flushing provider " + provider.Name); 2552Debug.Trace("WebEventManager", "Shutting down provider " + provider.Name);
Management\WebEventTraceProvider.cs (1)
24Debug.Trace("TraceWebEventProvider", "Initializing: name=" + name);
Management\wmiprovider.cs (2)
27Debug.Trace("WmiWebEventProvider", "Initializing: name=" + name); 131Debug.Trace("WmiWebEventProvider", "ProcessEvent: event=" + eventRaised.GetType().Name);
OutputCacheModule.cs (30)
175Debug.Assert(cachedVary._params == null || !cachedVary._varyByAllParams, "cachedVary._params == null || !cachedVary._varyByAllParams"); 188Debug.Assert(cachedVary._params == null || !cachedVary._varyByAllParams, "cachedVary._params == null || !cachedVary._varyByAllParams"); 202Debug.Assert(a == null || !getAllParams, "a == null || !getAllParams"); 521Debug.Trace("OutputCacheModuleEnter", "Beginning OutputCacheModule::Enter"); 526Debug.Trace("OutputCacheModuleEnter", "Miss, no entries in output Cache" + 578Debug.Trace("OutputCacheModuleEnter", "Miss, Http method not GET, POST, or HEAD" + 588Debug.Assert(_key != null, "_key != null"); 595Debug.Trace("OutputCacheModuleEnter", "Miss, item not found.\n\tkey=" + key + 619Debug.Trace("OutputCacheModuleEnter", "Miss, key could not be created for vary-by item." + 673Debug.Assert(item == null || item is CachedRawResponse, "item == null || item is CachedRawResponse"); 696Debug.Assert(item is CachedRawResponse, "item is CachedRawResponse"); 704Debug.Trace("OutputCacheModuleEnter", "Output cache item found but method is POST and no VaryByParam specified." + 712Debug.Trace("OutputCacheModuleEnter", "Output cache item found but contains a querystring and no VaryByParam specified." + 723Debug.Trace("OutputCacheModuleEnter", "Output cache item found but this is a Range request and IgnoreRangeRequests is true." + 748Debug.Trace("OutputCacheModuleEnter", 767Debug.Trace("OutputCacheModuleEnter", 787Debug.Trace("OutputCacheModuleEnter", 804Debug.Trace("OutputCacheModuleEnter", 832Debug.Trace("OutputCacheModuleEnter", "Output cache item found but callback invalidated it." + 848Debug.Trace("OutputCacheModuleEnter", "Invalid validation status, ignoring it, status=" + validationStatus + 858Debug.Trace("OutputCacheModuleEnter", "Output cache item found but callback status is IgnoreThisRequest." + 867Debug.Assert(validationStatusFinal == HttpValidationStatus.Valid, 921Debug.Trace("OutputCacheModuleEnter", "Ignore If-Modified-Since header, invalid format: " + ifModifiedSinceHeader); 950Debug.Trace("OutputCacheModuleEnter", "Hit, conditional request satisfied, status=304." + 1024Debug.Trace("OutputCacheModuleLeave", "Beginning OutputCacheModule::Leave"); 1182Debug.Assert(_key != null, "_key != null"); 1225Debug.Trace("OutputCacheModuleLeave", "Couldn't add non-cacheable post.\n\tkey=" + _key); 1232Debug.Trace("OutputCacheModuleLeave", "Response.Flush() inside GetVaryByCustomString\n\tkey=" + _key); 1260Debug.Trace("OutputCacheModuleLeave", "Adding response to cache.\n\tkey=" + keyRawResponse); 1279Debug.Trace("OutputCacheModuleLeave", "Returning from OutputCacheModule::Leave");
parent\parent\parent\misc\ConfigPathUtility.cs (2)
10using Debug=System.Web.Util.Debug; 118Debug.Assert(String.IsNullOrEmpty(configPath) || IsValid(configPath), "String.IsNullOrEmpty(configPath) || IsValid(configPath)");
PartitionResolver.cs (3)
75Debug.Trace("PartitionManager", "id=" + id + "; partitionString=" + partitionString); 94Debug.Trace("PartitionManager", "Add a new partition; id=" + id + "; partitionString=" + partitionString); 98Debug.Trace("PartitionManager", "id=" + id + "; partitionString=" + partitionString);
PerfCounters.cs (2)
47Debug.Assert(appName != null); 83Debug.Trace("Perfcounters", "Exception: " + e.StackTrace);
PipelineModuleStepContainer.cs (10)
18using Debug=System.Web.Util.Debug; 71Debug.Assert(null != steps, "null != steps"); 74Debug.Assert(index != -1, "index != -1"); 76Debug.Trace("PipelineRuntime", 82Debug.Assert(null != stepArray, "null != stepArray"); 99Debug.Assert(eventIndex >= 0, "eventIndex >= 0"); 100Debug.Assert(eventIndex < stepArray.Count, "eventIndex < stepArray.Count"); 156Debug.Assert(index != -1, "index != -1"); 174Debug.Assert(steps != null, "steps != null"); 253Debug.Assert(index != -1, "invalid request notification--need to update switch table?");
RootedObjects.cs (12)
97Debug.Trace("RootedObjects", "Destroy"); 148Debug.Trace("RootedObjects", "ReleaseHttpContext"); 158Debug.Trace("RootedObjects", "ReleasePrincipal"); 177Debug.Trace("RootedObjects", "ReleaseWebSocketContext"); 187Debug.Trace("RootedObjects", "ReleaseWorkerRequest"); 218Debug.Assert(WorkerRequest != null); 220Debug.Assert(_requestActivityId != Guid.Empty); 231Debug.Assert(ActivityIdHelper.Instance != null); 236Debug.Assert(rootedObjects._requestActivityIdRefCount >= 2, "The original ref count should have been 1 or higher, else the activity ID could already have been released."); 253Debug.Assert(ActivityIdHelper.Instance != null); 254Debug.Assert(ActivityIdHelper.Instance.CurrentThreadActivityId == _rootedObjects._requestActivityId, "Unexpected activity ID on current thread."); 261Debug.Assert(_rootedObjects._requestActivityIdRefCount >= 0, "Somebody called Dispose() too many times.");
Security\ADMembershipProvider.cs (19)
2369Debug.Assert(containerEntry != null); 2410Debug.Assert(containerEntry != null); 2478Debug.Assert(containerEntry != null); 3398Debug.Assert(clearTextString != null); 3415Debug.Assert(encryptedString != null); 3491Debug.Assert(adspath != null); 3492Debug.Assert(adspath.Length > 0); 3528Debug.Assert(serverName != null); 3542Debug.Assert(tempStr.Length > index); 3987Debug.Assert(serverName != null); 3999Debug.Assert(dn != null); 4134Debug.Assert(ldapConnection != null); 4336Debug.Assert(domainControllerInfo != null); 4337Debug.Assert(domainControllerInfo.DomainControllerName != null); 4338Debug.Assert(domainControllerInfo.DomainControllerName.Length > 2); 4417Debug.Assert(directoryEntry != null, "PropertyManager::GetPropertyValue - directoryEntry is null"); 4418Debug.Assert(propertyName != null, "PropertyManager::GetPropertyValue - propertyName is null"); 4434Debug.Assert(res != null, "PropertyManager::GetSearchResultPropertyValue - res is null"); 4435Debug.Assert(propertyName != null, "PropertyManager::GetSearchResultPropertyValue - propertyName is null");
Security\Cryptography\CryptographicKey.cs (2)
34Debug.Assert(offset % 8 == 0, "Offset must be divisible by 8."); 35Debug.Assert(count % 8 == 0, "Count must be divisible by 8.");
Security\Cryptography\CryptoUtil.cs (3)
56Debug.ValidateArrayBounds(buffer1, buffer1Offset, buffer1Count); 57Debug.ValidateArrayBounds(buffer2, buffer2Offset, buffer2Count); 88Debug.ValidateArrayBounds(buffer, offset, count);
Security\FileAuthorizationModule.cs (11)
183Debug.Trace("FAM", "IsUserAllowedToFile: pathData.AnonymousAccessAllowed"); 189Debug.Trace("FAM", "IsUserAllowedToFile: pathData.AnonymousAccessChecked && isAnonymousUser"); 207Debug.Trace("FAM", "IsUserAllowedToFile: oSecDesc._AnonymousAccessChecked && isAnonymousUser"); 211Debug.Trace("FAM", "IsUserAllowedToFile: calling oSecDesc.IsAccessAllowed with iAccess == 1"); 224Debug.Trace("FAM", "IsUserAllowedToFile: updating pathData"); 230Debug.Trace("FAM", "IsUserAllowedToFile: calling oSecDesc.IsAccessAllowed with iAccess != 1"); 261Debug.Trace("FAM", "GetFileSecurityDescriptorWrapper: cache miss for " + fileName); 267Debug.Trace("FAM", "GetFileSecurityDescriptorWrapper: inserting into cache with dependency on " + cacheDependencyPath); 276Debug.Trace("internal", e.ToString()); 438Debug.Trace("FAM", "GetCacheDependencyPath: invalid security descriptor"); 443Debug.Trace("FAM", "GetCacheDependencyPath: valid security descriptor");
Security\FormsAuthenticationModule.cs (1)
485Debug.Trace("cookieauth", str);
Security\FormsAuthenticationTicketSerializer.cs (1)
188Debug.Assert(ticketBlobStream.Position == 10, "Critical that we be at position 10 in the stream at this point.");
Security\RoleManagerModule.cs (1)
98Debug.Assert(null != context.User, "null != context.User");
Security\Roles.cs (1)
554Debug.Assert(s_Providers != null);
SiteMapProvider.cs (1)
265Debug.Assert(node != null);
State\InProcStateClientManager.cs (16)
38Debug.Trace("SessionOnEnd", "OnCacheItemRemoved called, reason = " + reason); 46Debug.Trace("SessionOnEnd", "OnCacheItemRemoved ignored"); 135Debug.Trace("SessionStateClientSet", "Removing the Uninit flag for item; key = " + key); 220Debug.Assert(lockId != null, "lockId != null"); 258Debug.Assert(item.Items != null, "item.Items != null"); 259Debug.Assert(item.StaticObjects != null, "item.StaticObjects != null"); 260Debug.Assert(item.Timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES, "item.Timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES"); 273Debug.Assert(lockId != null, "lockId != null"); 281Debug.Trace("SessionStateClientSet", "state is inStorage; key = " + key); 282Debug.Assert((stateCurrent._flags & (int)SessionStateItemFlags.Uninitialized) == 0, "Should never set an unitialized item; key = " + key); 289Debug.Trace("SessionStateClientSet", "Leave because we're not the owner; key = " + key); 306Debug.Trace("SessionStateClientSet", "Changing state inplace; key = " + key); 335Debug.Trace("SessionStateClientSet", "Inserting state into Cache; key = " + key); 366Debug.Assert(timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES, "item.Timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES"); 370Debug.Trace("SessionStateClientSet", "Inserting an uninitialized item into Cache; key = " + key); 406Debug.Assert(lockId != null, "lockId != null");
State\OutOfProcStateClientManager.cs (25)
79Debug.Assert(s_partitionManager == null); 126Debug.Trace("OutOfProcSessionStateStore", "OnAppDomainUnload called"); 249Debug.Assert(_partitionResolver != null); 272Debug.Assert(timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES, "item.Timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES"); 277Debug.Assert(s_partitionManager != null); 278Debug.Assert(_partitionResolver != null); 304Debug.Trace("OutOfProcSessionStateStoreMakeRequest", 324Debug.Trace("OutOfProcSessionStateStoreMakeRequest", "MakeRequest returned: " + 389Debug.Assert(false, "Unknown results.lastPhase: " + results.lastPhase); 503Debug.Assert((results.actionFlags & (int)SessionStateActions.InitializeItem) == 0, 523Debug.Trace("OutOfProcSessionStateStore", "Calling Get, id=" + id); 536Debug.Trace("OutOfProcSessionStateStore", "Calling GetExlusive, id=" + id); 545Debug.Assert(lockId != null, "lockId != null"); 550Debug.Trace("OutOfProcSessionStateStore", "Calling ReleaseExclusive, id=" + id); 567Debug.Assert(item.Items != null, "item.Items != null"); 568Debug.Assert(item.StaticObjects != null, "item.StaticObjects != null"); 570Debug.Trace("OutOfProcSessionStateStore", "Calling Set, id=" + id + " sessionItems=" + item.Items + " timeout=" + item.Timeout); 600Debug.Assert(lockId != null, "lockId != null"); 601Debug.Trace("OutOfProcSessionStateStore", "Calling Remove, id=" + id); 615Debug.Trace("OutOfProcSessionStateStore", "Calling ResetTimeout, id=" + id); 623Debug.Assert(timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES, "item.Timeout <= SessionStateModule.MAX_CACHE_BASED_TIMEOUT_MINUTES"); 633Debug.Trace("OutOfProcSessionStateStore", "Calling CreateUninitializedItem, id=" + id + " timeout=" + timeout); 660Debug.Trace("PartitionInfo", "Created a new info, server=" + server + ", port=" + port); 694Debug.Assert(socket != OutOfProcSessionStateStore.INVALID_SOCKET, 706Debug.Trace("ResourcePool", "Disposing OutOfProcConnection");
State\SessionIDManager.cs (16)
135Debug.Trace("SessionIDManager", "cookieMode = " + Config.Cookieless + 144Debug.Trace("SessionIDManager", "Beginning SessionIDManager::GetCookielessSessionID"); 154Debug.Trace("SessionIDManager", "cookieless=" + cookieless); 167Debug.Trace("SessionIDManager", "No legitimate cookie on path\nReturning from SessionStateModule::GetCookielessSessionID"); 173Debug.Trace("SessionIDManager", "CookielessSessionModule found SessionId=" + id + 223Debug.Trace("SessionIDManager", "Encode is doing UrlEncode "); 227Debug.Trace("SessionIDManager", "Encode is doing nothing "); 235Debug.Trace("SessionIDManager", "Decode is doing UrlDecode "); 239Debug.Trace("SessionIDManager", "Decode is doing nothing"); 245Debug.Assert(context.Items[ASP_SESSIONID_MANAGER_INITIALIZEREQUEST_CALLED_KEY] != null); 253Debug.Assert(o != null, "GetCookielessSessionID should be run already"); 352Debug.Trace("SessionIDManager", 372Debug.Trace("SessionIDManager", 392Debug.Trace("SessionIDManager", "Removing session id cookie"); 458Debug.Assert(buffer.Length == ID_LENGTH_BYTES); 494Debug.Assert(j == ID_LENGTH_CHARS);
State\SessionStateContainer.cs (1)
83Debug.Assert(_stateModule != null, "_stateModule != null");
State\SessionStateItemCollection.cs (12)
132Debug.Fail("Offset shouldn't be negative inside MarkDeserializedOffsetAndCheck."); 258Debug.Assert(_serializedItems != null); 259Debug.Assert(_stream != null); 271Debug.Trace("SessionStateItemCollection", "Deserialized an item: keyname=" + name); 351Debug.Trace("SessionStateItemCollection", "Setting _dirty to true in get"); 361Debug.Trace("SessionStateItemCollection", "Setting _dirty to true in set"); 375Debug.Trace("SessionStateItemCollection", "Setting _dirty to true in get"); 385Debug.Trace("SessionStateItemCollection", "Setting _dirty to true in set"); 484Debug.Assert(i != count); 516Debug.Assert(_stream != null); 552Debug.Trace("SessionStateItemCollection", 606Debug.Trace("SessionStateItemCollection",
State\SessionStateModule.cs (62)
75Debug.Trace("SessionOnEnd", "Firing OnSessionEnd for " + sessionState.SessionID); 444Debug.Trace("SessionStateModuleInit", 484Debug.Assert(_rqIctx == null, "_rqIctx == null"); 485Debug.Assert(_rqChangeImpersonationRefCount == 0, "_rqChangeImpersonationRefCount == 0"); 532Debug.Trace("SessionStateModuleRaiseOnStart", 609Debug.Trace("SessionStateModuleOnAcquireState", "Beginning SessionStateModule::OnAcquireState"); 659Debug.Trace("SessionStateModuleOnAcquireState", "Current request id=" + _rqId); 664Debug.Trace("SessionStateModuleOnAcquireState", 671Debug.Trace("SessionStateModuleOnAcquireState", 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"); 792Debug.Trace("SessionStateModuleOnAcquireState", "Item retrieved=" + (_rqItem != null).ToString(CultureInfo.InvariantCulture)); 795Debug.Assert(!(s_allowDelayedStateStoreItemCreation && s_configRegenerateExpiredSessionId), 803Debug.Trace("SessionStateModuleOnAcquireState", "Initialize an uninit item"); 815Debug.Trace("SessionStateModuleOnAcquireState", "Delay creating new session state"); 827Debug.Trace("SessionStateModuleOnAcquireState", "Complete re-creating new id; redirected=" + redirected); 830Debug.Trace("SessionStateModuleOnAcquireState", "Will redirect because we've reissued a new id and it's cookieless"); 848Debug.Trace("SessionStateModuleOnAcquireState", "Calling OnStart"); 878Debug.Assert(_rqChangeImpersonationRefCount > 0, "Must call ChangeImpersonation first"); 888Debug.Assert(_rqId != null || s_allowInProcOptimization, "_rqId != null || s_allowInProcOptimization"); 894Debug.Trace("InitStateStoreItem", "Creating new session state"); 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"); 934Debug.Trace("DelayedOperation", "Delayed getting session id"); 943Debug.Trace("DelayedOperation", "Delayed creating session id"); 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"); 1000Debug.Trace("SessionStateModuleOnAcquireState", 1007Debug.Trace("SessionStateModuleOnAcquireState", 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"); 1180Debug.Trace("SessionStateModuleOnAcquireState", 1206Debug.Assert(_timer != null, "_timer != null"); 1239Debug.Assert(s_allowInProcOptimization, "s_allowInProcOptimization"); 1243Debug.Assert(_rqId != null, "_rqId != null"); 1259Debug.Trace("SessionStateOnReleaseState", "Beginning SessionStateModule::OnReleaseState"); 1261Debug.Assert(!(_rqAddedCookie && !_rqIsNewSession), 1279Debug.Trace("SessionStateOnReleaseState", "Remove session state from context"); 1300Debug.Trace("SessionStateOnReleaseState", "Not storing unused new session."); 1303Debug.Trace("SessionStateOnReleaseState", "Removing session due to abandonment, SessionId=" + _rqId); 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"); 1380Debug.Trace("SessionStateOnReleaseState", "Release exclusive lock on session, SessionId=" + _rqId); 1383Debug.Assert(_rqItem != null, "_rqItem cannot null if it's not a new session"); 1394Debug.Trace("SessionStateOnReleaseState", "Returning from SessionStateModule::OnReleaseState"); 1430Debug.Trace("SessionStateOnEndRequest", "Beginning SessionStateModule::OnEndRequest"); 1469Debug.Trace("SessionStateOnEndRequest", "Resetting timeout for SessionId=" + id); 1490Debug.Trace("SessionStateOnEndRequest", "Returning from SessionStateModule::OnEndRequest");
State\SessionStateUtil.cs (1)
154Debug.Assert(context != null);
State\sqlstateclientmanager.cs (57)
125Debug.Assert(_partitionResolver == null); 164Debug.Trace("SqlSessionStateStore", "OnAppDomainUnload called"); 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."); 279Debug.Assert(_partitionInfo != null); 306Debug.Trace("SessionStatePooling", "CanUsePooling: not using integrated security"); 312Debug.Trace("SessionStatePooling", "CanUsePooling: no context"); 316Debug.Trace("SessionStatePooling", "CanUsePooling: mode is None or Application"); 320Debug.Trace("SessionStatePooling", "CanUsePooling: mode is UNC"); 326Debug.Trace("SessionStatePooling", "LOGON_USER = '" + logon + "'; identity = '" + _rqContext.User.Identity.Name + "'; IsUNC = " + HttpRuntime.IsOnUNCShareInternal); 336Debug.Trace("SessionStatePooling", "CanUsePooling returns " + ret); 344Debug.Assert(s_partitionManager != null); 345Debug.Assert(_partitionResolver != null); 350Debug.Trace("SessionStatePooling", "Calling GetConnection under " + WindowsIdentity.GetCurrent().Name); 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"); 500Debug.Trace("SqlSessionStateStore", "Sql Get returned long item"); 511Debug.Trace("SqlSessionStateStore", "Sql Get returned null"); 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)"); 523Debug.Trace("SqlSessionStateStore", "Sql Get returned item that was locked"); 524Debug.Assert(((int)cmd.Parameters[5].Value & (int)SessionStateActions.InitializeItem) == 0, 536Debug.Trace("SqlSessionStateStore", "LockAge = " + lockAge); 539Debug.Trace("SqlSessionStateStore", "Lock age is more than 1 year!!!"); 549Debug.Assert(!Convert.IsDBNull(cmd.Parameters[1].Value), "!Convert.IsDBNull(cmd.Parameters[1].Value)"); 550Debug.Trace("SqlSessionStateStore", "Sql Get returned short item"); 552Debug.Assert(buf != null, "buf != null"); 575Debug.Trace("SqlSessionStateStore", "Calling Sql Get, id=" + id); 587Debug.Trace("SqlSessionStateStore", "Calling Sql GetExclusive, id=" + id); 597Debug.Trace("SqlSessionStateStore", "Calling Sql ReleaseExclusive, id=" + id); 598Debug.Assert(lockId != null, "lockId != null"); 599Debug.Assert(context != null, "context != null"); 632Debug.Assert(context != null, "context != null"); 635Debug.Trace("SqlSessionStateStore", "Calling Sql Set, id=" + id); 637Debug.Assert(item.Items != null, "item.Items != null"); 638Debug.Assert(item.StaticObjects != null, "item.StaticObjects != null"); 664Debug.Assert(_rqOrigStreamLen > 0, "_rqOrigStreamLen > 0"); 710Debug.Trace("SqlSessionStateStore", "Calling Sql Remove, id=" + id); 711Debug.Assert(lockId != null, "lockId != null"); 712Debug.Assert(context != null, "context != null"); 733Debug.Trace("SqlSessionStateStore", "Calling Sql ResetTimeout, id=" + id); 734Debug.Assert(context != null, "context != null"); 754Debug.Assert(context != null, "context != null"); 759Debug.Trace("SqlSessionStateStore", "Calling Sql InsertUninitializedItem, id=" + id); 760Debug.Assert(context != null, "context != null"); 795Debug.Trace("SessionStateClientSet", 850Debug.Trace("SqlSessionStateStore", "CanRetry: Call ClearPool to destroy the corrupted connections in the pool"); 961Debug.Trace("PartitionInfo", "Created a new info, sqlConnectionString=" + sqlConnectionString); 994Debug.Assert(SupportFlags == SupportFlags.Uninitialized); 1041Debug.Trace("PartitionInfo", "SupportFlags initialized to " + flags); 1082Debug.Assert(!Convert.IsDBNull(p), "!Convert.IsDBNull(p)"); 1184Debug.Trace("SessionStateConnectionIdentity", "Connecting under " + WindowsIdentity.GetCurrent().Name); 1237Debug.Assert(sqlPartitionInfo.SupportFlags != SupportFlags.Uninitialized); 1520Debug.Trace("ResourcePool", "Disposing SqlStateConnection");
State\StateRuntime.cs (1)
721Debug.Trace("OnCacheItemRemoved", "OnCacheItemRemoved ignored (item removed, but counters not updated)");
State\StateWorkerRequest.cs (12)
86Debug.Assert(false, "Shouldn't get here!"); 102Debug.Assert(_contentLength == IntPtr.Size); 311Debug.Assert(_exclusive == UnsafeNativeMethods.StateProtocolExclusive.RELEASE, "_exclusive == UnsafeNativeMethods.StateProtocolExclusive.RELEASE"); 346Debug.Assert(!_sent); 352Debug.Assert(!_sent); 360Debug.Assert(!_sent); 368Debug.Assert(!_sent); 405Debug.Assert(_unmanagedState == IntPtr.Zero, "_unmanagedState == 0"); 406Debug.Assert(length == IntPtr.Size, "length == IntPtr.Size"); 407Debug.Assert(_methodIndex == UnsafeNativeMethods.StateProtocolVerb.GET, "verb == GET"); 408Debug.Assert(_exclusive != UnsafeNativeMethods.StateProtocolExclusive.RELEASE, 430Debug.Assert(_unmanagedState != IntPtr.Zero, "_unmanagedState != 0");
StaticFileHandler.cs (4)
181Debug.Assert(startIndex < rangeHeader.Length, "startIndex < rangeHeader.Length"); 311Debug.Trace("StaticFileHandler", "Virtual file " + virtualPath + " not found"); 321Debug.Trace("StaticFileHandler", "Using VirtualPathProvider for " + virtualPath); 505Debug.Trace("StaticFileHandler", "Path= " + virtualPathWithPathInfo + ", PhysicalPath= " + physicalPath);
StaticSiteMapProvider.cs (1)
121Debug.Assert(key != null);
StringResourceManager.cs (1)
17using Debug=System.Web.Util.Debug;
ThreadContext.cs (15)
56Debug.Assert(HttpContext != null); // only to be used when context is available 57Debug.Assert(Current != this, "This ThreadContext is already associated with this thread."); 58Debug.Assert(!HasBeenDisassociatedFromThread, "This ThreadContext has already been disassociated from a thread."); 60Debug.Trace("OnThread", GetTraceMessage("Enter1")); 112Debug.Trace("OnThread", GetTraceMessage("Enter2")); 125Debug.Trace("OnThread", GetTraceMessage("Leave1")); 126Debug.Assert(Current == this, "This ThreadContext isn't associated with current thread."); 127Debug.Assert(!HasBeenDisassociatedFromThread, "This ThreadContext has already been disassociated from a thread."); 164Debug.Trace("OnThread", GetTraceMessage("Leave2")); 173Debug.Trace("OnThread", GetTraceMessage("EnterExecutionContext1")); 174Debug.Assert(Current == this, "This ThreadContext isn't associated with current thread."); 175Debug.Assert(!HasBeenDisassociatedFromThread, "This ThreadContext has already been disassociated from a thread."); 209Debug.Trace("OnThread", GetTraceMessage("EnterExecutionContext2")); 213Debug.Trace("OnThread", GetTraceMessage("LeaveExecutionContext1")); 225Debug.Trace("OnThread", GetTraceMessage("LeaveExecutionContext2"));
UI\ApplicationFileParser.cs (1)
20using Debug=System.Web.Util.Debug;
UI\BaseTemplateParser.cs (3)
48Debug.Assert(FInDesigner); 161Debug.Assert(compiledResult != null); 169Debug.Assert(t != null);
UI\BatchParser.cs (2)
20using Debug=System.Web.Util.Debug; 68Debug.Trace("Template", "Parsed dependency: " + _virtualPath + " depends on " + virtualPath);
UI\BindableTemplateBuilder.cs (4)
46Debug.Assert(bindableTemplateBuilder != null, "ExtractTemplateValuesMethod called on non-BindableTemplateBuilder."); 65Debug.Assert(subBuilderControlBuilder.ServiceProvider == null); 66Debug.Assert(subBuilderControlBuilder.TemplateControl != null, "TemplateControl should not be null in no-compile pages. We need it for the FilterResolutionService."); 105Debug.Assert(false, "BoundPropertyEntry is of wrong control type or couldn't be found. Expected " + entry.ControlType.Name);
UI\ClientScriptManager.cs (5)
961Debug.Assert(false); 1083Debug.Assert(expandoAttributes != null && expandoAttributes.Count > 0); 1294Debug.Assert(_outboundEvents == null); 1393Debug.Assert(_clientPostBackValidatedEventTable == null); 1435Debug.Assert(type != null);
UI\CollectionBuilder.cs (1)
52Debug.Assert(ControlType != null, "ControlType != null");
UI\Control.cs (18)
908Debug.Assert(_page == null); 909Debug.Assert(Parent == null || Parent.Page == null); 970Debug.Assert(xhtmlConformanceSection != null); 1645Debug.Assert(_namingContainer != null); 1646Debug.Assert(_id == null); 2024Debug.Assert(savedState is Triplet); 2211Debug.Assert((virtualPath == null) != (physicalPath == null)); 2896Debug.Assert(namingContainer != null); 3059Debug.Trace("ClientUrl", "*** ResolveClientUrl (" + relativeUrl + ") --> " + url + " ***"); 3064Debug.Assert(this is INamingContainer); 3071Debug.Assert(this is INamingContainer); 3072Debug.Assert(HasControls()); 3073Debug.Assert(_occasionalFields != null); 3074Debug.Assert(_occasionalFields.NamedControls == null); 3081Debug.Assert(namingContainer._occasionalFields != null); 3082Debug.Assert(namingContainer._occasionalFields.NamedControls != null); 3083Debug.Assert((controls != null) && (controls.Count != 0)); 3196Debug.Assert(this is INamingContainer);
UI\ControlBuilder.cs (47)
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??"); 693Debug.Assert(!String.IsNullOrEmpty(name)); 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"); 827Debug.Assert(memberInfo is FieldInfo); 885Debug.Assert(!String.IsNullOrEmpty(name)); 886Debug.Assert(builder != null); 915Debug.Assert(memberInfo is FieldInfo); 954Debug.Assert(!String.IsNullOrEmpty(name)); 1019Debug.Assert(memberInfo is FieldInfo); 1141Debug.Assert(!String.IsNullOrEmpty(name)); 1142Debug.Assert(builder != null); 1182Debug.Assert(memberInfo is FieldInfo); 1272Debug.Assert(!InDesigner, "!InDesigner"); 1459Debug.Fail("Invalid value for CodeBlockType enum"); 1473Debug.Assert(controlBuilder.ServiceProvider == null); 1485Debug.Assert(parent != null); 1494Debug.Assert(childObj != null); 1495Debug.Assert(typeof(IParserAccessor).IsAssignableFrom(parentObj.GetType())); 1597Debug.Assert(pca != null); 1691Debug.Assert(false, "The type " + cba.BuilderType.Name + " should be made public for better performance."); 1718Debug.Assert(attrs[0] is ControlBuilderAttribute); 1726Debug.Assert(FChildrenAsProperties, "ChildrenAsProperties"); 1754Debug.Assert(containerAttrs[0] is TemplateContainerAttribute); 1938Debug.Assert(DefaultPropertyBuilder != null, pca.DefaultProperty); 1988Debug.Assert(attrs[0] is ParseChildrenAttribute); 2176Debug.Assert(((ComplexPropertyEntry)entry).IsCollectionItem, "The entry should be a collection entry, instead it's a " + entry.GetType()); 2179Debug.Assert(controlBuilder.ServiceProvider == null); 2242Debug.Assert(controlBuilder.ServiceProvider == null); 2315Debug.Assert(eb != null, "Did not expect null expression builder"); 2334Debug.Assert(obj is IAttributeAccessor); 2350Debug.Fail("Got a ExpressionBuilder that does not support Evaluate in a non-compiled page"); 2382Debug.Assert(ServiceProvider == null); 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); 2470Debug.Assert(controlBuilder.ServiceProvider == null); 2481Debug.Assert(methodInfo != null); 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?"); 3034Debug.Assert(InDesigner); 3043Debug.Assert(InDesigner); 3280Debug.Assert(o1 is PropertyEntry); 3281Debug.Assert(o2 is PropertyEntry);
UI\ControlIdConverter.cs (1)
78Debug.Assert(host != null, "Unable to get IDesignerHost in ControlIDConverter");
UI\ControlPropertyNameConverter.cs (1)
61Debug.Assert(host != null, "Unable to get IDesignerHost in ControlPropertyNameConverter");
UI\DataBinder.cs (1)
89Debug.Assert((expressionParts != null) && (expressionParts.Length != 0),
UI\DataBinding.cs (1)
51Debug.Assert((value != null) && (value.Length != 0),
UI\DataBoundLiteralControl.cs (2)
31Debug.Assert(!InDesigner, "!InDesigner"); 43Debug.Assert(!InDesigner, "!InDesigner");
UI\DataSourceCache.cs (3)
130Debug.Assert(key.StartsWith(CacheInternal.PrefixDataSourceControl, StringComparison.Ordinal), "All keys passed in should start with the prefix specified in CacheInternal.PrefixDataSourceControl."); 148Debug.Assert(key.StartsWith(CacheInternal.PrefixDataSourceControl, StringComparison.Ordinal), "All keys passed in should start with the prefix specified in CacheInternal.PrefixDataSourceControl."); 197Debug.Assert(key.StartsWith(CacheInternal.PrefixDataSourceControl, StringComparison.Ordinal), "All keys passed in should start with the prefix specified in CacheInternal.PrefixDataSourceControl.");
UI\EventValidationStore.cs (3)
110Debug.Assert(currentOffset == bufferToBeHashed.Length, "Should have populated the entire buffer."); 144Debug.Assert(x.Length == HASH_SIZE_IN_BYTES); 145Debug.Assert(y.Length == HASH_SIZE_IN_BYTES);
UI\Html32TextWriter.cs (1)
470Debug.Assert(false, "Invalid BulletStyle for HTML32.");
UI\HtmlControls\HtmlAnchor.cs (2)
233Debug.Assert(options != null); 236Debug.Assert(!string.IsNullOrEmpty(postBackEventReference));
UI\HtmlControls\HtmlInputControl.cs (1)
19using Debug=System.Web.Util.Debug;
UI\HtmlControls\HtmlSelect.cs (2)
20using Debug=System.Web.Util.Debug; 593Debug.Assert(_currentViewValid);
UI\HtmlForm.cs (1)
317Debug.Assert(action != null);
UI\HTMLTextWriter.cs (2)
312Debug.Assert(value >= 0, "Bogus Indent... probably caused by mismatched Indent++ and Indent--"); 696Debug.Assert(_tagIndex >= 0 && _tagIndex < _tagNameLookupArray.Length);
UI\LegacyPageAsyncTask.cs (5)
87Debug.Assert(!_started); 93Debug.Trace("Async", "Start task"); 108Debug.Trace("Async", "Task failed to start"); 120Debug.Trace("Async", "Task completed, CompletedSynchronously=" + ar.CompletedSynchronously); 131Debug.Trace("Async", "Task timed out");
UI\LegacyPageAsyncTaskManager.cs (2)
316Debug.Trace("Async", "TaskManager.TaskCompleted: onCallerThread=" + onCallerThread + 363Debug.Trace("Async", "Starting timeout timer for " + timerPeriod + " ms");
UI\MasterPage.cs (2)
167Debug.Assert(owner is MasterPage || owner is Page); 232Debug.Assert(appliedMasterFilePaths != null);
UI\ObjectPersistData.cs (1)
146Debug.Assert((entry.Name != null) && (entry.Name.Length > 0));
UI\ObjectStateFormatter.cs (9)
251Debug.Assert((s != null) && (s.Length != 0)); 280Debug.Assert((s != null) && (s.Length != 0)); 291Debug.Assert(_stringTable.Contains(oldString)); 305Debug.Assert(type != null); 336Debug.Assert(versionMarker == Marker_Version_1); 424Debug.Assert((token == Token_IndexedStringAdd) || (token == Token_IndexedString)); 430Debug.Assert(_stringList[tableIndex] != null); 451Debug.Assert((token == Token_TypeRef) || 944Debug.Assert(((IndexedString)value).Value != null);
UI\ObjectTag.cs (1)
140Debug.Trace("Template", "<object> type: " + _type.FullName);
UI\Page.cs (11)
1331Debug.Assert(_preInitWorkComplete || DesignMode, "ContainsTheme should not be accessed before Page's PreInit."); 2001Debug.Assert(s != null); 3017Debug.Assert(_partialCachingControlStack != null); 3793Debug.Assert(virtualFileDependencies != null); 4722Debug.Assert(_previousPagePath != null); 5018Debug.Assert(_previousPagePath != null); 5975Debug.Trace("Async", "Page -- CallHandlersFromThreadpoolThread"); 6091Debug.Trace("Async", "Exception with async pending - saving the error"); 6131Debug.Assert(_legacyAsyncInfo.AsyncResult == result); 6338Debug.Assert(_dataBindingContext != null); 6339Debug.Assert(_dataBindingContext.Count > 0);
UI\PageAdapter.cs (1)
77Debug.Assert(Control != null);
UI\PageHandlerFactory.cs (2)
20using Debug=System.Web.Util.Debug; 37Debug.Trace("PageHandlerFactory", "PageHandlerFactory: " + virtualPath);
UI\PageParserFilter.cs (2)
56Debug.Assert(_virtualPath == null); 78Debug.Assert(_virtualPath != null);
UI\PageTheme.cs (2)
75Debug.Assert(page != null); 106Debug.Assert(skin == null || skin.ControlType == control.GetType());
UI\ParsedAttributeCollection.cs (2)
38Debug.Assert(entry.Key != null); 85Debug.Assert(!String.IsNullOrEmpty(name));
UI\PartialCachingControl.cs (3)
191Debug.Assert(false); 520Debug.Assert(!String.IsNullOrEmpty(prefix)); 572Debug.Assert(_varyByParamsCollection == null);
UI\SimpleHandlerFactory.cs (1)
17using Debug = System.Web.Util.Debug;
UI\SimplePropertyEntry.cs (2)
11using Debug=System.Web.Util.Debug; 84Debug.Assert(Name.IndexOf('.') < 0, "_name.IndexOf('.') < 0");
UI\SimpleWebHandlerParser.cs (4)
32using Debug=System.Web.Util.Debug; 97Debug.Assert(context == null); 98Debug.Assert(physicalPath == null); 100Debug.Assert(virtualPath != null);
UI\SkinBuilder.cs (2)
70Debug.Fail(e.Message); 154Debug.Fail(e.Message);
UI\StateManagedCollection.cs (8)
119Debug.Assert(index >= -1 && index <= Count, "Expected index to be at least -1 and less than or equal to Count."); 154Debug.Assert(savedState != null); 155Debug.Assert(savedState is Pair); 199Debug.Assert(p1.First is object[]); 227Debug.Assert(savedState != null); 228Debug.Assert(savedState is Triplet); 360Debug.Assert(_saveAll); 443Debug.Assert(_saveAll == false);
UI\TargetFrameworkUtil.cs (3)
361Debug.Assert(s_cbmTdpBridge != null, "s_cbmTdpBridge should not be null"); 416Debug.Assert(s_cbmTdpBridge != null, "s_cbmTdpBridge should not be null"); 473Debug.Assert(s_cbmTdpBridge != null, "s_cbmTdpBridge should not be null in IsFrameworkType");
UI\TemplateControl.cs (6)
36using Debug = System.Web.Util.Debug; 440Debug.Assert(_eventObjects[key] != null); 649Debug.Assert((objectFactory == null) != (t == null)); 659Debug.Assert(t != null); 666Debug.Assert(noCompileUCResult != null); 699Debug.Assert(virtualPath != null);
UI\TemplateParser.cs (19)
347Debug.Assert(FInDesigner, "DesignerHost should be accessed only when FInDesigner == true"); 351Debug.Assert(FInDesigner, "DesignerHost should be accessed only when FInDesigner == true"); 526Debug.Assert(RootBuilder != null); 631Debug.Assert(attrs[0] is FileLevelControlBuilderAttribute); 681System.Web.Util.Debug.Trace("Culture", "Before parsing, culture is " + prevCulture.DisplayName); 693System.Web.Util.Debug.Trace("Culture", "After parsing, culture is " + currentThread.CurrentCulture.DisplayName); 695System.Web.Util.Debug.Trace("Culture", "Restored culture to " + prevCulture.DisplayName); 803System.Web.Util.Debug.Trace("Template", "Starting parse at " + DateTime.Now); 874System.Web.Util.Debug.Trace("Template", "Ending parse at " + DateTime.Now); 1435Debug.Assert(false, "Unexpected scope!"); 1532Debug.Assert(childType != null); 1676Debug.Assert(column > 0); 1995Debug.Assert(deviceName != null); 2105Debug.Assert(assembly != null, "assembly != null"); 2131Debug.Assert(_rootBuilder == null); 2189Debug.Assert(_codeFileVirtualPath == null); 2294System.Web.Util.Debug.Trace("Template", "Found malformed server tag: " + tag); 2565Debug.Assert(column > 0); 2603Debug.Assert(false);
UI\TraceContext.cs (2)
120System.Web.Util.Debug.Assert(_isEnabled == TraceEnable.Disable); 761System.Web.Util.Debug.Assert(_masterRequest != null);
UI\UserControl.cs (1)
60Debug.Assert(InDesigner == true, "Should only be called in design-mode!");
UI\Util.cs (8)
38using Debug = System.Web.Util.Debug; 166Debug.Assert(configPath != null, "configPath != null"); 219Debug.Assert(File.Exists(path), path); 283Debug.Assert(IsValidFileName(fileName)); 528Debug.Assert(offset <= newoffset); 1083Debug.Assert(chunkCount >= 1); 1309Debug.Assert(!String.IsNullOrEmpty(assemblyPath)); 1645Debug.Assert(!String.IsNullOrEmpty(secondScript));
UI\ValidationSettings.cs (1)
23Debug.Assert(value is UnobtrusiveValidationMode);
UI\WebControls\AccessDataSourceView.cs (1)
28Debug.Assert(owner != null);
UI\WebControls\AdCreatedEventArgs.cs (1)
148Debug.Assert(properties != null);
UI\WebControls\AdPostCacheSubstitution.cs (2)
43Debug.Assert(_adRotatorHelper != null && _adRotatorHelper.Page != null); 48Debug.Assert(htmlWriter != null);
UI\WebControls\AdRotator.cs (8)
466Debug.Assert(adRecs != null); 499Debug.Assert(xmlDataSource != null); 634Debug.Assert(keywordFilter != null && keywordFilter.Length > 0); 757Debug.Assert(writer != null); 758Debug.Assert(adArgs != null); 905Debug.Assert(selectedIndex >= 0 && selectedIndex < _adRecs.Length, "Index not found"); 924Debug.Assert(iRec == adDicts.Count, "Record count did not match non-null entries"); 947Debug.Assert(adProperties != null, "Required here");
UI\WebControls\basecomparevalidator.cs (3)
184Debug.Assert(shortYear >= 0 && shortYear < 100); 425Debug.Fail("Unknown Type"); 443Debug.Fail("Unknown Operator");
UI\WebControls\BaseDataList.cs (1)
513Debug.Assert(_currentViewValid);
UI\WebControls\BaseValidator.cs (7)
393Debug.Assert(control != null); 395Debug.Assert(page != null); 405Debug.Assert(page.UnobtrusiveValidationMode == UnobtrusiveValidationMode.None, "The writer must have been passed in the Unobtrusive mode"); 497Debug.Fail("We should have already checked for the presence of this"); 596Debug.Assert(false, "Exception should have been thrown if properties are invalid"); 740Debug.Assert(display == ValidatorDisplay.Static, "Unknown Display Type"); 787Debug.Trace("BaseValidator.Validate", "id:" + ID + ", evaluateIsValid = " + IsValid.ToString());
UI\WebControls\BoundColumn.cs (2)
193Debug.Assert(DataField.Length != 0, "Shouldn't be DataBinding without a DataField"); 229Debug.Assert(boundControl is TextBox, "Expected the bound control to be a TextBox");
UI\WebControls\BoundField.cs (1)
460Debug.Assert(DataField.Length != 0, "Shouldn't be DataBinding without a DataField");
UI\WebControls\BulletedList.cs (3)
256Debug.Assert(false, "Invalid BulletStyle"); 356Debug.Assert(false, "Invalid BulletStyle"); 433Debug.Assert(false, "Invalid BulletedListDisplayMode");
UI\WebControls\ButtonColumn.cs (3)
261Debug.Assert(DataTextField.Length != 0, "Shouldn't be DataBinding without a DataTextField"); 283Debug.Assert(DesignMode == true); 291Debug.Assert(boundControl is Button, "Expected the bound control to be a Button");
UI\WebControls\ButtonField.cs (3)
270Debug.Assert(DataTextField.Length != 0, "Shouldn't be DataBinding without a DataTextField"); 302Debug.Assert(DesignMode == true); 306Debug.Assert(boundControl is IButtonControl, "Expected the bound control to be an IButtonControl");
UI\WebControls\Calendar.cs (5)
1427Debug.Assert(false, "Unknown DayNameFormat value!"); 1503Debug.Assert(numOfFirstDaysToSkip < 7); 1650Debug.Assert(!passedLastSupportedDate); 1760Debug.Assert(false, "Unknown TitleFormat value!"); 1832Debug.Assert(dateFrom <= dateTo, "Bad Date Range");
UI\WebControls\ChildTable.cs (2)
40Debug.Assert(parentLevel >= 1); 82Debug.Assert(parent != null);
UI\WebControls\CompareValidator.cs (3)
163Debug.Assert(PropertiesValid, "Properties should have already been checked"); 167Debug.Assert(leftText != null, "Should have already caught this!"); 186Debug.Assert(rightText != null, "Should have already caught this!");
UI\WebControls\ContentPlaceHolder.cs (1)
56Debug.Assert(masterPage != null || InDesigner);
UI\WebControls\CreateUserWizard.cs (1)
2872Debug.Assert(_defaultCreateUserNavigationTemplate != null);
UI\WebControls\CustomValidator.cs (1)
133Debug.Assert(controlValue != null, "Should have been caught be property check");
UI\WebControls\DataBoundControl.cs (2)
286Debug.Assert(_currentViewValid); 535Debug.Assert(modelDataSource != null, "A non-null ModelDataSource should be passed in");
UI\WebControls\DataBoundControlHelper.cs (3)
31Debug.Assert(control != null, "control should not be null"); 32Debug.Assert(!String.IsNullOrEmpty(controlID), "controlID should not be empty"); 137Debug.Assert(s_enableDynamicDataMethod != null);
UI\WebControls\DataControlLinkButton.cs (1)
89Debug.Assert(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataControlPagerLinkButton.cs (1)
47Debug.Assert(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataGrid.cs (1)
883Debug.Assert(realDataSource != null, "Must have a real data source when calling CreateAutoGeneratedColumns");
UI\WebControls\DataGridLinkButton.cs (1)
42Debug.Assert(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataList.cs (3)
982Debug.Assert(((IRepeatInfoUser)this).HasHeader); 986Debug.Assert(((IRepeatInfoUser)this).HasFooter); 990Debug.Assert(((IRepeatInfoUser)this).HasSeparators);
UI\WebControls\DetailsView.cs (7)
2237Debug.Assert(false, "DetailsView::ExtractRowValues- must hand in a valid reference to an IDictionary."); 2870Debug.Assert(oldPageIndex >= 0, "Page indeces are out of sync from callback hidden field state"); 2923Debug.Assert(RowsGeneratorInternal is IStateManager); 3226Debug.Assert(Controls[0] is Table); 3346Debug.Assert((arguments != null && (arguments.Length == 4)), "An unexpected number of params came through"); 3573Debug.Assert(modelDataSource != null, "A non-null ModelDataSource should be passed in"); 3653Debug.Fail("Shouldn't get here!");
UI\WebControls\FilteredDataSetHelper.cs (4)
22Debug.Assert(table != null, "Did not expect null table"); 23Debug.Assert(sortExpression != null, "Did not expect null sort expression"); 24Debug.Assert(filterExpression != null, "Did not expect null filter expression"); 35Debug.Assert(filterParameters != null, "Did not expect null filter parameters when a filter expression was set");
UI\WebControls\FontUnitConverter.cs (2)
124Debug.Assert(fieldName != null, "Invalid FontSize type"); 134Debug.Assert(member != null, "Looks like we're missing FontUnit static fields or FontUnit::ctor(Unit)");
UI\WebControls\FormView.cs (4)
1879Debug.Assert(false, "FormView::ExtractRowValues- must hand in a valid reference to an IDictionary."); 2771Debug.Assert(Controls[0] is Table); 3019Debug.Assert(modelDataSource != null, "A non-null ModelDataSource should be passed in"); 3081Debug.Fail("shouldn't get here!");
UI\WebControls\GridView.cs (6)
2002Debug.Assert(pagedDataSource.CurrentPageIndex >= 0); 2743Debug.Assert(false, "GridView::ExtractRowValues- must hand in a valid reference to an IDictionary."); 2934Debug.Assert(_pageIndex >= 0, "Page index should never be negative!"); 3578Debug.Assert(ColumnsGeneratorInternal is IStateManager); 4126Debug.Assert((arguments != null && (arguments.Length == 8)), "An unexpected number of params came through on " + eventArgument); 4420Debug.Assert(modelDataSource != null, "A non-null ModelDataSource should be passed in");
UI\WebControls\GridViewColumnsGenerator.cs (2)
15Debug.Assert(dataObject == null || dataObject is PagedDataSource); 40Debug.Assert(realDataSource != null, "Must have a real data source when calling CreateAutoGeneratedColumns");
UI\WebControls\HierarchicalDataBoundControl.cs (2)
94Debug.Assert(_currentDataSourceValid); 96Debug.Assert(ds != null);
UI\WebControls\HyperLinkColumn.cs (1)
274Debug.Assert((DataTextField.Length != 0) || (DataNavigateUrlField.Length != 0),
UI\WebControls\HyperLinkField.cs (1)
315Debug.Assert((DataTextField.Length != 0) || (DataNavigateUrlFields.Length != 0),
UI\WebControls\HyperLinkStyle.cs (1)
77Debug.Assert(_owner != null);
UI\WebControls\ImageField.cs (2)
284Debug.Assert(DesignMode, "Unless you're in designmode, there should be a control in the cell."); 386Debug.Assert(DataImageUrlField.Length != 0, "Shouldn't be DataBinding without an DataImageUrlField");
UI\WebControls\Menu.cs (5)
740Debug.Fail("Unknown MenuRenderingMode."); 1298Debug.Assert(cacheList != null); 1839Debug.Assert(dictionary != null && DesignMode); 1926Debug.Assert(_designTimeTextWriterType.IsSubclassOf(typeof(HtmlTextWriter))); 2475Debug.Assert(node == null || node.Owner == this);
UI\WebControls\ModelDataSourceView.cs (8)
412Debug.Assert(!autoPage, "auto-paging should not be true when using async select method"); 891Debug.Assert(_owner.DataControl.Page != null); 908Debug.Assert(_owner.DataControl.Page != null); 963Debug.Assert(_owner.DataControl.Page != null); 964Debug.Assert(_owner.DataControl.TemplateControl != null); 1039Debug.Assert(dataSourceOperation == DataSourceOperation.Select, "Only Select Operation should have been done immediately after page load"); 1077Debug.Assert(entry.Key is string, "Some key value is not string"); 1268Debug.Assert(destination != null);
UI\WebControls\ObjectDataSourceView.cs (19)
74Debug.Assert(owner != null); 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."); 755Debug.Assert(converter != null); 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"); 1582Debug.Assert(allParameters.Contains(paramName)); 1767Debug.Assert(destination != null); 1768Debug.Assert(reference != null); 1942Debug.Assert(type != null, "Should not have a null type at this point"); 1956Debug.Assert(instance != null, "ReleaseInstance: Instance shouldn't be null");
UI\WebControls\RangeValidator.cs (2)
106Debug.Assert(PropertiesValid, "Should have already been checked"); 110Debug.Assert(text != null, "Should have already caught this!");
UI\WebControls\ReadOnlyDataSource.cs (1)
31Debug.Assert(dataSource == null || (dataSource is IEnumerable || dataSource is IDataSource || dataSource is IListSource), "Expected dataSource to be either null, an IEnumerable, an IDataSource, or an IListSource.");
UI\WebControls\ReadOnlyHierarchicalDataSource.cs (1)
29Debug.Assert(dataSource == null || (dataSource is IHierarchicalEnumerable || dataSource is IHierarchicalDataSource), "Expected dataSource to be either null, an IHierarchicalEnumerable, or an IHierarchicalDataSource.");
UI\WebControls\RegularExpressionValidator.cs (2)
85Debug.Assert(controlValue != null, "Should have already been checked"); 101Debug.Fail("Regex error should have been caught in property setter.");
UI\WebControls\Repeater.cs (1)
765Debug.Assert(_currentViewValid);
UI\WebControls\RepeatInfo.cs (1)
154Debug.Assert(outerTableImplied == false, "Cannot use outer implied table with Horizontal layout");
UI\WebControls\RequiredFieldValidator.cs (1)
71Debug.Fail("Should have been caught by PropertiesValid check");
UI\WebControls\SiteMapPath.cs (3)
503Debug.Assert(toStyle != null); 541Debug.Assert(_mergedCurrentNodeStyle != null && _mergedRootNodeStyle != null); 623Debug.Assert(myState.Length == 5);
UI\WebControls\SqlDataSource.cs (2)
944Debug.Assert(_providerFactory != null); 1010Debug.Assert(cache != null);
UI\WebControls\SqlDataSourceView.cs (3)
616Debug.Assert(command != null); 1192Debug.Assert(command != null); 1193Debug.Assert(parameters != null);
UI\WebControls\TreeNode.cs (2)
813Debug.Assert(ChildNodes.Count > 0, "No nodes for expansion, why are we rendering an expander?"); 889Debug.Assert(Index != -1, "Didn't assign an index to a node.");
UI\WebControls\TreeView.cs (2)
1341Debug.Assert(cacheList != null); 3065Debug.Assert(node == null || node.Owner == this);
UI\WebControls\unitconverter.cs (1)
102Debug.Assert(member != null, "Looks like we're missing Unit.Empty or Unit::ctor(double, UnitType)");
UI\WebControls\ValidationSummary.cs (3)
278Debug.Assert(true, "Not all messages were found!"); 449Debug.Fail("Invalid DisplayMode!"); 460Debug.Assert(errorDescriptions[i] != null && errorDescriptions[i].Length > 0, "Bad Error Messages");
UI\WebControls\ValidatorCompatibilityHelper.cs (6)
18Debug.Assert(scriptManagerType != null); 30Debug.Assert(scriptManagerType != null); 42Debug.Assert(scriptManagerType != null); 53Debug.Assert(scriptManagerType != null); 64Debug.Assert(scriptManagerType != null); 75Debug.Assert(scriptManagerType != null);
UI\WebControls\Wizard.cs (9)
1495Debug.Assert(dictionary != null && DesignMode); 1580Debug.Assert(index > -1 && index < WizardSteps.Count); 1868Debug.Assert(_commandSender == null); 1985Debug.Assert(_viewStateArrayLength == 15, "Forgot to change array length when adding new item to view state?"); 2023Debug.Assert(parent is TableCell); 2727Debug.Assert(Owner.HeaderText != null && Owner.HeaderText.Length > 0); 3006Debug.Assert(_wizard.DesignMode); 3107Debug.Fail("Invalid template/button type"); 3220Debug.Assert(owner != null);
UI\WebControls\xml.cs (8)
413Debug.Trace("XmlControl", "Xsl Transform not found in cache (" + _transformSource + ")"); 445Debug.Trace("XmlControl", "XslTransform found in cache (" + _transformSource + ")"); 458Debug.Assert(_xpathDocument == null && _document == null && _xpathNavigator == null); 477Debug.Trace("XmlControl", "XmlDocument not found in cache (" + _documentSource + ")"); 488Debug.Trace("XmlControl", "XmlDocument found in cache (" + _documentSource + ")"); 500Debug.Assert(_xpathDocument == null && _document == null && _xpathNavigator == null); 521Debug.Trace("XmlControl", "XPathDocument not found in cache (" + _documentSource + ")"); 542Debug.Trace("XmlControl", "XPathDocument found in cache (" + _documentSource + ")");
UI\WebControls\XmlDataSource.cs (2)
552Debug.Assert(Cache.Enabled); 669Debug.Assert(!String.IsNullOrEmpty(writeableDataFile), "Did not expect WriteableDataFile to be empty in Save()");
UI\WebControls\XmlDataSourceNodeDescriptor.cs (1)
35Debug.Assert(node != null, "Did not expect null node");
UI\WebControls\XmlHierarchicalDataSourceView.cs (1)
34Debug.Assert(owner != null);
UI\WebParts\BlobPersonalizationState.cs (15)
106Debug.Assert(control != null); 107Debug.Assert(!String.IsNullOrEmpty(personalizationID)); 162Debug.Assert(control is WebPart); 423Debug.Assert(!String.IsNullOrEmpty(ID)); 581Debug.Assert(control != null); 582Debug.Assert(!String.IsNullOrEmpty(personalizationID)); 744Debug.Assert(control is WebPart); 828Debug.Assert(control != null); 845Debug.Assert(pi != null); 875Debug.Assert(!String.IsNullOrEmpty(personalizationID)); 876Debug.Assert(!String.IsNullOrEmpty(propertyName)); 980Debug.Assert(personalizationID != null); 1110Debug.Assert(control != null); 1111Debug.Assert(!String.IsNullOrEmpty(personalizationID)); 1165Debug.Assert(pi != null);
UI\WebParts\CatalogZoneBase.cs (4)
360Debug.Assert(WebPartManager != null); 469Debug.Assert(page != null); 606Debug.Assert(!String.IsNullOrEmpty(catalogPart.ID)); 660Debug.Assert(!String.IsNullOrEmpty(zone.ID));
UI\WebParts\ConnectionsZone.cs (18)
673Debug.Assert(transformerType.IsSubclassOf(typeof(WebPartTransformer))); 757Debug.Assert(transformerType.IsSubclassOf(typeof(WebPartTransformer))); 805Debug.Assert(webPartManager != null); 841Debug.Assert(providerInfo != null && providerInfo.TransformerType != null && providerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer))); 866Debug.Assert(_pendingSelectedValue != null); 870Debug.Assert(consumerInfo != null && consumerInfo.TransformerType != null && consumerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer))); 908Debug.Assert(_pendingSelectedValue != null); 992Debug.Assert(_pendingConnectionType == ConnectionType.None); 1242Debug.Assert(_pendingTransformer != null); 1827Debug.Assert(connection.Provider == webPartToConnect); 1850Debug.Assert(!connection.Provider.IsClosed && !connection.Consumer.IsClosed); 1867Debug.Assert(connection.Consumer == webPartToConnect); 1890Debug.Assert(!connection.Provider.IsClosed && !connection.Consumer.IsClosed); 1962Debug.Assert(_pendingTransformer != null); 1965Debug.Assert(_pendingConsumer != null && _pendingProvider != null 2120Debug.Assert(WebPartManager != null); 2241Debug.Assert(_pendingSelectedValue != null); 2259Debug.Assert(_pendingSelectedValue != null);
UI\WebParts\EditorZoneBase.cs (1)
232Debug.Assert(webPartToEdit != null);
UI\WebParts\GenericWebPart.cs (1)
79Debug.Assert(_childControl != null, "ChildControl cannot be null.");
UI\WebParts\PersonalizableAttribute.cs (3)
91Debug.Assert((isPersonalizable == true || isSensitive == false), "Only Personalizable properties can be sensitive"); 154Debug.Assert(type != null); 170Debug.Assert(type != null);
UI\WebParts\PersonalizationAdministration.cs (3)
67Debug.Assert(_providers == null); 121Debug.Assert(count >= 0); 150Debug.Assert(count >= 0);
UI\WebParts\PersonalizationStateInfoCollection.cs (3)
126Debug.Assert(ipos >= 0 && ipos < _values.Count); 174Debug.Assert(path != null); 193Debug.Assert(key.Path != null);
UI\WebParts\PersonalizationStateQuery.cs (2)
49Debug.Assert(o != null, "Should always have a default value!"); 80Debug.Assert(valueType != null);
UI\WebParts\ProxyWebPartConnectionCollection.cs (3)
117Debug.Assert(webPartManagerIndex >= 0); 140Debug.Assert(_webPartManager == null); 142Debug.Assert(webPartManager != null);
UI\WebParts\SqlPersonalizationProvider.cs (16)
84Debug.Assert(connection != null); 204Debug.Assert(connection != null); 310Debug.Assert(connection != null); 386Debug.Assert(connection != null); 504Debug.Assert(connection != null); 505Debug.Assert(!String.IsNullOrEmpty(path)); 580Debug.Assert(connection != null); 581Debug.Assert(!String.IsNullOrEmpty(path)); 640Debug.Assert(connection != null); 692Debug.Assert(connection != null); 805Debug.Assert(connection != null); 839Debug.Assert(paths != null); 856Debug.Assert(mode == ResetUserStateMode.PerUsers); 906Debug.Assert(connection != null); 907Debug.Assert(!String.IsNullOrEmpty(path)); 908Debug.Assert((state != null) && (state.Length != 0));
UI\WebParts\WebPartChrome.cs (3)
248Debug.Assert(_page.SupportsStyleSheets); 250Debug.Assert(style.RegisteredCssClass.Length == 0); 610Debug.Assert(WebPartManager != null);
UI\WebParts\WebPartManager.cs (34)
898Debug.Assert(Personalization.IsModifiable); 901Debug.Assert(webPart.Zone == null); 997Debug.Assert(webPart.Zone == null || webPart.IsClosed); 1010Debug.Assert(allParts.Contains(successor)); 1778Debug.Assert(consumerAttributes.Length == 0 || consumerAttributes.Length == 1); 1813Debug.Assert(providerAttributes.Length == 0 || providerAttributes.Length == 1); 1925Debug.Assert(Personalization.IsModifiable); 1936Debug.Assert(Personalization.IsModifiable); 2017Debug.Assert(!(StaticConnections.Contains(connection) && DynamicConnections.Contains(connection))); 2052Debug.Assert(!Internals.ConnectionDeleted(connection)); 2232Debug.Assert((!excludeSensitive) || isIPersonalizable); 2292Debug.Assert(!String.IsNullOrEmpty(zoneID)); 2390Debug.Assert(!String.IsNullOrEmpty(displayTitle)); 2966Debug.Assert(target != null); 3017Debug.Assert(pi != null); 3157Debug.Assert(target is IPersonalizable); 3308Debug.Assert(dynamicConnectionState.Length % 7 == 0); 3389Debug.Assert(type == typeof(UserControl)); 3441Debug.Assert(dynamicWebPart != null); 3451Debug.Assert(dynamicWebPartState.Length % 4 == 0); 3492Debug.Assert(connectionToDelete.IsShared); 3496Debug.Assert(connectionToDelete.IsStatic || entry.Scope == PersonalizationScope.User); 3518Debug.Assert(webPartState.Length % 4 == 0); 3636Debug.Assert(existingInstance != this); 3660Debug.Assert(page != null); 3907Debug.Assert(zone != null); 3934Debug.Assert(zone is ToolZone); 3971Debug.Assert(!webPart.IsClosed); 4137Debug.Assert(deletedConnection.IsShared); 4140Debug.Assert(deletedConnection.IsStatic || scope == PersonalizationScope.User); 4172Debug.Assert(!Internals.ConnectionDeleted(connection)); 4204Debug.Assert(part.Zone == zone); 4290Debug.Assert(Personalization.IsModifiable); 4518Debug.Assert(type != null && culture != null && uiCulture != null);
UI\WebParts\WebPartMenu.cs (9)
92Debug.Assert(_menuUser.Page != null && _menuUser.Page.SupportsStyleSheets); 96Debug.Assert(style.RegisteredCssClass.Length == 0); 107Debug.Assert(_menuUser.Page != null && _menuUser.Page.SupportsStyleSheets); 122Debug.Assert(webPartManager != null); 224Debug.Assert(verb != null); 241Debug.Assert(associatedWebPart != null); 256Debug.Assert(associatedWebPart != null); 298Debug.Assert(submitScript != null || clientClickScript != null); 312Debug.Assert(associatedWebPart != null);
UI\WebParts\WebPartPersonalization.cs (4)
302Debug.Assert(!(customPersonalizable == null && info.CustomProperties != null)); 352Debug.Assert((genericWebPartA == null) == (genericWebPartB == null)); 390Debug.Assert(_provider != null); 508Debug.Assert(_provider != null);
UI\WebParts\WebZone.cs (3)
489Debug.Assert(chromeType != PartChromeType.Default); 535Debug.Assert(page != null); 556Debug.Assert(parent != null);
Util\altserialization.cs (4)
133Debug.Assert(IntPtr.Size == 8); 144Debug.Assert(UIntPtr.Size == 8); 254Debug.Assert(IntPtr.Size == 8); 264Debug.Assert(UIntPtr.Size == 8);
Util\ArglessEventHandlerProxy.cs (1)
22Debug.Assert(arglessMethod.GetParameters().Length == 0);
Util\AspCompat.cs (1)
366Debug.Assert(_ar == ar);
Util\CountdownTask.cs (2)
37Debug.Assert(newCount >= 0, "The counter should never hit a negative value."); 41Debug.Assert(success, "TrySetResult shouldn't have been already called.");
Util\DoubleLinkList.cs (1)
102Debug.Validate(this);
Util\FactoryGenerator.cs (1)
177Debug.Trace("FactoryGenerator", "Creating generator for type " + type.FullName);
Util\FileUtil.cs (1)
353Debug.Assert(!(directoryExistsOnError && fileExistsOnError), "!(directoryExistsOnError && fileExistsOnError)");
Util\GCUtil.cs (3)
47Debug.Assert(t != null); 54Debug.Assert(_handle.IsAllocated); 62Debug.Assert(_handle.IsAllocated);
Util\HashCodeCombiner.cs (13)
70Debug.Trace("HashCodeCombiner", "Adding " + n.ToString("x") + " --> " + _combinedHash.ToString("x")); 110Debug.Trace("HashCodeCombiner", "Ticks: " + dt.Ticks.ToString("x", CultureInfo.InvariantCulture)); 111Debug.Trace("HashCodeCombiner", "Hashcode: " + dt.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 116Debug.Trace("HashCodeCombiner", "file size: " + fileSize.ToString("x", CultureInfo.InvariantCulture)); 117Debug.Trace("HashCodeCombiner", "Hashcode: " + fileSize.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 123Debug.Trace("HashCodeCombiner", "FileMajorPart: " + fileVersionInfo.FileMajorPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 124Debug.Trace("HashCodeCombiner", "FileMinorPart: " + fileVersionInfo.FileMinorPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 125Debug.Trace("HashCodeCombiner", "FileBuildPart: " + fileVersionInfo.FileBuildPart.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 126Debug.Trace("HashCodeCombiner", "FilePrivatePart: " + fileVersionInfo.FilePrivatePart.GetHashCode().ToString("x", CultureInfo.InvariantCulture)); 152Debug.Trace("HashCodeCombiner", "AddFile: " + fileName); 162Debug.Trace("HashCodeCombiner", "Could not find target " + fileName); 171Debug.Trace("HashCodeCombiner", "AddExistingFile: " + fileName); 184Debug.Trace("HashCodeCombiner", "AddExistingFileVersion: " + fileName);
Util\HttpEncoder.cs (2)
359Debug.Assert(0 <= startPos && startPos <= s.Length, "0 <= startPos && startPos <= s.Length"); 902Debug.Assert(false);
Util\HttpEncoderUtility.cs (1)
27Debug.Assert(n < 0x10);
Util\ReadWriteObjectLock.cs (2)
46Debug.Assert(_lock > 0); 72Debug.Assert(_lock == -1);
Util\ReadWriteSpinLock.cs (10)
102Debug.Trace("Spinlock", "AcquireReaderLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture) 117Debug.Trace("Spinlock", "AcquireWriterLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture) 130Debug.Assert(n >= 0, "n >= 0"); 131Debug.Trace("Spinlock", "ReleaseReaderLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture) 140Debug.Assert(newWriteLockCount >= 0, "newWriteLockCount >= 0"); 149Debug.Assert(WriteLockCount(oldBits) == oldWriteLockCount, "WriteLockCount(oldBits) == oldWriteLockCount"); 150Debug.Assert(ReadLockCount(oldBits) == readLockCount, "ReadLockCount(oldBits) == readLockCount"); 169Debug.Assert(writeLockCount > 0, "writeLockCount > 0"); 177Debug.Trace("Spinlock", "ReleaseWriterLock: _bits=" + _bits.ToString("x8", CultureInfo.InvariantCulture) 199Debug.Assert(id == 0);
Util\ResourcePool.cs (12)
32Debug.Validate("ResourcePool", this); 56Debug.Trace("ResourcePool", "Disposed"); 69Debug.Validate("ResourcePool", this); 74Debug.Trace("ResourcePool", "RetrieveResource returned null"); 83Debug.Validate("ResourcePool", this); 94Debug.Validate("ResourcePool", this); 111Debug.Validate("ResourcePool", this); 116Debug.Trace("ResourcePool", "StoreResource reached max=" + _max); 125Debug.Validate("ResourcePool", this); 134Debug.Validate("ResourcePool", this); 146Debug.Trace("ResourcePool", "Timer disposing " + a.Length + "; remaining=" + _resources.Count); 147Debug.Validate("ResourcePool", this);
Util\SecUtil.cs (1)
59Debug.Assert(config != null);
Util\SimpleBitVector32.cs (2)
61Debug.Assert(value >= 0, "Value must be non-negative."); 63Debug.Assert(((value << offset) & ~mask) == 0, "Value must fit within the mask.");
Util\StringUtil.cs (8)
212Debug.Assert(len >= 0, "len >= 0"); 214Debug.Assert(src != null, "src != null"); 215Debug.Assert(srcIndex >= 0, "srcIndex >= 0"); 216Debug.Assert(srcIndex + len <= src.Length, "src"); 218Debug.Assert(dest != null, "dest != null"); 219Debug.Assert(destIndex >= 0, "destIndex >= 0"); 220Debug.Assert(destIndex + len <= dest.Length, "dest"); 333Debug.Assert(len >= 0, "Negative length in memcpyimpl!");
Util\SynchronizationContextUtil.cs (1)
44Debug.Assert(specificErrorMessage != null);
Util\SystemInfo.cs (1)
57Debug.Assert(_trueNumberOfProcessors > 0);
Util\TaskExtensions.cs (1)
19Debug.Assert(task.IsCompleted, "The Task passed to this method must be marked as completed so that this method doesn't block.");
Util\UriUtil.cs (3)
26Debug.Assert(!String.IsNullOrEmpty(scheme)); 27Debug.Assert(!String.IsNullOrEmpty(serverName)); 28Debug.Assert(!String.IsNullOrEmpty(path));
Util\UrlPath.cs (13)
172Debug.Assert(lastSlashIndex >= 0); 213Debug.Assert(!String.IsNullOrEmpty(basepath)); 214Debug.Assert(!String.IsNullOrEmpty(relative)); 215Debug.Assert(relative[0] != '/'); 287Debug.Assert(sb.Length == 1); 523Debug.Assert(virtualPath2[0] == '/'); 542Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 548Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 555Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 569Debug.Assert(applicationPath[0] == '/'); 570Debug.Assert(HasTrailingSlash(applicationPath)); 603Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 622Debug.Assert(HasTrailingSlash(applicationPath));
VirtualPath.cs (9)
90Debug.Assert(_appRelativeVirtualPath != null); 127Debug.Assert(_virtualPath != null); 229Debug.Assert(HasTrailingSlash); 232Debug.Assert(filename[0] != '/' && !UrlPath.HasTrailingSlash(filename)); 305Debug.Assert(this.HasTrailingSlash); 336Debug.Assert(false); 403Debug.Assert(index >= 0); 464Debug.Assert(false); 484Debug.Assert(_appRelativeVirtualPath != null);
WebCategoryAttribute.cs (1)
56Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found.");
WebSockets\AspNetWebSocket.cs (1)
403Debug.Assert(result.CloseStatus.HasValue, "The CloseStatus property should be non-null when a CLOSE frame is received.");
WorkerRequest.cs (1)
1387Debug.Assert(serverVarName == null || serverVarName == "HTTP_" + headerName.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_'));
XmlSiteMapProvider.cs (2)
405Debug.Assert(_filename != null); 820Debug.Assert(providerName != null);