Results 1 to 3 of 3

Thread: Session expires when i use scripting reference in C#.

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2008
    Posts
    2

    Smile 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.

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    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)?
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width