By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,677 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,677 IT Pros & Developers. It's quick & easy.

AppDomain randomly reloads

P: n/a
Hi
We have a case that our AppDomain (workerprocess) reloads randomly.
We simply have a public static hashtable that keeps an object inside which
is determined by the key sessionID, and although we have the same SessionID,
all of a sudden, static hashtable looses its values. This happens both on
production and development enviorment.

Do you know why this might happen?
This is a follow up for the following thread from C# group.
http://groups.google.com/group/micro...contents&hl=en

Note: I've read that, if we have dynamic files in the web application
folder, ASP.NET reloads the worker process. The following article says that,
even the log files we put can cause this problem. Is that true?
(Our log files are not exactly under the main web folder it is located some
where like "webappfolder\sub1\sub2\logs\app\*.txt")
The article: http://objectsharp.com/blogs/bruce/a...11/01/992.aspx
Thanks in advance,
SevDer
http://www.sevder.com
Jan 4 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Where do you keep your hashtable? Why don't you use a Cache or Session? If
you keep it
in a hash table you got many chances that when the memory pool resets or a
new binary is
installed the process will restart, if you keep it into a cache table in SQL
or a Session in SQL
you'll be ok for the duration of the Cache or Session.

Please give me more details of what are you trying to accoplish and I'll
help you to design it.

Cheers
Al

"SevDer" wrote:
Hi
We have a case that our AppDomain (workerprocess) reloads randomly.
We simply have a public static hashtable that keeps an object inside which
is determined by the key sessionID, and although we have the same SessionID,
all of a sudden, static hashtable looses its values. This happens both on
production and development enviorment.

Do you know why this might happen?
This is a follow up for the following thread from C# group.
http://groups.google.com/group/micro...contents&hl=en

Note: I've read that, if we have dynamic files in the web application
folder, ASP.NET reloads the worker process. The following article says that,
even the log files we put can cause this problem. Is that true?
(Our log files are not exactly under the main web folder it is located some
where like "webappfolder\sub1\sub2\logs\app\*.txt")
The article: http://objectsharp.com/blogs/bruce/a...11/01/992.aspx
Thanks in advance,
SevDer
http://www.sevder.com

Jan 4 '06 #2

P: n/a
Hi,

you can debug if it really is about appdomain reloading. See the following
blog post for a how-to.

Logging ASP.NET Application Shutdown
http://weblogs.asp.net/scottgu/archi...14/433194.aspx

If it really is about appdomain reload, you should get information about
that with the code in that post. If not, then the problem is elsewhere.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"SevDer" <se****@newsgroup.nospam> wrote in message
news:u9****************@TK2MSFTNGP10.phx.gbl...
Hi
We have a case that our AppDomain (workerprocess) reloads randomly.
We simply have a public static hashtable that keeps an object inside which
is determined by the key sessionID, and although we have the same
SessionID, all of a sudden, static hashtable looses its values. This
happens both on production and development enviorment.

Do you know why this might happen?
This is a follow up for the following thread from C# group.
http://groups.google.com/group/micro...contents&hl=en

Note: I've read that, if we have dynamic files in the web application
folder, ASP.NET reloads the worker process. The following article says
that, even the log files we put can cause this problem. Is that true?
(Our log files are not exactly under the main web folder it is located
some where like "webappfolder\sub1\sub2\logs\app\*.txt")
The article:
http://objectsharp.com/blogs/bruce/a...11/01/992.aspx
Thanks in advance,
SevDer
http://www.sevder.com

Jan 4 '06 #3

P: n/a
It is static hash table because, there are many threads that updates the
object data, and it will perform, best when the updated object is in phsical
memory. However if you put in cache, you cannot guarantee that the data will
be always in memory but not in disk.
As for session, for multiple threads are not supported and SQL will be
expensive. Please see the old thread for this for more details.

Anyway, we do not change binaries etc. It just recycles after some time.

"Albert Pascual" <Al***********@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Where do you keep your hashtable? Why don't you use a Cache or Session? If
you keep it
in a hash table you got many chances that when the memory pool resets or a
new binary is
installed the process will restart, if you keep it into a cache table in
SQL
or a Session in SQL
you'll be ok for the duration of the Cache or Session.

Please give me more details of what are you trying to accoplish and I'll
help you to design it.

Cheers
Al

"SevDer" wrote:
Hi
We have a case that our AppDomain (workerprocess) reloads randomly.
We simply have a public static hashtable that keeps an object inside
which
is determined by the key sessionID, and although we have the same
SessionID,
all of a sudden, static hashtable looses its values. This happens both on
production and development enviorment.

Do you know why this might happen?
This is a follow up for the following thread from C# group.
http://groups.google.com/group/micro...contents&hl=en

Note: I've read that, if we have dynamic files in the web application
folder, ASP.NET reloads the worker process. The following article says
that,
even the log files we put can cause this problem. Is that true?
(Our log files are not exactly under the main web folder it is located
some
where like "webappfolder\sub1\sub2\logs\app\*.txt")
The article:
http://objectsharp.com/blogs/bruce/a...11/01/992.aspx
Thanks in advance,
SevDer
http://www.sevder.com

Jan 4 '06 #4

P: n/a
Thanks Teemu,

That is a real good help for us to identify our problem.
I will let you know about the real problem that causes this.

Thanks again
SevDer
http://www.sevder.com

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
Hi,

you can debug if it really is about appdomain reloading. See the following
blog post for a how-to.

Logging ASP.NET Application Shutdown
http://weblogs.asp.net/scottgu/archi...14/433194.aspx

If it really is about appdomain reload, you should get information about
that with the code in that post. If not, then the problem is elsewhere.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"SevDer" <se****@newsgroup.nospam> wrote in message
news:u9****************@TK2MSFTNGP10.phx.gbl...
Hi
We have a case that our AppDomain (workerprocess) reloads randomly.
We simply have a public static hashtable that keeps an object inside
which is determined by the key sessionID, and although we have the same
SessionID, all of a sudden, static hashtable looses its values. This
happens both on production and development enviorment.

Do you know why this might happen?
This is a follow up for the following thread from C# group.
http://groups.google.com/group/micro...contents&hl=en

Note: I've read that, if we have dynamic files in the web application
folder, ASP.NET reloads the worker process. The following article says
that, even the log files we put can cause this problem. Is that true?
(Our log files are not exactly under the main web folder it is located
some where like "webappfolder\sub1\sub2\logs\app\*.txt")
The article:
http://objectsharp.com/blogs/bruce/a...11/01/992.aspx
Thanks in advance,
SevDer
http://www.sevder.com


Jan 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.