We are using the latest version of Aspose.Cells and we are unable to use a SessionMode that is different from ‘Session’ on a GridWeb control.
When we set SessionMode=‘ViewState’ the page immediately returns an error because it ‘cannot load the gridweb from Session’.
When we set SessionMode=‘File’ the page loads and renders the control correctly. We can see the session file being created. However when there is a recycle on the ApplicationPool it returns the same ‘cannot load gridweb from session’ error. This is the behaviour of using SessionMode=‘Session’ which we are trying to avoid.
On some of our clients the ApplicationPool recycles frequently making it hard to use the pages where there is a GridWeb control.
On our legacy application with a very old version of Aspose (2.7.5) we are able to use SessionMode=‘ViewState’ without any issues.
A sample project can be found here.
Here is a print of the error:
Error.png (34.4 KB)
Is there any configuration we are missing?
Thanks for your support.