Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

BC14 CU23 Session Timeout

(0) ShareShare
ReportReport
Posted on by 70

I have upgraded client Platform from BC14 Cu16 TO BC14 CU23. Application version is still CU11. Client is using multiple add-ons and they might have be based on different CUs. But, all add-on functions correctly.

If User session is idle for 20-30 minutes then it gets timeout. We have configured it for 8:00:00 Hours. Still it is timeout before it. 

Any suggestion is appreciated.

Web Client Time out:

pastedimage1625585265331v1.png

Business Central Administration -> Configuration

pastedimage1625585273786v2.png

  • Dipak Patel Profile Picture
    70 on at
    RE: BC14 CU23 Session Timeout

    Thank you for reply.

    I have added Web Client URL to Browser setting -> "Never put these sites to sleep" but it does not work.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: BC14 CU23 Session Timeout

    Hello,

    Several browsers have sleeping tabs. You can disable these to see if that improves the experience. They suspend the tabs and this may cause the session time out timer to start.

    Thanks.

  • Suggested answer
    Dipak Patel Profile Picture
    70 on at
    RE: BC14 CU23 Session Timeout

    Do you have any idea how does browser cache affecting? 

    Below is event Log.

    Error accessing Website
    Type: Microsoft.Dynamics.Framework.UI.FormNotFoundException
    StackTrace:
    at Microsoft.Dynamics.Framework.UI.InteractionParameterHelper.GetLogicalControl(UISession uiSession, ClientLogicalControlReference clientLogicalControlReference) in s:\repo\src\platform\client\Shared\Prod.ClientFwk\Interactions\InteractionParameterHelper.cs:line 87
    at Microsoft.Dynamics.Framework.UI.Client.SaveValueInteractionExecutionStrategy.Initialize(IInteractionContext context, IDictionary`2 namedParameters) in s:\repo\src\platform\client\Shared\Prod.ClientFwk\Client\Interactions\ExecutionStrategies\SaveValueInteractionExecutionStrategy.cs:line 48
    at Microsoft.Dynamics.Framework.UI.InteractionManager.<InvokeInteractions>d__8.MoveNext() in s:\repo\src\platform\client\Shared\Prod.ClientFwk\Interactions\InteractionManager.cs:line 105
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.Dynamics.Framework.UI.WebBase.WebBaseInteractionManager.<InvokeInteractions>d__5.MoveNext() in s:\repo\src\platform\client\web\Prod.Client.WebBase\Interactions\WebBaseInteractionManager.cs:line 56
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.Dynamics.Framework.UI.CultureAwaiter`1.GetResult() in s:\repo\src\platform\client\Shared\Prod.ClientFwk\Threading\Async\CultureAwaiter.cs:line 122
    at Microsoft.Dynamics.Framework.UI.Web.WebInteractionManager.<InvokeInteractions>d__2.MoveNext() in s:\repo\src\platform\client\web\Prod.Client.Web\Interactions\WebInteractionManager.cs:line 45
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.Dynamics.Framework.UI.CultureAwaiter`1.GetResult() in s:\repo\src\platform\client\Shared\Prod.ClientFwk\Threading\Async\CultureAwaiter.cs:line 122
    at Microsoft.Dynamics.Framework.UI.Web.CallbackHandler.<HandleRequestCore>d__4.MoveNext() in s:\repo\src\platform\client\web\Prod.Client.Web\Callbacks\CallbackHandler.cs:line 195
    Source: Microsoft.Dynamics.Framework.UI

  • tanya07 Profile Picture
    1,636 on at
    RE: BC14 CU23 Session Timeout

    Can you share the event log ?

  • Dipak Patel Profile Picture
    70 on at
    RE: BC14 CU23 Session Timeout

    Thank you for response. I have already tried it but does not improve situation.

  • Suggested answer
    tanya07 Profile Picture
    1,636 on at
    RE: BC14 CU23 Session Timeout

    try to clear the cache and make your default browser as Microsoft Edge.

  • Dipak Patel Profile Picture
    70 on at
    RE: BC14 CU23 Session Timeout

    IIS have already configured both parameters for Web Client and service tire and minimum is 6 Hours. But, Session still gets expired in 20-30 minutes.

    you can see it in snapshots.

  • Suggested answer
    Saurabh Shah Profile Picture
    4,560 on at
    RE: BC14 CU23 Session Timeout

    Hello Dipak,

    The session timeout for the Web Client is controlled by settings in the Service Tier and in the Web Client configuration.

    In the service tier, check ClientServicesIdleClientTimeout parameter (MaxValue = no timeout)

    In the web client, configuration (navsetings.json file) check the parameter SessionTimeout,

    You can make this change manually in Json file and restart the IIS. 

    or you can use the the command.

    for example:

    Set-NAVWebServerInstanceConfiguration -WebServerInstance BC140 -KeyName SessionTimeout -KeyValue "00:20:00".

    Please remember that the above settings are used in conjunction with each other. A session will be closed based on the setting that has the shortest time period.

    Let me know if you have any questions. 

    Regards,

    Saurabh

  • Dipak Patel Profile Picture
    70 on at
    RE: BC14 CU23 Session Timeout

    Here, it is not scenario of Browser setting as it is default 2 Hours and user's session is timeout in 20-30 minutes.

  • Bilal Haider Profile Picture
    248 on at
    RE: BC14 CU23 Session Timeout

    Okay, I am not sure about BC but there is timeout settings in browsers.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,101 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans