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");
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\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");
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");
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);
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);
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);
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!");
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);
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 + ")");
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\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);
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");
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");
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\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\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");
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\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\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\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");
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\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);