Response.End causing Forms sign out

Discussion in 'ASP.NET 2.0' started by silverCORE, Jan 19, 2009.

  1. Hi, I have an asp.net 2.0 website hosted at DiscountASp and I have this webpage that does the typical Response.WriteFile and Response.End to present the user with the download file dialog box.

    but sometimes it seems to be causing the user to be signed out of the application...with the whole "ReturnUrl" parameter on the query string.

    has anyone had this problem, or is there a way around it?

    I also tried changing response.End for HttpContext...CompleteRequest, but no luck, it keeps hapenning.

    any help or ideas are greatly appreciated, thanks.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Could it be caused by application recycling?

    Have you considered using SQL Session?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce,

    It was not Response.End...after a lot of research on the web I found it was the fact that the report I'm creating creates several PNG images on the fly on disk, and then deletes them, which is triggering the File Change Notification system to recycle the AppDomain.

    Since it does not happen on my computer, I'm guessing you have very specific planned settings for these on the Machine.Config of the server..

    I will most likely change my session to SQL, but stil...it is not very cool for the domain to be recycled after the report is created or downloaded because the process of jit'ing everything is heavy for my users, and they have reported that the site is kind of slow lately.

    Have other customers experienced this, and if yes, how have DASP helped them solve this?

    I'm guessing we can not get access to a folder outside our app so that we can create/delete those files there and not trigger the FCN....or can we?

    Please help. Thanks
     

Share This Page