PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 8/3/2010 9:48 PM by  Suman Das
Web interface timeout
 3 Replies
AddThis - Bookmarking and Sharing Button
Sort:
You are not authorized to post a reply.
Author Messages
Scott McKenzie
Helpdesker
Helpdesker
Posts:12
Points:26


--
7/22/2010 2:33 AM

    One of my users advised that the web interface times out too soon.  He was trying to log a job (amongst other things) and by the time he clicked on submit his session had timed out and he lost the contents.

    Is there a configurable timeout for web interface sessions?

    Suman Das
    HelpMaster development team
    Helpdesker
    Helpdesker
    Posts:18
    Points:18


    --
    7/27/2010 5:57 PM

    The first thing to check is the session timeout period set in your IIS.  This can be done by going to the properties for your HelpMaster virtual directory, then clicking on 'Configuration' button on the Virtual Directory tab. Then on the options tab of the Application Configuration screen, increase the session timeout property to the required value.  Depending on the IIS version used, the procedure for setting the session timeout setting, as described above, might be slightly different.

    If the above does not produce the desired result then this could be due to your ASP.NET process recycling.  I believe the default options for an application pool are to recycle these processes after 20 minutes of idle time.  This would normally not be a problem if sessions were less than this.  You can increase the idle timeout of the worker process as follows:

    1. Create a new application pool for HelpMaster (eg, 'HelpMasterAppPool')
    2. Add the HelpMaster web interface to this application pool (done on the virtual directory tab of the virtual directory properties page, under the section 'Application Settings'.
    3. Configure the 'Idle timeout' setting on the performance tab of the application pool settings and set it for a very high timeout value or turn off idle timeout all together.  Apply these settings.  Stop and restart the application pool.

    Please note that if you allow sessions to drag on, you will place a large burden on your server - especially if there are a large number of clients using the web interface.  Hence the recommendation that this be done only for a helpmaster application pool, and it should be monitored carefully. Please let us know how this solution goes.

    EDIT: You will also need to set the timeout attribute of the "sessionState" element in your HelpMaster web configuration file (i.e. web.config file located under your HelpMaster virtual directory). My understanding is, this would override the IIS session timeout setting.


     

     

     

    HelpMaster development team.
    Have you seen what's new in v12.0 yet?
    Scott McKenzie
    Helpdesker
    Helpdesker
    Posts:12
    Points:26


    --
    8/1/2010 8:16 PM

    I've checked the timeouts and they are all set to 20mins.

    When I checked the sessionState in Web.config it looks like this:

    The sqlConnectionString attribute is wrong because we don't have a SQL server on this box.  It also doesn't specify a database name which is odd.

    The stateConnectionString is another strange one as there is no process listening on port 42424 on that box.

    Can you please post a working example so I can fix ours.

     

    I'm also seeing errors in our HMPWebError.log that might suggest where it's going wrong:

    MachineName : xxxxxxxxx TimeStamp : 8/2/2010 1:26:02 AM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=c68a33b838797d6f AppDomainName : /LM/W3SVC/1/Root/HMPro-1-129251857206436291 ThreadIdentity : xxx.xxxxxxx WindowsIdentity : xxxxxx Inner Exception --------------- Type : System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The argument to SetTimeout must be greater than 0. Source : System.Web Help link :  ParamName :  Data : System.Collections.ListDictionaryInternal TargetSite : Void set_Timeout(Int32) Stack Trace :    at System.Web.SessionState.HttpSessionStateContainer.set_Timeout(Int32 value)   at System.Web.SessionState.HttpSessionState.set_Timeout(Int32 value)   at HMP.Web.Interface.CallBack.b(Object b, EventArgs b)   at System.Web.UI.Control.OnLoad(EventArgs e)   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Category: LogFile Priority: 0 EventId: 100 Severity: Error Title:Enterprise Library Exception Handling Machine: AKHELPDESK Application Domain: /LM/W3SVC/1/Root/HMPro-1-129251857206436291 Process Id: 1068 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 5196 Thread Name:  Extended Properties: ASPIMPERSONATING - 

    Edit: fixed code mangling

    Suman Das
    HelpMaster development team
    Helpdesker
    Helpdesker
    Posts:18
    Points:18


    --
    8/3/2010 9:48 PM

    Hi Scott,

    AFAIK, the attribute "sqlConnectionString" and "stateConnectionString" are required for "Out-of-process" modes (eg.  when mode is "StateServer" or "SQLServer").  For "InProc" mode these are not relevant (please refer to: http://msdn.microsoft.com...ibrary/h6bb9cz9.aspx ). 

    If the recommandations described in my earlier post do not resolve the issue then please log a job with us by sending an email to our support and we will investigate the issue further (please refer to this post in your email). Thanks.

    HelpMaster development team.
    Have you seen what's new in v12.0 yet?
    You are not authorized to post a reply.


    New version - HelpMaster v24 now available! by Rod Weir in Announcements with 0 replies A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpr...-f...

    New version - HelpMaster v23 now available! by Rod Weir in Announcements with 0 replies A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpro.com...

    March 2023 v22.7 maintenance release now available by Rod Weir in Announcements with 0 replies A maintenance release for v22.7 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    July 2022 release now available - New version released! by Rod Weir in Announcements with 0 replies A new feature release of HelpMaster is now available!  v22.7.22 For a list of the major new features of v22, see the new documentation site ht...

    June 2022 v22.2 maintenance release now available by Rod Weir in Announcements with 0 replies A maintenance release for v22.2 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    RE: Use PowerBI for HelpMaster dashboards by Rod Weir in Reports and reporting Hi SR, Thanks for the post. Yes, the PowerBI reports for HelpMaster have been well received. Download the latest version, from here. https://www...

    RE: Use PowerBI for HelpMaster dashboards by Scenic_Rim_IT in Reports and reporting Hi Rod - just wondering how PowerBI reports are going? Any chance you have a beta/pre-release version we can help test for you?...

    New version - HelpMaster v24 now available! by Rod Weir in Announcements A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpr...-f...

    New version - HelpMaster v23 now available! by Rod Weir in Announcements A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpro.com...

    March 2023 v22.7 maintenance release now available by Rod Weir in Announcements A maintenance release for v22.7 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    July 2022 release now available - New version released! by Rod Weir in Announcements A new feature release of HelpMaster is now available!  v22.7.22 For a list of the major new features of v22, see the new documentation site ht...

    June 2022 v22.2 maintenance release now available by Rod Weir in Announcements A maintenance release for v22.2 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    February 2022 release now available - New version released! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v22, see the new documentation site https://docs.helpma...

    November 2021 release now available - New Major Version! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v22, see the new documentation site https://docs.helpma...

    May 2021 release now available - New Major Version! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v21, see the new documentation site https://docs.helpma...