Potential bug: ASP.NET session variables and file watcher service

Discussion in 'ASP .Net' started by =?Utf-8?B?QXZp?=, May 21, 2007.

  1. Hi

    I have an interesting issue, I hope someone can shead light on:

    I have a 2 server "web farm" with a web app that produces image files. To
    ensure synchronization of content on both machines, we have built a vb.net
    (2.0) file watcher service to keep the web folders synchronized between the 2
    machines. the app uses in-proc session variables for some other stuff.

    We have run into a strange problem: when the file watcher service is
    running, the session variables seem to die and we lose the "context" we have
    created for the user when they login. We have ensured that the file wather
    works on directories that do NOT contain code files (aspx). However, the
    directories are virtual directories on the respective sites. The session
    variables are holding a hashtable of complex types (db connections, command
    objects etc).

    The file watcher (FW) app seems to work just fine. If we turn the FW off,
    the session variables do not die!@#!@#!!

    I know this isn't an enormous amount of detail, but is there anything that
    we should be aware of here? what would help to illuminate the problem? The
    code for each is way to big to post.

    Some background: using .NET 2.0, vb for both apps. Windows 2003 std Server
    (sp1) and IIs 6.0.

    thx
    Avi
    =?Utf-8?B?QXZp?=, May 21, 2007
    #1
    1. Advertising

  2. Howdy,


    AppDomain restarts:
    http://objectsharp.com/cs/blogs/bruce/archive/2004/11/01/992.aspx

    The session
    > variables are holding a hashtable of complex types (db connections, command
    > objects etc).


    OMG! :)

    Hope this helps
    --
    Milosz


    "Avi" wrote:

    > Hi
    >
    > I have an interesting issue, I hope someone can shead light on:
    >
    > I have a 2 server "web farm" with a web app that produces image files. To
    > ensure synchronization of content on both machines, we have built a vb.net
    > (2.0) file watcher service to keep the web folders synchronized between the 2
    > machines. the app uses in-proc session variables for some other stuff.
    >
    > We have run into a strange problem: when the file watcher service is
    > running, the session variables seem to die and we lose the "context" we have
    > created for the user when they login. We have ensured that the file wather
    > works on directories that do NOT contain code files (aspx). However, the
    > directories are virtual directories on the respective sites. The session
    > variables are holding a hashtable of complex types (db connections, command
    > objects etc).
    >
    > The file watcher (FW) app seems to work just fine. If we turn the FW off,
    > the session variables do not die!@#!@#!!
    >
    > I know this isn't an enormous amount of detail, but is there anything that
    > we should be aware of here? what would help to illuminate the problem? The
    > code for each is way to big to post.
    >
    > Some background: using .NET 2.0, vb for both apps. Windows 2003 std Server
    > (sp1) and IIs 6.0.
    >
    > thx
    > Avi
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=, May 21, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert May

    Potential ASP.NET bug

    Robert May, Oct 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    410
    Robert May
    Oct 16, 2003
  2. Stephen
    Replies:
    1
    Views:
    437
    Stephen
    Jan 13, 2006
  3. stephen

    Question on File System Watcher

    stephen, May 31, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    407
    stephen
    May 31, 2006
  4. smartnhandsome

    Simple File Watcher

    smartnhandsome, Oct 16, 2007, in forum: Java
    Replies:
    3
    Views:
    685
    smartnhandsome
    Oct 17, 2007
  5. Dinis Cruz
    Replies:
    1
    Views:
    122
    Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP]
    Oct 17, 2003
Loading...

Share This Page