zoukankan      html  css  js  c++  java
  • .NET验证码页出错

    .NET验证码页出现如果下错误.处理方法.

    登录Server Error in '/' Application.
    --------------------------------------------------------------------------------

    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.

    后台时很短的时间就返回到了登录界面。
    开启ASP.NET State Service服务,把它设成自动。再在web.config中的<system.web>下加一行<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如下

    一、开启ASP.NET State Service服务:

    选择管理工具->服务,找到ASP.NET State Service,点开后选择启动,并将启动类型设为自动。

    二、设置程序配置文件:

    将web.config打开,会看到有一行是<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如果没有,请在<system.web>的下一行添加,再将其中的InProc改为StateServer,保存即可。(注:如果不修改,后台登录验证状态将会时断时续,表现在很短的时间内就出现重新登录框)

    from:http://hi.baidu.com/net5x/blog/item/da8a0f666f6c5621ab184c93.html

    **************************

    如果不行尝试一下方法:

    在web.config中有,<sessionState mode="StateServer"/>

    这是session保存的方式,你现在选定的方式是stateserver,这是个"服务",但它默认不开启.

    解决方法:
    1.<sessionState mode="StateServer"/>改为<sessionState mode="InProc"/>

    2.打开asp.net状态服务 
    "管理工具"->"服务"->"ASP.NET 状态服务"->启动

  • 相关阅读:
    Unity Find 使用规则
    Unity UGUI
    Unity UGUI
    Unity UGUI
    Unity UGUI
    机器学习:支持向量机识别手写英文字母 SMO算法实现二元分类器
    机器学习:朴素贝叶斯分类器实现二分类(伯努利型) 代码+项目实战
    机器学习:基于CART算法的决策树——分类树与回归树
    机器学习:决策树——分类树 ID3算法 代码+案例
    JAVA
  • 原文地址:https://www.cnblogs.com/94cool/p/1710204.html
Copyright © 2011-2022 走看看