473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
May 21 '07 #1
1 2664
Howdy,
AppDomain restarts:
http://objectsharp.com/cs/blogs/bruc...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
May 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marcelo López | last post by:
Hi all. I'm developing a Windows Explorer like app. I have my own repository to store the files and a bd where i keep the path to each file. I have to watch the repository all time to avoid...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
3
by: Ron Vecchi | last post by:
Hi all, Can someone point me in the direction on this one, resources or examples. I am writing a Windows Service to monitor a folder. When I file is modified within the folder or any subfolders...
4
by: Marcelo López | last post by:
Hi all. I'm developing a Windows Explorer like app. I have my own repository to store the files and a bd where i keep the path to each file. I have to watch the repository all time to avoid...
2
by: Jack David | last post by:
Using the code below I am able to monitor a single directory for a new file and then kick-off a process to deal with the file. The question is??? How would I modify this code to be able to monitor...
2
by: John Lee | last post by:
Hi, I wrote a small program that copy a list of files to a specified folder one by one, i.e. this app will copy one file into the specified folder and wait until it's consumed (deleted) then...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
3
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
2
by: TwistedPair | last post by:
All, This is sort of a continuation of a previous post of mine. The code below basically reads a registry key to get a path to a folder and it watches for files created in that folder (only...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.