网站访问报如下错误

Posted 怪先生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了网站访问报如下错误相关的知识,希望对你有一定的参考价值。

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either ‘localhost‘ or ‘127.0.0.1‘ as the server name.

解决方案:

异常详细信息: System.Web.HttpException: 无法向会话状态服务器发出会话状态请求。请确保已启动 ASP.NET State service,并且客户端和服务器端口是相同的。如果服务器位于远程计算机上,请检查 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection 的值,确保服务器接受远程请求。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

方法一:

在"管理工具"中的"服务"启动"ASP.NET State Service"

方法二:

web.config中配置SessionState的mode为StateServer,但指定的服务器没有开启那个服务。
改成InProc即可。

方法三:

把杀毒软件关掉,他可以以为运行生成的文件是带病毒的,会跟你阻止页面生成

以上是关于网站访问报如下错误的主要内容,如果未能解决你的问题,请参考以下文章

http转https后,网站初次访问图片加载失败,刷新多次后正常,报503错误,求解?

PHP写的页面无法访问,报HTTP500错误,这个是怎么回事

非常诡异的IIS下由配置文件加上svg的mime头导致整个网站的静态文件访问报错误

微信小程序访问豆瓣api报403错误解决方法

在IIS服务器上部署web项目,加载网站css时,报403拒绝访问错误,怎么办,网上的解决办法都不管用

程序访问一个地址时候报400错误,浏览器访问正常怎么解决