1 instantiation of HttpRuntime
System.Web (1)
HttpRuntime.cs (1)
104_theRuntime = new HttpRuntime();
737 references to HttpRuntime
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
212string appVirtualPath = HttpRuntime.AppDomainAppVirtualPath;
System.ServiceModel.Activation (4)
System\ServiceModel\Activation\AspNetPartialTrustHelpers.cs (1)
76return HttpRuntime.GetNamedPermissionSet();
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
100return HttpRuntime.UsingIntegratedPipeline;
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (2)
107this.isWebSocketRequest = HttpRuntime.UsingIntegratedPipeline && AspNetEnvironment.Current.IsWebSocketModuleLoaded && this.context.Context.IsWebSocketRequest; 631if (HttpRuntime.UsingIntegratedPipeline)
System.Web (722)
Administration\WebAdminConfigurationHelper.cs (8)
37if (HttpRuntime.NamedPermissionSet != null) { 38HttpRuntime.NamedPermissionSet.PermitOnly(); 58if (HttpRuntime.NamedPermissionSet != null) { 59HttpRuntime.NamedPermissionSet.PermitOnly(); 83if (HttpRuntime.NamedPermissionSet != null) { 84HttpRuntime.NamedPermissionSet.PermitOnly(); 106if (HttpRuntime.NamedPermissionSet != null) { 107HttpRuntime.NamedPermissionSet.PermitOnly();
Cache\cache.cs (4)
375HttpRuntime.Cache.Insert(entry.Key, expensiveObject, cacheDependency, absoluteExpiration, slidingExpiration, entry.CacheItemUpdateCallback); 378HttpRuntime.Cache.Remove(entry.Key); 382HttpRuntime.Cache.Remove(entry.Key); 481HttpRuntime.Cache.InternalCache.Insert(
Cache\CacheDependency.cs (4)
451FileChangesMonitor fmon = HttpRuntime.FileChangesMonitor; 518cache = isPublic ? HttpRuntime.Cache.ObjectCache : HttpRuntime.Cache.InternalCache; 634FileChangesMonitor fmon = HttpRuntime.FileChangesMonitor;
Cache\OutputCache.cs (19)
250bool isImpersonating = ((context != null && context.IsClientImpersonationConfigured) || HttpRuntime.IsOnUNCShareInternal); 254HttpRuntime.CheckFilePermission(fre.Path); 290return (CachedVary) HttpRuntime.Cache.InternalCache.Add(key, cachedVary, null); 295return (ControlCachedVary) HttpRuntime.Cache.InternalCache.Add(key, cachedVary, null); 332if (HttpRuntime.UseIntegratedPipeline) { 382if (kernelCacheUrl != null && HttpRuntime.Cache.InternalCache.Get(key) == null) { 384if (HttpRuntime.UseIntegratedPipeline) { 453if (HttpRuntime.Cache.InternalCache.Get(depKey) != null) { 471HttpRuntime.Cache.InternalCache.Insert(depKey, new DependencyCacheEntry(oceKey, kernelKey, providerName), new CacheInsertOptions() { 537result = HttpRuntime.Cache.InternalCache.Get(key); 572result = HttpRuntime.Cache.InternalCache.Get(key); 593HttpRuntime.Cache.InternalCache.Remove(key); 646HttpRuntime.Cache.InternalCache.Remove(key); 700HttpRuntime.Cache.InternalCache.Insert(cachedVaryKey, cachedVary, null); 725HttpRuntime.Cache.InternalCache.Insert(fragmentKey, fragment, new CacheInsertOptions() { 741Object d = HttpRuntime.Cache.InternalCache.Add(depKey, new DependencyCacheEntry(fragmentKey, null, provider.Name), 814HttpRuntime.Cache.InternalCache.Insert(cachedVaryKey, cachedVary, null); 839HttpRuntime.Cache.InternalCache.Insert(rawResponseKey, rawResponse, new CacheInsertOptions() { 862Object d = HttpRuntime.Cache.InternalCache.Add(depKey, new DependencyCacheEntry(rawResponseKey, oce.KernelCacheUrl, provider.Name),
Cache\SqlCacheDependency.cs (5)
72HttpRuntime.Cache.InternalCache.Get(GetDependKey(databaseEntryName, tableName))); 80object o = HttpRuntime.Cache.InternalCache.Get(GetDependKey(databaseEntryName, tableName)); 759CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 1000if (HttpRuntime.Cache.InternalCache.Get(GetMoniterKey(database, table)) != null) { 1542if (HttpRuntime.IsAspNetAppDomain) {
Cache\SRef.cs (1)
16_sizedRef = HttpRuntime.CreateNonPublicInstance(s_type, new object[] {target});
CachedPathData.cs (3)
199CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 424CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 445CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache;
Compilation\AssemblyBuilder.cs (2)
101private TempFileCollection _tempFiles = new TempFileCollection(HttpRuntime.CodegenDirInternal); 1014using (IAssemblyPostProcessor postProcessor = (IAssemblyPostProcessor) HttpRuntime.FastCreatePublicInstance(postProcessorType)) {
Compilation\BrowserCapabilitiesCompiler.cs (2)
30HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombineWithDir(HttpRuntime.BrowsersDirectoryName);
Compilation\BuildManager.cs (66)
148Debug.Trace("BuildManager", "InitializeBuildManager " + HttpRuntime.FusionInited); 149if (!HttpRuntime.FusionInited) 153if (HttpRuntime.TrustLevel == null) 217typeof(HttpRuntime).Assembly, 397_globalAsaxVirtualPath = HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombine( 400_webHashFilePath = Path.Combine(HttpRuntime.CodegenDirInternal, "hash\\hash.web"); 434_excludedTopLevelDirectories.Add(HttpRuntime.BinDirectoryName); 435_excludedTopLevelDirectories.Add(HttpRuntime.CodeDirectoryName); 436_excludedTopLevelDirectories.Add(HttpRuntime.ResourcesDirectoryName); 437_excludedTopLevelDirectories.Add(HttpRuntime.LocalResourcesDirectoryName); 438_excludedTopLevelDirectories.Add(HttpRuntime.WebRefDirectoryName); 439_excludedTopLevelDirectories.Add(HttpRuntime.ThemesDirectoryName); 445_forbiddenTopLevelDirectories.Add(HttpRuntime.CodeDirectoryName); 446_forbiddenTopLevelDirectories.Add(HttpRuntime.ResourcesDirectoryName); 447_forbiddenTopLevelDirectories.Add(HttpRuntime.LocalResourcesDirectoryName); 448_forbiddenTopLevelDirectories.Add(HttpRuntime.WebRefDirectoryName); 449_forbiddenTopLevelDirectories.Add(HttpRuntime.ThemesDirectoryName); 467_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal); 486HttpRuntime.BinDirectoryInternal); 491_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal); 508_codeGenCache = new StandardDiskBuildResultCache(HttpRuntime.CodegenDirInternal); 512string targetBinDir = Path.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName); 526string licAssemblyPath = Path.Combine(HttpRuntime.BinDirectoryInternal, LicensesAssemblyName + ".dll"); 587specialFilesHashCodeCombiner.AddObject(HttpRuntime.AppDomainAppPathInternal); 590string aspBinaryFileName = typeof(HttpRuntime).Module.FullyQualifiedName; 630string binPhysicalDir = HttpRuntime.BinDirectoryInternal; 635specialFilesHashCodeCombiner.AddResourcesDirectory(HttpRuntime.ResourcesDirectoryVirtualPath.MapPathInternal()); 637specialFilesHashCodeCombiner.AddDirectory(HttpRuntime.WebRefDirectoryVirtualPath.MapPathInternal()); 639specialFilesHashCodeCombiner.AddDirectory(HttpRuntime.CodeDirectoryVirtualPath.MapPathInternal()); 688HttpRuntime.FileChangesMonitor.StartMonitoringFile(_webHashFilePath, 728HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.BuildManagerChange, message); 764string preStartInitListPath = Path.Combine(HttpRuntime.CodegenDirInternal, "preStartInitList.web"); 917CompilationSection compConfig = MTConfigUtil.GetCompilationConfig(HttpRuntime.AppDomainAppVirtualPath); 1058VirtualPath virtualDir = HttpRuntime.ResourcesDirectoryVirtualPath; 1067CompileCodeDirectory(HttpRuntime.WebRefDirectoryVirtualPath, CodeDirectoryType.WebReferences, 1093VirtualPath virtualDir = HttpRuntime.CodeDirectoryVirtualPath; 1137while (type.Assembly != typeof(HttpRuntime).Assembly) { 1403object o = HttpRuntime.CreatePublicInstanceByWebObjectActivator(buildProviderType); 1423object o = HttpRuntime.CreatePublicInstanceByWebObjectActivator(buildProviderType); 1456if (HttpRuntime.AppDomainAppVirtualPathObject == virtualPath) 1459int appPathLen = HttpRuntime.AppDomainAppVirtualPathString.Length; 1530if (HttpRuntime.IsFullTrust) { 1791VirtualPath localResDir = virtualDir.SimpleCombineWithDir(HttpRuntime.LocalResourcesDirectoryName); 1810HttpRuntime.StartListeningToLocalResourcesDirectory(localResDir); 2001VirtualPath virtualDir = HttpRuntime.CodeDirectoryVirtualPath; 2058if (virtualCodeDir == HttpRuntime.CodeDirectoryVirtualPath) { 2070else if (virtualCodeDir == HttpRuntime.ResourcesDirectoryVirtualPath) { 2078HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString, 0, HttpRuntime.WebRefDirectoryVirtualPath.VirtualPathString.Length, 2082virtualCodeDir = HttpRuntime.WebRefDirectoryVirtualPath; 2087else if (String.Compare(virtualCodeDir.FileName, HttpRuntime.LocalResourcesDirectoryName, 2544PrecompileApp(HttpRuntime.AppDomainAppVirtualPathObject, excludedVirtualPaths); 2606string targetBinDir = Path.Combine(_precompTargetPhysicalDir, HttpRuntime.BinDirectoryName); 2607CopyCompiledAssembliesToDestinationBin(HttpRuntime.CodegenDirInternal, targetBinDir); 2779_isPrecompiledApp = ReadPrecompMarkerFile(HttpRuntime.AppDomainAppPathInternal, 2867string appPhysicalDir = Path.Combine(HttpRuntime.AppDomainAppPathInternal, HttpRuntime.ThemesDirectoryName); 2908(StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.CodeDirectoryName) || 2909StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.ResourcesDirectoryName) || 2910StringUtil.EqualsIgnoreCase(child.Name, HttpRuntime.WebRefDirectoryName))) { 2918HttpRuntime.LocalResourcesDirectoryName)) { 3199if (HttpRuntime.IsFullTrust) { 3340resxDir = Path.Combine(HttpRuntime.CodegenDirInternal, CodegenResourceDirectoryName); 3353string userCachePath = Path.Combine(HttpRuntime.CodegenDirInternal, "UserCache"); 3383new FileIOPermission(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert(); 3394new FileIOPermission(FileIOPermissionAccess.AllAccess, HttpRuntime.CodegenDirInternal).Assert();
Compilation\BuildManagerHost.cs (5)
99return HttpRuntime.CodegenDirInternal; 585HttpRuntime.AppDomainShutdown += new BuildManagerHostUnloadEventHandler(this.OnAppDomainShutdown); 602_client.OnAppDomainUnloaded(HttpRuntime.ShutdownReason); 611HttpRuntime.SetUserForcedShutdown(); 614return HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.UnloadAppDomainCalled, "CBM called UnloadAppDomain");
Compilation\BuildResult.cs (6)
546s_codegenDir = FileUtil.RemoveTrailingDirectoryBackSlash(HttpRuntime.CodegenDir); 882return HttpRuntime.CreatePublicInstanceByWebObjectActivator(ResultType); 1012TemplateControl templateControl = (TemplateControl) HttpRuntime.FastCreatePublicInstance(_baseType); 1258_ccuPreservationFileName = Path.Combine(HttpRuntime.CodegenDirInternal, _ccuPreservationFileName); 1281preservationFileName = Path.Combine(HttpRuntime.CodegenDirInternal, preservationFileName); 1308ccuPreservationFileName = Path.Combine(HttpRuntime.CodegenDirInternal, ccuPreservationFileName);
Compilation\BuildResultCache.cs (13)
122BuildResult result = (BuildResult) HttpRuntime.Cache.InternalCache.Get(key); 138HttpRuntime.Cache.InternalCache.Remove(key); 140Debug.Assert(HttpRuntime.Cache.InternalCache.Get(key) == null); 184Assembly a = (Assembly) HttpRuntime.Cache.InternalCache.Get(assemblyKey); 188HttpRuntime.Cache.InternalCache.Insert(assemblyKey, compiledResult.ResultAssembly, 234HttpRuntime.Cache.InternalCache.Insert(key, result, new CacheInsertOptions() { 283HttpRuntime.SetShutdownReason(ApplicationShutdownReason.BuildManagerChange, message); 337Assembly assembly = (Assembly)HttpRuntime.Cache.InternalCache.Get(cacheKey); 347HttpRuntime.Cache.InternalCache.Remove(cacheKey); 418throw new HttpException(SR.GetString(SR.Failed_to_create_temp_dir, HttpRuntime.GetSafePath(_cacheDir)), e); 531HttpRuntime.Cache.InternalCache.Remove(assemblyKey); 614HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.MaxRecompilationsReached, 698Debug.Assert(cacheDir == HttpRuntime.CodegenDirInternal);
Compilation\CodeDirectoryCompiler.cs (2)
117if (dirType != CodeDirectoryType.LocalResources && !StringUtil.StringStartsWithIgnoreCase(physicalDir, HttpRuntime.AppDomainAppPathInternal)) { 257generatedFilesDir = HttpRuntime.CodegenDirInternal + "\\" +
Compilation\CompilationLock.cs (2)
172int hashCode = StringUtil.GetNonRandomizedHashCode("CompilationLock" + HttpRuntime.AppDomainAppId.ToLower(CultureInfo.InvariantCulture)); 177"CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath);
Compilation\CompilationUtil.cs (3)
345if (!HttpRuntime.HasUnmanagedPermission()) { 358if (!HttpRuntime.HasUnmanagedPermission()) { 465return (CodeDomProvider)HttpRuntime.CreateNonPublicInstance(codeDomProviderType);
Compilation\ExpressionBuilder.cs (1)
90ExpressionBuilder expressionBuilder = (ExpressionBuilder)HttpRuntime.FastCreatePublicInstance(expressionBuilderType);
Compilation\MultiTargetingUtil.cs (1)
273VirtualPath vpath = HttpRuntime.AppDomainAppVirtualPathObject;
Compilation\PageThemeBuildProvider.cs (2)
88string appThemesVdir = UrlPath.SimpleCombine(HttpRuntime.AppDomainAppVirtualPathString, HttpRuntime.ThemesDirectoryName);
Compilation\ProfileBuildProvider.cs (2)
42buildProvider.SetVirtualPath(HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombine("Profile")); 119type.LinePragma = new CodeLinePragma(HttpRuntime.GetSafePath(prop.Source), prop.LineNumber);
Compilation\ResourceExpressionBuilder.cs (3)
265s_resourceProviderFactory = (ResourceProviderFactory) HttpRuntime.CreatePublicInstanceByWebObjectActivator(t); 274CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache; 299CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache;
Compilation\ThemeDirectoryCompiler.cs (3)
27return HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombineWithDir(HttpRuntime.ThemesDirectoryName + "/" + themeName); 31return BuildManager.ScriptVirtualDir.SimpleCombineWithDir(HttpRuntime.GlobalThemesDirectoryName + "/" + themeName);
Compilation\WebReferencesBuildProvider.cs (2)
47BuildProvider buildProvider = (BuildProvider)HttpRuntime.CreateNonPublicInstance(s_indigoWebRefProviderType); 53VirtualPath rootWebRefDirVirtualPath = HttpRuntime.WebRefDirectoryVirtualPath;
Configuration\AuthenticationConfig.cs (1)
53loginUrl = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, loginUrl);
Configuration\AuthorizationRule.cs (4)
520if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 521if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 522HttpRuntime.NamedPermissionSet.PermitOnly();
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
82_browsersDirectory = HttpRuntime.ClrInstallDirectoryInternal + "\\config\\browsers"; 870if (HttpRuntime.HasFilePermission(filename)) {
Configuration\BrowserDefinition.cs (1)
568if (!HttpRuntime.IsTypeAllowedInConfig(type)) {
Configuration\CodeSubDirectory.cs (1)
87VirtualPath codeVirtualSubDir = HttpRuntime.CodeDirectoryVirtualPath.SimpleCombineWithDir(directoryName);
Configuration\CompilationSection.cs (4)
449if (!HttpRuntime.HasUnmanagedPermission()) { 719System.Web.Util.Debug.Assert(HttpRuntime.TrustLevel != null); 764System.Web.Util.Debug.Assert(HttpRuntime.TrustLevel != null); 836string binPath = HttpRuntime.BinDirectoryInternal;
Configuration\ConfigUtil.cs (2)
65HttpRuntime.FailIfNoAPTCABit(val, node); 68HttpRuntime.FailIfNoAPTCABit(val,
Configuration\ExpressServerConfig.cs (6)
46HttpRuntime.ForceStaticInit(); 189return _nativeConfig.MgdIsWithinApp(CurrentAppSiteName, HttpRuntime.AppDomainAppVirtualPathString, virtualPath); 377if (HttpRuntime.IsMapPathRelaxed) { 378physicalPath = HttpRuntime.GetRelaxedMapPathResult(physicalPath); 382if (HttpRuntime.IsMapPathRelaxed) { 383physicalPath = HttpRuntime.GetRelaxedMapPathResult(null);
Configuration\HandlerFactoryCache.cs (2)
98HttpRuntime.FailIfNoAPTCABit(t, null, null); 113return HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(GetHandlerType(type));
Configuration\HandlerFactoryWrapper.cs (1)
30_handler = (IHttpHandler)HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_handlerType);
Configuration\HealthMonitoringSectionHelper.cs (5)
68if (HttpRuntime.InitializationException == null) { 69HttpRuntime.InitializationException = e; 309_customEvaluatorInstances[ruleInfo._customEvaluatorType] = HttpRuntime.CreatePublicInstanceByWebObjectActivator(ruleInfo._customEvaluatorType); 543provider = (WebEventProvider)HttpRuntime.CreateNonPublicInstance(type); 546provider = (WebEventProvider)HttpRuntime.CreatePublicInstanceByWebObjectActivator(type);
Configuration\HttpCapabilitiesEvaluator.cs (3)
214CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache; 258CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache; 398HttpCapabilitiesBase result = (HttpCapabilitiesBase)HttpRuntime.CreateNonPublicInstance(_resultType);
Configuration\HttpConfigurationSystem.cs (3)
258HttpRuntime.FileChangesMonitor.StartMonitoringFile(file, s_fileChangeEventHandler); 264HttpRuntime.OnConfigChange(message: null); 269HttpRuntime.OnConfigChange(message);
Configuration\HttpHandlerAction.cs (1)
191return HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_type);
Configuration\MachineKeySection.cs (4)
312string appName = HttpRuntime.AppDomainAppVirtualPath; 313string appId = HttpRuntime.AppDomainAppId; 356Buffer.BlockCopy(HttpRuntime.s_autogenKeys, 0, _ValidationKey, 0, _AutoGenValidationKeySize); 409Buffer.BlockCopy(HttpRuntime.s_autogenKeys, _AutoGenValidationKeySize, _DecryptionKey, 0, _AutoGenDecryptionKeySize);
Configuration\MetabaseServerConfig.cs (12)
46HttpRuntime.ForceStaticInit(); // force webengine.dll to load 229cacheInfo = (MapPathCacheInfo)HttpRuntime.Cache.InternalCache.Get(cacheKey); 237object existingEntry = HttpRuntime.Cache.InternalCache.Add(cacheKey, cacheInfo, new CacheInsertOptions() { SlidingExpiration = slidingExpiration }); 248if (!cacheInfo.Evaluated && HttpRuntime.IsMapPathRelaxed) { 260if (parentMapPathResult == HttpRuntime.GetRelaxedMapPathResult(null)) { 266cacheInfo.MapPathResult = HttpRuntime.GetRelaxedMapPathResult(null); 279if (HttpRuntime.IsMapPathRelaxed) { 280physicalPath = HttpRuntime.GetRelaxedMapPathResult(physicalPath); 286if (HttpRuntime.IsMapPathRelaxed) { 287physicalPath = HttpRuntime.GetRelaxedMapPathResult(null); 294if (HttpRuntime.IsMapPathRelaxed) { 295physicalPath = HttpRuntime.GetRelaxedMapPathResult(null);
Configuration\MTConfigUtil.cs (1)
239s_appVirtualPath = VirtualPath.Create(HttpRuntime.AppDomainAppVirtualPathObject.VirtualPathStringNoTrailingSlash);
Configuration\PagesSection.cs (1)
439return (PageParserFilter)HttpRuntime.CreateNonPublicInstance(pageParserFilterType);
Configuration\ProcessHostConfigUtils.cs (1)
36HttpRuntime.ForceStaticInit();
Configuration\ProcessHostMapPath.cs (12)
29HttpRuntime.ForceStaticInit(); 227cacheInfo = (MapPathCacheInfo)HttpRuntime.Cache.InternalCache.Get(cacheKey); 235object existingEntry = HttpRuntime.Cache.InternalCache.Add(cacheKey, cacheInfo, new CacheInsertOptions() { SlidingExpiration = slidingExpiration }); 245if (!cacheInfo.Evaluated && HttpRuntime.IsMapPathRelaxed) { 257if (parentMapPathResult == HttpRuntime.GetRelaxedMapPathResult(null)) { 263cacheInfo.MapPathResult = HttpRuntime.GetRelaxedMapPathResult(null); 283if (HttpRuntime.IsMapPathRelaxed) { 284physicalPath = HttpRuntime.GetRelaxedMapPathResult(physicalPath); 288if (HttpRuntime.IsMapPathRelaxed) { 289physicalPath = HttpRuntime.GetRelaxedMapPathResult(null); 297if (HttpRuntime.IsMapPathRelaxed) { 298cacheInfo.MapPathResult = HttpRuntime.GetRelaxedMapPathResult(null);
Configuration\ProcessHostServerConfig.cs (2)
45HttpRuntime.ForceStaticInit(); 179return UnsafeIISMethods.MgdIsWithinApp(IntPtr.Zero, _siteNameForCurrentApplication, HttpRuntime.AppDomainAppVirtualPathString, virtualPath);
Configuration\ProvidersHelper.cs (2)
32provider = (ProviderBase)HttpRuntime.CreatePublicInstanceByWebObjectActivator(t); 63provider = (ProviderBase)HttpRuntime.CreatePublicInstanceByWebObjectActivator(t);
Configuration\RuntimeConfigLKG.cs (1)
15using ClassHttpRuntime=System.Web.HttpRuntime;
Configuration\WebConfigurationHost.cs (5)
540HttpRuntime.FileChangesMonitor.StartMonitoringFile( 563HttpRuntime.FileChangesMonitor.StopMonitoringFile(streamName, wrapper); 717isHostReady = HttpRuntime.IsTrustLevelInitialized; 720permissionSet = HttpRuntime.NamedPermissionSet; 731return HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Unrestricted);
DataAccess\DataConnectionHelper.cs (1)
232_UserName = (HttpRuntime.HasUnmanagedPermission() ? DataConnectionHelper.GetCurrentName() : String.Empty);
DataAccess\SqlConnectionHelper.cs (5)
100return Path.Combine(HttpRuntime.AppDomainAppPath, HttpRuntime.DataDirectoryName); 118dataDir = Path.Combine(appPath, HttpRuntime.DataDirectoryName); 184if (!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.High)) 211HttpRuntime.RestrictIISFolders(context);
DefaultHttpHandler.cs (3)
64if (HttpRuntime.UseIntegratedPipeline) { 75if (path != null && !HttpRuntime.IsFullTrust) { 79HttpRuntime.CheckFilePermission(MapPathWithAssert(context, path));
ErrorFormatter.cs (17)
125if (HttpRuntime.HostingInitFailed) 190Label label = CreateLabelFromText(SR.GetString(SR.Error_Formatter_ASPNET_Error, HttpRuntime.AppDomainAppVirtualPath)); 309string errorHeader = SR.GetString(SR.Error_Formatter_ASPNET_Error, HttpRuntime.AppDomainAppVirtualPath); 416sb.Append(" <span><H1>" + SR.GetString(SR.Error_Formatter_ASPNET_Error, HttpRuntime.AppDomainAppVirtualPath) + "<hr width=100% size=1 color=silver></H1>\r\n\r\n"); 467PermissionSet ps = HttpRuntime.NamedPermissionSet; 499if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 780return HttpRuntime.GetSafePath(linePragma); 825return HttpRuntime.GetSafePath(PhysicalPath); 961!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 1069if (string.Compare(assemblyDir, HttpRuntime.CodegenDirInternal, 1113sb.Append(" in " + HttpRuntime.GetSafePath(fileName) + 1446if (fileName != null && !HttpRuntime.HasFilePermission(fileName)) 1656if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 1714if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 1726sb.Append(HttpUtility.HtmlEncode(HttpRuntime.GetSafePath(e.FileName))); 1746if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 1762HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) {
EtwTrace.cs (1)
196if (!HttpRuntime.IsEngineLoaded)
FileChangesMonitor.cs (27)
446hr = UnsafeNativeMethods.DirMonOpen(dir, HttpRuntime.AppDomainAppId, watchSubtree, notifyFilter, dirMon.FcnMode, myCallback, out _ndirMonCompletionPtr); 601HttpRuntime.FileChangesMonitor.RemoveAliases(_anyFileMon); 609HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon); 744HttpRuntime.FileChangesMonitor.RemoveAliases(fileMon); 954int indexStart = fileName.IndexOf(HttpRuntime.LocalResourcesDirectoryName, StringComparison.OrdinalIgnoreCase); 956int dirNameLength = indexStart + HttpRuntime.LocalResourcesDirectoryName.Length; 1014UnsafeNativeMethods.GrowFileNotificationBuffer( HttpRuntime.AppDomainAppId, _watchSubtree ); 1135if (!HttpRuntime.FileChangesMonitor.IsDirNameMonitored(fullPath, fileName)) { 1154Debug.Dump("FileChangesMonitor", HttpRuntime.FileChangesMonitor); 1400HttpRuntime.BinDirectoryName, 1401HttpRuntime.ResourcesDirectoryName, 1402HttpRuntime.CodeDirectoryName, 1403HttpRuntime.WebRefDirectoryName, 1404HttpRuntime.BrowsersDirectoryName 1479SR.GetString(message, HttpRuntime.GetSafePath(path)) + 1481SR.GetString(SR.App_Virtual_Path, HttpRuntime.AppDomainAppVirtualPath), 1482path, HttpRuntime.AppDomainAppVirtualPath, hr); 1485return new HttpException(SR.GetString(message, HttpRuntime.GetSafePath(path)), hr); 1546if (_FCNMode == 2 && HttpRuntime.AppDomainAppPathInternal != null) { 1547_appPathInternal = GetFullPath(HttpRuntime.AppDomainAppPathInternal); 1578if (dirName.IndexOf(HttpRuntime.LocalResourcesDirectoryName, StringComparison.OrdinalIgnoreCase) > -1) { 1810throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias))); 2054HttpRuntime.SetShutdownMessage( 2074HttpRuntime.SetShutdownMessage(SR.GetString(SR.Change_notification_critical_dir)); 2118throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias))); 2127throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias))); 2176throw new HttpException(SR.GetString(SR.Invalid_file_name_for_monitoring, HttpRuntime.GetSafePath(alias)));
Handlers\AssemblyResourceLoader.cs (5)
94string webResourcePath = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, _webResourceUrl); 98path: UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, _webResourceUrl), 451if (!forSubstitution && (HttpRuntime.AppDomainAppVirtualPathString != null)) { 455url = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, url); 471string webResourceHandlerUrl = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, _webResourceUrl);
Handlers\TraceHandler.cs (6)
88(!context.Request.IsLocal && HttpRuntime.Profile.LocalOnly)) { 122if (!HttpRuntime.Profile.IsConfigEnabled) { 128IList datasets = HttpRuntime.Profile.GetData(); 132HttpRuntime.Profile.Reset(); 241if (HttpRuntime.HasAppPathDiscoveryPermission()) 262tcell = AddHeaderCell(trow, SR.GetString(SR.Trace_Remaining) + " " + HttpRuntime.Profile.RequestsRemaining.ToString(NumberFormatInfo.InvariantInfo));
Hosting\ApplicationManager.cs (15)
342HttpRuntime.ForceStaticInit(); 977MapPathCacheInfo cacheInfo = (MapPathCacheInfo)HttpRuntime.Cache.InternalCache.Remove(cacheKey); 1390String appDirUrl = HttpRuntime.MakeFileUrl(appDir); 1435tempDirectory = Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), HttpRuntime.codegenDirName); 1448tempDirectory = Path.Combine(tempDirectory, HttpRuntime.codegenDirName); 1454String binDirUrl = HttpRuntime.MakeFileUrl(binDir); 1469gacLocation = HttpRuntime.GetGacLocation(); 1471gacLocation = HttpRuntime.MakeFileUrl(gacLocation); 1639if (!String.IsNullOrEmpty(HttpRuntime.HostSecurityPolicyResolverType) && hostSecurityPolicyResolver == null) { 1641Type.GetType(HttpRuntime.HostSecurityPolicyResolverType)) as HostSecurityPolicyResolver; 1649return HttpRuntime.NamedPermissionSet; 1657if (HttpRuntime.PolicyLevel == null || HttpRuntime.PolicyLevel.Resolve(evidence).PermissionSet.IsUnrestricted()) 1659else if (HttpRuntime.PolicyLevel.Resolve(evidence).PermissionSet.Equals(Nothing)) 1662return HttpRuntime.NamedPermissionSet;
Hosting\HostingEnvironment.cs (26)
213var iCache = HttpRuntime.Cache.GetInternalCache(createIfDoesNotExist: false); 214var oCache = HttpRuntime.Cache.GetObjectCache(createIfDoesNotExist: false); 242HttpRuntime.RecoverFromUnexceptedAppDomainUnload(); 335_appId = HttpRuntime.AppDomainAppId; 336_appVirtualPath = HttpRuntime.AppDomainAppVirtualPathObject; 337_appPhysicalPath = HttpRuntime.AppDomainAppPathInternal; 371HttpRuntime.InitializeHostingFeatures(hostingFlags, policyLevel, appDomainCreationException); 390if(!HttpRuntime.HostingInitFailed) { 399HttpRuntime.InitializationException = e; 502return HttpRuntime.InitializationException; 617HttpRuntime.SetShutdownReason(ApplicationShutdownReason.HostingEnvironment, "HostingEnvironment initiated shutdown"); 634HttpRuntime.CoalesceNotifications(); 726HttpRuntime.SetUserForcedShutdown(); 731HttpRuntime.ShutdownAppDomainWithStackTrace(ApplicationShutdownReason.HostingEnvironment, 1082if (HttpRuntime.IsMapPathRelaxed) 1083result = HttpRuntime.GetRelaxedMapPathResult(result); 1085if (HttpRuntime.IsMapPathRelaxed) 1086result = HttpRuntime.GetRelaxedMapPathResult(null); 1097if (HttpRuntime.IsMapPathRelaxed) 1098result = HttpRuntime.GetRelaxedMapPathResult(null); 1454get { return HttpRuntime.Cache; } 1525get { return HttpRuntime.ShutdownReason; } 1922if (!HttpRuntime.UseIntegratedPipeline) { 1929if (!HttpRuntime.UseIntegratedPipeline) { 1949if (!HttpRuntime.UseIntegratedPipeline) { 1956if (!HttpRuntime.UseIntegratedPipeline) {
Hosting\IIS7WorkerRequest.cs (2)
841if (HttpRuntime.IISVersion < IIS_VERSION_75) { 2562return HttpRuntime.AspInstallDirectory;
Hosting\IPipelineRuntime.cs (9)
258HttpRuntime.SetShutdownReason(ApplicationShutdownReason.ConfigurationChange, "IIS configuration change"); 313HttpRuntime.PopulateIISVersionInformation(); 319if (!HttpRuntime.HostingInitFailed) { 336if (HttpRuntime.InitializationException == null) { 337HttpRuntime.InitializationException = e; 343if (HttpRuntime.InitializationException != null) { 582status = HttpRuntime.ProcessRequestNotification(wr, context); 738s_thisAppDomainsIsapiAppId + " (AppDomainAppId=" + HttpRuntime.AppDomainAppId + ")"); 743HttpRuntime.AddAppDomainTraceMessage(SR.GetString(SR.App_Domain_Restart));
Hosting\ISAPIRuntime.cs (5)
163String adPath = HttpRuntime.AppDomainAppPathInternal; 168HttpRuntime.ProcessRequestNoDemand(wr); 173HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.PhysicalApplicationPathChanged, 238String appId = HttpRuntime.AppDomainAppId; 245HttpRuntime.AddAppDomainTraceMessage(SR.GetString(SR.App_Domain_Restart));
Hosting\ISAPIWorkerRequest.cs (3)
1501return HttpRuntime.AspInstallDirectory; 2355if (doneWithSession != 0 && !HttpRuntime.ShutdownInProgress && (_ignoreMinAsyncSize || (totalBodySize >= MIN_ASYNC_SIZE))) { 2861_serverVars.Add("APPL_MD_PATH", HttpRuntime.AppDomainAppId);
Hosting\MapPathBasedVirtualPathProvider.cs (3)
89bool? cacheValue = HttpRuntime.Cache.InternalCache.Get(cacheKey) as bool?; 111HttpRuntime.Cache.InternalCache.Insert(cacheKey, exists, new CacheInsertOptions() { Dependencies = dep, SlidingExpiration = slidingExp }); 123appRoot = Path.GetFullPath(HttpRuntime.AppDomainAppPathInternal);
Hosting\ObjectCacheHost.cs (3)
56return HttpRuntime.AppDomainAppId; 68HttpRuntime.FileChangesMonitor.StartMonitoringPath(filePath, target.Handler, out fad); 87HttpRuntime.FileChangesMonitor.StopMonitoringPath(filePath, state);
Hosting\PreloadHost.cs (1)
44internal Exception InitializationException { get { return HttpRuntime.InitializationException; } }
Hosting\SimpleApplicationHost.cs (2)
88HttpRuntime.AspClientScriptVirtualPath, 89new VirtualDirectoryMapping(HttpRuntime.AspClientScriptPhysicalPathInternal, false));
Hosting\SimpleWorkerRequest.cs (3)
335if (HttpRuntime.UseIntegratedPipeline) { 350if (HttpRuntime.UseIntegratedPipeline) { 383_installDir = HttpRuntime.AspInstallDirectoryInternal;
Hosting\SuspendManager.cs (2)
81var iCache = HttpRuntime.Cache.GetInternalCache(createIfDoesNotExist: false); 82var oCache = HttpRuntime.Cache.GetObjectCache(createIfDoesNotExist: false);
HttpApplication.cs (58)
215if (HttpRuntime.UseIntegratedPipeline && _initSpecialCompleted && !_initInternalCompleted) { 227if (HttpRuntime.UseIntegratedPipeline && _initSpecialCompleted && _initInternalCompleted) { 504if (!HttpRuntime.UseIntegratedPipeline) 571Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 576Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 668if (HttpRuntime.UseIntegratedPipeline) { 676if (HttpRuntime.UseIntegratedPipeline) { 852if (!HttpRuntime.UseIntegratedPipeline) { 858if (!HttpRuntime.UseIntegratedPipeline) { 928if (!HttpRuntime.UseIntegratedPipeline) { 934if (!HttpRuntime.UseIntegratedPipeline) { 943if (!HttpRuntime.UseIntegratedPipeline) { 949if (!HttpRuntime.UseIntegratedPipeline) { 1061if (!HttpRuntime.UseIntegratedPipeline) { 1068if (!HttpRuntime.UseIntegratedPipeline) { 1157if (!HttpRuntime.UseIntegratedPipeline) { 1164if (!HttpRuntime.UseIntegratedPipeline) { 1172if (!HttpRuntime.UseIntegratedPipeline) { 1179if (!HttpRuntime.UseIntegratedPipeline) { 1297vpath = UrlPath.SimpleCombine(HttpRuntime.AppDomainAppVirtualPathString, vpath.Substring(index)); 1300vpath = HttpRuntime.AppDomainAppVirtualPathString; 1329if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1335if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1341if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1396if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1402if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1408if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 1483HttpRuntime.Profile.StartRequest(_context); 1540if (HttpRuntime.UseIntegratedPipeline && _context != null) { 1582if (HttpRuntime.UseIntegratedPipeline && _context != null) { 1647if (HttpRuntime.UseIntegratedPipeline) { 1675if (HttpRuntime.UseIntegratedPipeline && _context != null) { 1688if (HttpRuntime.UseIntegratedPipeline && _context != null) { 1696if (HttpRuntime.UseIntegratedPipeline) { 1757HttpRuntime.CheckApplicationEnabled(); 1821if (HttpRuntime.UseIntegratedPipeline) { 1958if (HttpRuntime.UseIntegratedPipeline) { 2052HttpRuntime.SetCurrentThreadCultureWithAssert(culture); 2067HttpRuntime.SetCurrentThreadCultureWithAssert(_savedAppLevelCulture); 2122HttpRuntime.RequestTimeoutManager.Add(_context); 2156if (!HttpRuntime.UseIntegratedPipeline) { 2729Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 2738HttpRuntime.Profile.StartRequest(_context); 2784HttpRuntime.Profile.EndRequest(_context); 2788HttpRuntime.RequestTimeoutManager.Remove(_context); 2792if(HttpRuntime.EnablePrefetchOptimization && 2793HttpRuntime.InitializationException == null && 2796UnsafeNativeMethods.EndPrefetchActivity((uint)StringUtil.GetNonRandomizedHashCode(HttpRuntime.AppDomainAppId)); 3011if (HttpRuntime.UseIntegratedPipeline) { 3106:this(app, beginHandler, endHandler, state, HttpRuntime.UseIntegratedPipeline) 3157if (HttpRuntime.IsLegacyCas) { 3335if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 3341if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 3347if (HttpRuntime.HasPathDiscoveryPermission(pathTranslated)) 3475if (HttpRuntime.IsLegacyCas) { 3531if (handler != null && HttpRuntime.UseIntegratedPipeline) { 3697if (HttpRuntime.UseIntegratedPipeline && (_application.Context.CurrentNotification == RequestNotification.UpdateRequestCache)) { 3791if (HttpRuntime.UseIntegratedPipeline) {
HttpApplicationFactory.cs (10)
123if (HttpRuntime.CodegenDirInternal != null) 189return Path.Combine(HttpRuntime.AppDomainAppPathInternal, applicationFileName); 235VirtualPath virtualPath = HttpRuntime.AppDomainAppVirtualPathObject.SimpleCombine( 329HttpRuntime.FileChangesMonitor.StartMonitoringFile(_appFilename, handler); 333HttpRuntime.FileChangesMonitor.StartMonitoringFile( 346HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ChangeInGlobalAsax, message); 358app = (HttpApplication)HttpRuntime.CreateNonPublicInstance(_theApplicationType); 407app = (HttpApplication)HttpRuntime.CreateNonPublicInstance(_theApplicationType); 504if (AspCompatApplicationStep.AnyStaObjectsInSessionState(session) || HttpRuntime.ApartmentThreading) { 592if (HttpRuntime.AppDomainAppId == null) // only if 'clean' app domain
HttpCachePolicy.cs (1)
742sb.Append(HttpRuntime.AppDomainIdInternal);
HttpContext.cs (13)
487Profiler p = HttpRuntime.Profile; 601HttpRuntime.FinishPipelineRequest(this); 1108if (HttpRuntime.AppOfflineMessage != null) { 1112HttpRuntime.ReportAppOfflineErrorMessage(Response, HttpRuntime.AppOfflineMessage); 1307if (HttpRuntime.UseIntegratedPipeline 1409get { return HttpRuntime.Cache;} 1974if (!HttpRuntime.UseIntegratedPipeline) { 1981if (!HttpRuntime.UseIntegratedPipeline) { 2025if (HttpRuntime.IsOnUNCShareInternal && HostingEnvironment.ApplicationIdentityToken != IntPtr.Zero) { 2107if (!HttpRuntime.UseIntegratedPipeline) { 2113if (!HttpRuntime.UseIntegratedPipeline) { 2163if (!HttpRuntime.IsOnUNCShareInternal) {
HttpDebugHandler.cs (1)
152if (!HttpRuntime.DebuggingEnabled) {
HttpException.cs (2)
433if (HttpRuntime.CodegenDirInternal != null && error.FileName != null && 434!StringUtil.StringStartsWith(error.FileName, HttpRuntime.CodegenDirInternal)) {
HttpHeaderCollection.cs (1)
122if (HttpRuntime.EnableHeaderChecking) {
HttpInputStream.cs (1)
220String tempDir = Path.Combine(HttpRuntime.CodegenDirInternal, "uploads");
HttpRequest.cs (6)
1677if (HttpRuntime.IsMapPathRelaxed) 1678_pathTranslated = HttpRuntime.GetRelaxedMapPathResult(_pathTranslated); 1701return HttpRuntime.AppDomainAppVirtualPath; 1707return HttpRuntime.AppDomainAppVirtualPathObject; 2011if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low)) 2273if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low))
HttpResponse.cs (5)
1213HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 2413if(HttpRuntime.UseIntegratedPipeline) { 2838_context.IsClientImpersonationConfigured || HttpRuntime.IsOnUNCShareInternal, supportsLongTransmitFile); 3007if (!HttpRuntime.UseIntegratedPipeline) { 3246string appPath = HttpRuntime.AppDomainAppVirtualPathString;
HttpResponseHeader.cs (2)
28: this(knownHeaderIndex, value, HttpRuntime.EnableHeaderChecking) { 46: this(unknownHeader, value, HttpRuntime.EnableHeaderChecking) {
HttpRuntime.cs (10)
55private static HttpRuntime _theRuntime; // single instance of the class 1154string binPath = HttpRuntime.BinDirectoryInternal; 1992if (HttpRuntime.UseIntegratedPipeline) { 2020var oCache = HttpRuntime.Cache.GetObjectCache(createIfDoesNotExist: false); 2021var iCache = HttpRuntime.Cache.GetInternalCache(createIfDoesNotExist: false); 2150HttpRuntime.SetUserForcedShutdown(); 2372if (HttpRuntime.UseIntegratedPipeline) { 2656return HasPathDiscoveryPermission(HttpRuntime.AppDomainAppPathInternal); 2751if (HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Unrestricted)) 2797if (HttpRuntime.AspInstallDirectoryInternal == null) {
httpserverutility.cs (2)
347if (HttpRuntime.IsLegacyCas) { 750if (!HttpRuntime.UseIntegratedPipeline) {
HttpWriter.cs (6)
177if (HttpRuntime.UseIntegratedPipeline) { 191if (HttpRuntime.UseIntegratedPipeline) { 212if (HttpRuntime.UseIntegratedPipeline) { 242if (HttpRuntime.UseIntegratedPipeline) { 596Debug.Assert(HttpRuntime.UseIntegratedPipeline, "HttpRuntime.UseIntegratedPipeline"); 905Debug.Assert(HttpRuntime.UseIntegratedPipeline);
IdleTimeoutMonitor.cs (1)
78HttpRuntime.SetShutdownReason(ApplicationShutdownReason.IdleTimeout,
IisTraceListener.cs (1)
26if (!HttpRuntime.UseIntegratedPipeline && !(context.WorkerRequest is ISAPIWorkerRequestInProcForIIS7)) {
IntSecurity.cs (1)
66_appPathDiscovery = new FileIOPermission(FileIOPermissionAccess.PathDiscovery, HttpRuntime.AppDomainAppPathInternal);
Management\IisTraceWebEventProvider.cs (1)
25if (!HttpRuntime.UseIntegratedPipeline && !(context.WorkerRequest is ISAPIWorkerRequestInProcForIIS7)) {
Management\SqlServices.cs (3)
196string fullpath = Path.Combine(HttpRuntime.AspInstallDirectory, install ? SESSION_STATE_INSTALL_FILE : SESSION_STATE_UNINSTALL_FILE); 392string fullpath = Path.Combine(HttpRuntime.AspInstallDirectory, file); 539string fullpath = Path.Combine(HttpRuntime.AspInstallDirectory, sqlFile);
Management\TemplatedMailWebEventProvider.cs (2)
82_templateUrl = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, _templateUrl); 85if (!HttpRuntime.IsPathWithinAppRoot(_templateUrl)) {
Management\WebEvents.cs (6)
103HttpRuntime.AppDomainAppVirtualPath, 903CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 1850_accountName = HttpRuntime.WpUserId; 1877_trustLevel = HttpRuntime.TrustLevel; 1878_appUrl = HttpRuntime.AppDomainAppVirtualPath; 1882_appPath = HttpRuntime.AppDomainAppPathInternal;
ModulesEntry.cs (1)
62return (IHttpModule)HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_type);
PerfCounters.cs (1)
62if (! HttpRuntime.IsEngineLoaded)
Profile\HttpProfileBase.cs (14)
40if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 42if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 43HttpRuntime.NamedPermissionSet.PermitOnly(); 50if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 52if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 53HttpRuntime.NamedPermissionSet.PermitOnly(); 125if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 127if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 128HttpRuntime.NamedPermissionSet.PermitOnly(); 196HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 391bool hasLowTrust = HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low);
Profile\ProfileManager.cs (4)
292HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 302HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 315HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 333s_Enabled = config.Enabled && HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low);
Profile\SqlProfileProvider.cs (1)
44HttpRuntime.CheckAspNetHostingPermission (AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
RequestQueue.cs (4)
106HttpRuntime.RejectRequestNow(wr, true); 172HttpRuntime.RejectRequestNow(wr, false); 252HttpRuntime.ProcessRequestNow(wr); 285HttpRuntime.RejectRequestNow(wr, false);
RootedObjects.cs (2)
45HttpRuntime.IncrementActivePipelineCount(); 117HttpRuntime.DecrementActivePipelineCount();
Security\ADMembershipProvider.cs (1)
311HttpRuntime.CheckAspNetHostingPermission (AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
Security\AuthStoreRoleProvider.cs (8)
78HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 163HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.API_not_supported_at_this_level); 194HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.API_not_supported_at_this_level); 259HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.API_not_supported_at_this_level); 314HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.API_not_supported_at_this_level); 545appPath = HttpRuntime.AppDomainAppPath; 564HttpRuntime.CheckFilePermission( fileName, false ); 569HttpRuntime.GetSafePath(fileName)));
Security\BackStopAuthenticationModule.cs (2)
44if (HttpRuntime.UseIntegratedPipeline) { 72if (HttpRuntime.UseIntegratedPipeline) {
Security\Cryptography\MachineKeyMasterKeyProvider.cs (3)
47_applicationName = HttpRuntime.AppDomainAppVirtualPath ?? Process.GetCurrentProcess().MainModule.ModuleName; 56_applicationId = HttpRuntime.AppDomainAppId; 65_autogenKeys = new CryptographicKey(HttpRuntime.s_autogenKeys);
Security\FileAuthorizationModule.cs (7)
70if (HttpRuntime.UseIntegratedPipeline) { 125if (HttpRuntime.IsOnUNCShareInternal) 257FileSecurityDescriptorWrapper oSecDesc = HttpRuntime.Cache.InternalCache.Get(oCacheKey) as FileSecurityDescriptorWrapper; 270HttpRuntime.Cache.InternalCache.Insert(oCacheKey, oSecDesc, new CacheInsertOptions() { 309sec = HttpRuntime.Cache.InternalCache.Get(oCacheKey); 468appRoot = Path.GetFullPath(HttpRuntime.AppDomainAppPathInternal); 522miscContent = SR.GetString(SR.Assess_Denied_Misc_Content3, HttpRuntime.GetSafePath(_strFile));
Security\FormsAuthentication.cs (2)
915return HttpRuntime.IsPathWithinAppRoot(path); 920return HttpRuntime.IsPathWithinAppRoot(absUri.AbsolutePath);
Security\Membership.cs (1)
376HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
Security\RoleManagerModule.cs (3)
45HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level); 83if (HttpRuntime.UseIntegratedPipeline) { 133if (HttpRuntime.UseIntegratedPipeline) {
Security\Roles.cs (2)
68if (HostingEnvironment.IsHosted && !HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low)) 492HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
Security\SQLMembershipProvider.cs (1)
107HttpRuntime.CheckAspNetHostingPermission (AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
Security\SQLRoleProvider.cs (1)
46HttpRuntime.CheckAspNetHostingPermission (AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
Security\UrlAuthorizationModule.cs (1)
79if( !HttpRuntime.UseIntegratedPipeline) {
Security\WindowsAuthenticationModule.cs (1)
125if (HttpRuntime.UseIntegratedPipeline) {
Security\WindowsTokenRoleProvider.cs (1)
105HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.API_not_supported_at_this_level);
SiteMap.cs (1)
99HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
SiteMapNode.cs (2)
382if (HttpRuntime.AppDomainAppVirtualPath == null) { 387url = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, url);
State\InProcStateClientManager.cs (6)
121InProcSessionState state = (InProcSessionState)HttpRuntime.Cache.InternalCache.Get(key); 227InProcSessionState state = (InProcSessionState)HttpRuntime.Cache.InternalCache.Get(key); 253CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 388object existingEntry = HttpRuntime.Cache.InternalCache.Add(key, state, new CacheInsertOptions() { 409CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 445HttpRuntime.Cache.InternalCache.Get(key);
State\OutOfProcStateClientManager.cs (1)
107string appId = HttpRuntime.AppDomainAppId;
State\SessionStateItemCollection.cs (8)
273if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 275if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 276HttpRuntime.NamedPermissionSet.PermitOnly(); 462if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 464if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 465HttpRuntime.NamedPermissionSet.PermitOnly();
State\SessionStateModule.cs (9)
95if (HttpRuntime.ShutdownInProgress) { 252return HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium); 306iResolver = (IPartitionResolver)HttpRuntime.CreatePublicInstance(resolverType); 326iManager = (ISessionIDManager)HttpRuntime.CreatePublicInstanceByWebObjectActivator(managerType); 350if (HttpRuntime.UseIntegratedPipeline) { 359if (HttpRuntime.UseIntegratedPipeline) { 537if (HttpRuntime.ApartmentThreading || _rqContext.InAspCompatMode) { 1408if (HttpRuntime.UseIntegratedPipeline 1511if (HttpRuntime.UseIntegratedPipeline && _acquireCalled && !_releaseCalled) {
State\sqlstateclientmanager.cs (4)
233HttpRuntime.CheckFilePermission(attachDBFilename, true); 319else if (HttpRuntime.IsOnUNCShareInternal) { 326Debug.Trace("SessionStatePooling", "LOGON_USER = '" + logon + "'; identity = '" + _rqContext.User.Identity.Name + "'; IsUNC = " + HttpRuntime.IsOnUNCShareInternal); 1075p.Value = HttpRuntime.AppDomainAppId;
State\StateRuntime.cs (9)
130HttpRuntime.Close(); 193HttpRuntime.ProcessRequest(wr); 250if (!HttpRuntime.IsFullTrust) { 423content = (CachedContent) HttpRuntime.Cache.InternalCache.Get(key); 524CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 639CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 685item = HttpRuntime.Cache.InternalCache.Get(key); 742if (HttpRuntime.ShutdownInProgress) { 750if (HttpRuntime.ShutdownInProgress) {
StaticFileHandler.cs (3)
97if (!HttpRuntime.HasFilePermission(physicalPath)) 106if (!HttpRuntime.HasFilePermission(physicalPath)) 582HttpRuntime.CheckFilePermission(physicalPath);
StaticSiteMapProvider.cs (2)
103if (HttpRuntime.AppDomainAppVirtualPath != null) { 106url = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, url);
StringResourceManager.cs (2)
34if (HttpRuntime.CodegenDirInternal != null) { 37(InternalSecurityPermissions.PathDiscovery(HttpRuntime.CodegenDirInternal)).Assert();
ThreadContext.cs (2)
259HttpRuntime.SetCurrentThreadCultureWithAssert(_originalThreadCurrentCulture); 326HttpRuntime.SetCurrentThreadCultureWithAssert(culture);
UI\BatchParser.cs (2)
49HttpRuntime.SetCurrentThreadCultureWithAssert(CultureInfo.InvariantCulture); 58HttpRuntime.SetCurrentThreadCultureWithAssert(prevCulture);
UI\Control.cs (3)
2154HttpRuntime.CheckFilePermission(physicalPath); 2193HttpRuntime.CheckFilePermission(physicalPath); 2222HttpRuntime.CheckFilePermission(physicalPath);
UI\ControlBuilder.cs (4)
1540obj = HttpRuntime.CreatePublicInstance(_controlType, args); 1544obj = HttpRuntime.FastCreatePublicInstance(_controlType); 2519if (templateControlType.Assembly == typeof(HttpRuntime).Assembly) 3164return (ControlBuilder)HttpRuntime.CreateNonPublicInstance(_builderType);
UI\DataSourceCache.cs (3)
136HttpRuntime.Cache.InternalCache.Remove(key); 154return HttpRuntime.Cache.InternalCache.Get(key); 230HttpRuntime.Cache.InternalCache.Insert(key, data, new CacheInsertOptions() {
UI\Page.cs (6)
1486return (HtmlTextWriter)HttpRuntime.CreateNonPublicInstance(writerType, new object[] { tw }); 4349if (HttpRuntime.NamedPermissionSet != null && !HttpRuntime.DisableProcessRequestInApplicationTrust) { 4352if (HttpRuntime.ProcessRequestInApplicationTrust) { 4361HttpRuntime.NamedPermissionSet.PermitOnly(); 4511if (HttpRuntime.IsFullTrust) {
UI\PageParser.cs (6)
144return (IHttpHandler)HttpRuntime.CreatePublicInstance(result.ResultType); 255flags[aspCompatMode] = HttpRuntime.ApartmentThreading; 367if (!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 464if (flags[aspCompatMode] && !HttpRuntime.HasUnmanagedPermission()) { 477if (!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 625if (!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) {
UI\PartialCachingControl.cs (1)
798cachedControl = (Control) HttpRuntime.CreatePublicInstance(_createCachedControlType, _args);
UI\SimpleWebHandlerParser.cs (1)
311!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) {
UI\TemplateControl.cs (6)
244if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 247if (HttpRuntime.NamedPermissionSet != null && !HttpRuntime.ProcessRequestInApplicationTrust) { 248HttpRuntime.NamedPermissionSet.PermitOnly(); 484if (HttpRuntime.IsFullTrust) { 693c = (Control) HttpRuntime.CreatePublicInstance(t, parameters);
UI\TemplateParser.cs (7)
597_rootBuilder = (RootBuilder) HttpRuntime.CreateNonPublicInstance( 1261HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.Debugging_not_supported_in_low_trust); 1641HttpRuntime.CheckVirtualFilePermission(virtualPath.VirtualPathString); 1905if (flags[debug] && !HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Medium)) { 2445HttpRuntime.CheckVirtualFilePermission(newVirtualPath.VirtualPathString); 2458HttpRuntime.CheckVirtualFilePermission(newVirtualPath.VirtualPathString); 2469HttpRuntime.CheckFilePermission(newPhysicalPath);
UI\TraceContext.cs (5)
89return HttpRuntime.Profile.OutputMode; 112return HttpRuntime.Profile.IsEnabled; 141return HttpRuntime.Profile.PageOutput; 826if (HttpRuntime.HasAppPathDiscoveryPermission()) { 832if (HttpRuntime.UseIntegratedPipeline) {
UI\Util.cs (3)
205SR.GetString(SR.Unexpected_Directory, HttpRuntime.GetSafePath(filename))); 1231return HttpRuntime.GetSafePath(GetAssemblyPathFromType(t)); 1662if (HttpRuntime.IsFullTrust) {
UI\ViewStateException.cs (1)
62!HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Low)) {
UI\WebControls\AccessDataSource.cs (3)
239HttpRuntime.CheckFilePermission(filename, true); 244if (!HttpRuntime.HasPathDiscoveryPermission(filename)) { 245throw new HttpException(SR.GetString(SR.AccessDataSource_NoPathDiscoveryPermission, HttpRuntime.GetSafePath(filename), ID));
UI\WebControls\AdRotator.cs (2)
457CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache; 470if (!String.IsNullOrEmpty(physicalPath) && HttpRuntime.HasPathDiscoveryPermission(physicalPath)) {
UI\WebControls\SqlDataSource.cs (3)
946if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 948if (!HttpRuntime.ProcessRequestInApplicationTrust && !HttpRuntime.HasDbPermission(_providerFactory)) {
UI\WebControls\xml.cs (4)
406CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 471CacheStoreProvider cacheInternal = System.Web.HttpRuntime.Cache.InternalCache; 515CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache; 573if (HttpRuntime.HasUnmanagedPermission()) {
UI\WebControls\XmlDataSource.cs (2)
452if (!HttpRuntime.HasWebPermission(uri)) { 672HttpRuntime.CheckFilePermission(writeableDataFile, true);
UI\WebParts\BlobPersonalizationState.cs (8)
460if (!HttpRuntime.DisableProcessRequestInApplicationTrust) { 467if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 468HttpRuntime.NamedPermissionSet.PermitOnly(); 1082if (!HttpRuntime.DisableProcessRequestInApplicationTrust){ 1089if (HttpRuntime.NamedPermissionSet != null && HttpRuntime.ProcessRequestInApplicationTrust) { 1090HttpRuntime.NamedPermissionSet.PermitOnly();
UI\WebParts\PersonalizationAdministration.cs (1)
53HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
UI\WebParts\SqlPersonalizationProvider.cs (1)
438HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Low, SR.Feature_not_supported_at_this_level);
UI\WebParts\WebPartUtil.cs (1)
18return HttpRuntime.FastCreatePublicInstance(type);
Util\AppVerifier.cs (1)
500if (HttpRuntime.UsingIntegratedPipeline && !currentHttpContext.HasWebSocketRequestTransitionCompleted) {
Util\AspCompat.cs (1)
303CacheStoreProvider cacheInternal = HttpRuntime.Cache.InternalCache;
Util\FastPropertyAccessor.cs (1)
362accessor = (IWebPropertyAccessor) HttpRuntime.CreateNonPublicInstance(propertyAccessorType);
Util\HttpEncoder.cs (1)
148HttpEncoder encoder = (HttpEncoder)HttpRuntime.CreatePublicInstanceByWebObjectActivator(encoderType);
Util\Permission.cs (1)
20NamedPermissionSet permissionset = HttpRuntime.NamedPermissionSet;
Util\RequestValidator.cs (1)
53RequestValidator validator = (RequestValidator)HttpRuntime.CreatePublicInstanceByWebObjectActivator(validatorType);
Util\SynchronizationContextUtil.cs (2)
25if (HttpRuntime.TargetFramework < VersionUtil.Framework45 && requiredMode == SynchronizationContextMode.Normal) { 29else if (HttpRuntime.TargetFramework >= VersionUtil.Framework45 && requiredMode == SynchronizationContextMode.Legacy) {
Util\Transactions.cs (1)
64HttpRuntime.CheckAspNetHostingPermission(AspNetHostingPermissionLevel.Medium, SR.Transaction_not_supported_in_low_trust);
Util\UrlPath.cs (9)
206return Combine(HttpRuntime.AppDomainAppVirtualPathString, basepath, relative); 542Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 544HttpRuntime.AppDomainAppVirtualPathString); 548Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 550HttpRuntime.AppDomainAppVirtualPathString, false /*nullIfNotInApp*/); 555Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 557HttpRuntime.AppDomainAppVirtualPathString, true /*nullIfNotInApp*/); 603Debug.Assert(HttpRuntime.AppDomainAppVirtualPathObject != null); 604return MakeVirtualPathAppAbsolute(virtualPath, HttpRuntime.AppDomainAppVirtualPathString);
VirtualPath.cs (9)
93if (HttpRuntime.AppDomainAppVirtualPathObject == null) { 99_virtualPath = HttpRuntime.AppDomainAppVirtualPath; 102_virtualPath = HttpRuntime.AppDomainAppVirtualPathString + 134if (HttpRuntime.AppDomainAppVirtualPathObject == null) { 191return HttpRuntime.AppDomainAppVirtualPathObject.Combine(this); 335if (HttpRuntime.AppDomainIdInternal == null) { 346flags[isWithinAppRoot] = UrlPath.IsEqualOrSubpath(HttpRuntime.AppDomainAppVirtualPathString, 423v1 = HttpRuntime.AppDomainAppVirtualPathObject; 483if (_virtualPath == null && HttpRuntime.AppDomainAppVirtualPathObject == null) {
XmlSiteMapProvider.cs (4)
267if (physicalDir != null && HttpRuntime.HasPathDiscoveryPermission(physicalDir)) { 406HttpRuntime.FileChangesMonitor.StopMonitoringFile(_filename, _handler); 591HttpRuntime.FileChangesMonitor.StartMonitoringFile(_filename, _handler); 778url = UrlPath.Combine(HttpRuntime.AppDomainAppVirtualPathString, url);
System.Web.DynamicData (1)
DynamicData\Util\FileChangeNotifier.cs (1)
57HttpRuntime.Cache.Insert(virtualPath /*key*/, virtualPath /*value*/, cacheDependency,
System.Web.Entity (1)
System\Data\WebControls\EntityDataSource.cs (1)
109_targetFrameworkVersion = HttpRuntime.TargetFramework;
System.Web.Extensions (3)
Compilation\WCFBuildProvider.cs (1)
472string appVirtualPath = HttpRuntime.AppDomainAppVirtualPath;
Script\Services\RestHandler.cs (1)
189NamedPermissionSet s_permissionSet = HttpRuntime.NamedPermissionSet;
UI\WebControls\DataSourceHelper.cs (1)
58return HttpRuntime.FastCreatePublicInstance(type);
System.Web.Mobile (5)
Mobile\UrlPath.cs (3)
105String appPath = HttpRuntime.AppDomainAppVirtualPath; 242return HttpRuntime.AppDomainAppVirtualPath; 249string appPath = HttpRuntime.AppDomainAppVirtualPath;
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
248HttpRuntime.AppDomainAppVirtualPath));
UI\MobileControls\ErrorFormatterPage.cs (1)
89HttpRuntime.AppDomainAppVirtualPath);