你如何检查Web服务器上的ASP.NET sessionsState模式? [英] How do you check the ASP.NET sessionsState mode on a web server?

查看:97
本文介绍了你如何检查Web服务器上的ASP.NET sessionsState模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有没有在其任何web.config文件中指定的sessionState模式ASP.NET 4.0 Web应用程序。

I have a ASP.NET 4.0 web application that doesn't specify the sessionState mode in any of its web.config files.

此应用程序是我公司的Web服务器,这是我必须非常有限上运行。有什么办法,我可以检查哪些的sessionState模式我的web应用程序运行?

This application is running on my company's web server, which I have very limited access to. Is there any way I can check which sessionState mode my web application is running in?

据我所知,'是InProc'是ASP.NET默认的sessionState模式。但不确定的,如果我有人已经覆盖了公司的Web服务器上的根配置文件(machine.config中或根web.config等)。请注意,我没有对服务器的直接访问,所以我需要写的地方/文件列表尝试。很明显,我不能忍受在没有任何测试code找出来。

I am aware that 'InProc' is the default sessionState mode in ASP.NET. But I uncertain if anyone has overwritten the root config files (machine.config or root web.config, etc) on the company's web server. Note that I don't have direct access to the server, so I need write a list of places/files to try. And obviously, I can't put in any test code in there to find out.

我也试过在指定的缺省值是InProc模式下的配置文件搜索,但我不能在任何地方找到它。任何帮助将是非常美联社preciated。谢谢!

I also tried search in the config files where the default 'InProc' mode is specified, but I couldn't find it anywhere. Any help would be much appreciated. Thanks!

推荐答案

服务器级配置存储在下列配置文件:

Server-level configuration is stored in the following configuration files:


  • Machine.config中。该文件位于%WINDIR%\\ Microsoft.NET \\框架\\ framework_version \\ CONFIG。

  • Machine.config. This file is located in %windir%\Microsoft.NET\Framework\framework_version\CONFIG.

根Web.config为.NET Framework。该文件位于%WINDIR%\\ Microsoft.NET \\框架\\ framework_version \\ CONFIG。

Root Web.config for the .NET Framework. This file is located in %windir%\Microsoft.NET\Framework\framework_version\CONFIG.

对ApplicationHost.config。该文件位于%WINDIR%\\ SYSTEM32 \\ INETSRV \\ config中。

ApplicationHost.config. This file is located in %windir%\system32\inetsrv\config.

最后你想检查你的应用程序的Web.config。

And finally you would want to check the Web.config of your application.

来源

这篇关于你如何检查Web服务器上的ASP.NET sessionsState模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆