上传asp.net应用程序后出现一些问题 [英] After uploading asp.net application getting some problems

查看:62
本文介绍了上传asp.net应用程序后出现一些问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我已经在自己的网域上上传了asp.net c#应用程序.当我使用某个ID登录时,其已成功登录,但是在访问应用程序一段时间后,它突然在登录页面上重定向.它在何时何地将被重定向上并没有固定,但是突然地它被重定向了.请帮助我....



hi
I have uploaded my asp.net c# application on my domain in big rock. when i logged in with some id its successfully logged in but after some time on accessing application it suddenly redirects on login page. its not fixed when and from where it will be redirected but suddenly it redirects. please help me....



<configuration>
	<appsettings />
	<connectionstrings>
		<add name="conn" connectionstring="Data Source=238.98.198.196;User Id=;Password=; " providername="sqloledb" />
	</connectionstrings>
	<system.web>
   
    <httpruntime executiontimeout="110" maxrequestlength="35000" requestvalidationmode="2.0" />
		<compilation debug="true" targetframework="4.0">
		</compilation>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Windows" />
		<!--
            The <customerrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

       <sessionstate mode="InProc" cookieless="false" timeout="30<br mode=" hold=" />sqlConnectionString=" data="" source="208.91.198.196;User" id="Archive;Password=TechCan@011;"<br" />              stateNetworkTimeout="1000"/>
<authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
        -->
		<pages controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" />
 <customerrors mode="Off" defaultredirect="mycustompage.htm">
            <error statuscode="403" redirect="NoAccess.htm" />
            <error statuscode="404" redirect="FileNotFound.htm" />
        </customerrors>
</customerrors></authentication></system.web>
	<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
</configuration>




这是我的web.config




this is my web.config

推荐答案

检查您在web.config中的会话超时时间

check on your session time out in ur web.config

<sessionstate mode="Off|InProc|StateServer|SQLServer">
              cookieless="true|false"
              timeout="number of minutes"
              stateConnectionString="tcpip=server:port"
              sqlConnectionString="sql connection string"
              stateNetworkTimeout="number of seconds"/></sessionstate>


默认情况下,会话将在20分钟后过期,并且登录令牌将失效.之后,任何尝试访问资源的操作都将提示用户再次登录.这似乎是正在发生的事情.托管提供程序的会话可能具有不同的超时时间,或者由于服务器负载,会话可能由于内存或性能而被重置.您应该向托管服务提供商咨询他们的政策.
By default sessions will expire after 20 minutes and the login token will be invalidated. After that any attempt to access a resource should prompt the user to login again. This appears to be what is happening. The hosting provider may have a different timeout for the session or because of server load the sessions may be reset because of memory or performance. You should consult with your hosting provider about their policies.


这篇关于上传asp.net应用程序后出现一些问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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