Potential Bug: ASp.NEt session variables and Filewatcher

G

Guest

Hi

I have an interesting issue, I hope someone can shead light on. [I posted
this under ASP.NET as well just in case , please forgive the duplication]:

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
 
G

Guest

Make sure the filewatcher application is not altering contents of \bin
folder. the framework restarts worker process anytime it detects changes in
bin folder, web.config file.

If this doesn't work, try to use trace statements in global.asax and trap
session end events to see what's causing sessions to die.

HTH
Vijay
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top