Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
i have developed and asp.net application which is working fine at local and local IIS 10.0 but after web deploy in a remote server IIS 7.5 its gets sudden session out while working..

What I have tried:

HTML
<configuration>
  <connectionstrings>
   
    <!--<add name="Liveconnection1" connectionstring="Data Source=xxxx;Initial Catalog=DB_Inventory;Integrated Security=SSPI;Pooling=False" providername="System.Data.SqlClient" />-->
  </connectionstrings>
  <system.web>
    <compilation debug="true" targetframework="4.5">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <httpruntime targetframework="4.5" />
      <sessionstate cookieless="false" timeout="20" />
    <httpmodules>
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
    </httpmodules>

  </system.web>
  <appsettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
  </appsettings>
  <system.diagnostics>
    <trace autoflush="true" indentsize="0">
      <listeners>
        <add name="myAppInsightsListener">
          type="Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener, Microsoft.ApplicationInsights.TraceListener"/>
      </add></listeners>
    </trace>
  </system.diagnostics>
  <system.webserver>
    <validation validateintegratedmodeconfiguration="false" />
    <modules>
      <remove name="ApplicationInsightsWebTracking" />
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web">
        preCondition="managedHandler"/>
    </add></modules>
  </system.webserver>
</configuration>
Posted
Updated 23-Aug-16 1:47am
v2
Comments
F-ES Sitecore 19-Aug-16 4:24am    
If this is a webhost then contact the host as some of them have session timeout restrictions.
Rajeev Jayaram 23-Aug-16 8:19am    
What hosting provider you are using?

1 solution

To adjust the session timeout setting in IIS

1. Open Internet Services Manager for IIS .
2. Locate your directory where Ultimate Survey is installed.
3. Right click on the directory.
4. Select Properties.
5. In the Virtual Directory tab, click on the Configuration button.
6. Select the App Options tab.
7. The Session Timeout option is under Enable Session State.
8. Specify Session Timeout. This value is in minutes.
9. Click OK.
10. Restart IIS so this new setting will take effect.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900