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 4 1591
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charlie-Boo |
last post by:
Who knows how to do any of the following (1-3)?
1. "You're going to want to run it not through the web server, but via
the command line."
2. "You can use a combination of PHP with client side...
|
by: Satinderpal Singh |
last post by:
Hi All,
I have an EXE, I load the DLL from that exe in a seperate AppDomain. (I have
not given reference to that DLL from the EXE).
Now, i call some commands of that dll from the EXE, and in...
|
by: Chris |
last post by:
Hi
I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
|
by: Chris Lacey |
last post by:
Hi,
I'm currently writing a scheduling service which starts a number DotNet
executables, each within a new AppDomain, every ten seconds.
The guts of the code is as follows:
// For each...
|
by: Wal Turner |
last post by:
Hi there. There are various snippets on forums regarding issues with
AppDomain.Unload and how it just doesnt work.
Fortunately, I got it working with the base case, after much fiddling.
Consider...
|
by: J_A5 |
last post by:
Hi,
I recently upgraded my web app from 1.1 to 2.0 and SQL Server 2005. After
the upgrade, I am seeing random appdomain restarts. It was not even logging
any information untill I turned on logging...
|
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= |
last post by:
This has been working perfectly for months. Since we switched from ASP.NET
1.1 to 2.0, we have constant and sporadic issues with updating our
applications.
Touching the web.config works about...
|
by: mel |
last post by:
Hi all,
I need a persistent TCP connection with my web server over page
reloads.
This means that, even if the user goes to a different page (in
my domain), I want to keep a TCP connection...
|
by: illegal.prime |
last post by:
Hi all, I'm getting unexpected results when trying to preload
assemblies into an AppDomain I'm creating. Upon creation of the
AppDomain - I attach an AssemblyResolve to both my current AppDomain...
|
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,...
|
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...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |