Session expires when i use scripting reference in C#.
Hi Guys,
I am working on an ASP.Net2.0 project using c#.
I am using Microsfot Runtime Scripting Library reference for creating and deleting folders.
But after creating any folder continuosly for two times the sessions used in my project are getting killed (expiring) due to my page crashes and folders are not getting deleted properly.
Please help me with some solution.
Re: Session expires when i use scripting reference in C#.
I believe creating a folder within the website folder will trigger it to be re-compiled, resulting in any sessions being lost.
Could you create the folders outside of your site folder (if you not doing so already)?
Re: Session expires when i use scripting reference in C#.
Any changes you make to folders, folder structures and web.config files will cause the application pool to recycle. When the application pool recycles, sessions are lost as that portion of memory is 'cleared' for a new start.
Such manipulations should ideally occur outside the web application folder.