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?
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?
Screen shot of error. This is the exact line of code where the error occurs EVERY OTHER TIME.
Hi Jean,
we need a test case to see your code. What does “crash” mean? Do you get an exception.
Best regards
Frank
Please login first to submit.