« Previous Next »

Thread: losing session when switching from asp to aspx pages

Last post 06-11-2007 3:08 AM by dpoletto. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 05-25-2007, 5:26 AM

    • dpoletto
    • Not Ranked
    • Joined on 08-02-2006, 11:13 AM
    • Posts 4

    losing session when switching from asp to aspx pages

    Hi,

    we have added an aspx (.net 2.0) page to our classic asp application to export Reports to pdf files (by using Crystal Reports XI R2 objects).

    The aspx page is into the same virtual directory of the classic asp app. 

    After  loading the report the aspx page exports the pdf file directly to the response.

    The aspx page is  opened inside a popup window; the report displays properly but the asp session is lost.

    On IIS5  everything works fine.

    Any idea?

     

    Thanks in advance

    Damiano
     

     


     

  • 05-25-2007, 8:42 PM In reply to

    Re: losing session when switching from asp to aspx pages

    Hmm.  If I had to guess, you are doing some magic to get the session variables to work between asp and asp.net on IIS5.  ASP runs in one process, asp.net in another on IIS5.  Session is not shared between asp and asp.net either on IIS6.  Here is an article that discuss how to do this via code.

    http://www.codeproject.com/aspnet/SessionTransfer.asp

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-28-2007, 3:26 AM In reply to

    • dpoletto
    • Not Ranked
    • Joined on 08-02-2006, 11:13 AM
    • Posts 4

    Re: losing session when switching from asp to aspx pages

     we have investigated a little more.

    The problem seems to be caused by a Crystal Report XI R2 runtime's dll (cachemanager.dll);

    On our Win Vista Business machine it's raising an exception and probably because of that we lose the session (perhaps worker process restarted?)

     We have to update our environment with CRXI R2 SP2 and verify if the problem persists.

     

  • 05-30-2007, 8:54 AM In reply to

    Re: losing session when switching from asp to aspx pages

    I found this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1648680&SiteID=1

    I think you might interest in this. If you don't have Visual Studio .Net 2003 installed in your Vista, you might need to provide the msvcr71.dll separately.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-30-2007, 11:09 AM In reply to

    • dpoletto
    • Not Ranked
    • Joined on 08-02-2006, 11:13 AM
    • Posts 4

    Re: losing session when switching from asp to aspx pages

     Hi,

    i had already found that forum post, our Windows vista already has msvcr71.dll

    Now my issue is being investigated by a BusinessObjects developer.

    I've found a workaround (very dirty :-P ) for  the export problem we are facing with:

    we have created another virtual directory for the aspx page that exports the Crystal Report. This virtual dir uses a different application pool so, when the IIS7 workerprocess crashes the classic asp app. can work without losing the session.

    (the aspx page is called from the asp app usin a popup window) 

     

     

     

     

     

     

  • 06-11-2007, 3:08 AM In reply to

    • dpoletto
    • Not Ranked
    • Joined on 08-02-2006, 11:13 AM
    • Posts 4

    Re: losing session when switching from asp to aspx pages

    About 10 days after my first support request i had this answer from Business Objects support:

    Summary: IIS 7 not supported

    I have discussed about your issue with my resource team and found that we currently do not support IIS 7. The reason is that it is only available on a Windows Vista, which is a desktop operating system and not a server. When Microsoft’s Longhorn server Operating System is available we will start supporting new products on IIS 7.

    ----------------------------------------

    so it's a crystal reports bug, but 10 days to find that they don't support a particular product... too many.

     

    Bye

    Damiano 

     

     

     

Page 1 of 1 (6 items)
Microsoft Communities