Application Error : Invalid Session

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

What causes this Error “Application Error : Invalid Session”

I receive this error when using samples from the Wisej site and in my own test applications.

I am using a  VS2015 and a Trial license of Wisej runtime version 4.0.30319

  • You must to post comments
0
0

First off, thanks for all the help on this issue.

I believe I figured out the problem and it wasn’t WiseJ related.

I had a diagnostic log being written to the \bin folder.  Every time this log was written to, because it is in the bin folder, the application thinks that it needs to reset the application.  This would invalidate the session.

Once I stopped writing to the diagnostic log, the invalid session issue went away.

I thought I would post the “fix” in case anyone else made the same mistake that I did.

Shawn

  • Luca (ITG)
    Thank you for the update. Good to know, I though it was only changes to Web.config that made IIS reload.
  • You must to post comments
0
0

Note: I am using “cookieless”: true in my .Json file

Does it work if you refresh” YES and the sid changed, Then you get the error right away? NO after about 5 minutes

Added validateClient: false, the error still occurs after about 5 minutes. Then I removed the Application.SessionTimeout += Application_SessionTimeout handler from Program and  all worked fine for at least an hour.

Version 1.3.4.0

Thank you for your help Luca, I’ll keep testing it.

Alex

  • Luca (ITG)
    If the sid changes when you hit refresh it means that wisej is unable to retrieve the session id (sid) or the client validation fails. I tried cookieless and to add the handler but it always works. What I don’t understand is what do you mean you get the error after 5 minutes? Is it 5 minutes of inactivity?
  • Alex Berze
    Sorry for the delay Luca I was having to much fun play with Wisej. Yes it was 5 minutes of inactivity.
  • You must to post comments
0
0

It means that the app is trying to access a session that expired. Does it work if you refresh and then you get the error right away?

Try to add “validateClient”: false to Default.json and let me know if the problem is still there. Also let me know the Wisej version you are using.

 

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json