timeout annoyance

0
0

For some unknown reason, my app crashes (EVERY OTHER TIME) when I try to store the value of Application.Configuration.SessionTimeout in an int variable.

It always crashes the first time but always runs correctly the next. Rinse and repeat. I took a video but it’s too large for this forum.

When writing and debugging, the time needed to restart adds up.

Any ideas on how to fix this?

  • You must to post comments
0
0

This only happens EVERY OTHER TIME. Once the error occurs, I click the Stop Button and immediately restart the app and it ALWAYS runs correctly (the second time).

If this is true: “There is no Application, no Configuration and no Session available when initializing statics.” how is it running correctly the second time?

  • You must to post comments
0
0

Screen shot of error. This is the exact line of code where the error occurs EVERY OTHER TIME.

Attachment
  • Julie(ITG)
    That’s working correctly, You are using statics which are initialized before anything else is loaded. There is no Application, no Configuration and no Session available when initializing statics.
  • Jean Vallee
    This code does not get executed until after 1) the login page is displayed and 2)user name and password validations are run. It’s not complaining when the app loads. Only when it hits this code for the first time.
  • You must to post comments
0
0

Hi Jean,

we need a test case to see your code. What does “crash” mean? Do you get an exception.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.