Ask a Question related to ASP.NET Security, Design and Development.
-
bayam #1
Cache variable suddenly = null
I have a web application that inserts several enumerated lists into the Cache
on the Initialize event of global.asax:
Cache _cache = Context.Cache;
_cache.Insert("Countries", htCountries);
Sometime last night, the cached variable htCountries started to return a
null value, causing our code to crash. Nothing in the code assigns this
variable to null. Restarting the applicaton fixed the problem. (This
particular code has been around for 3 months, and this error has never
occurred before.)
Is there a know security exploit of the .NET Cache object that would allow a
hacker to do this?
bayam Guest
-
NULL NULL Error
I have run out of things to check for and could use some help. We are on a unix box, CFMX 7, and have started to use the CFDOCUMENT tag. The tag... -
Java variable NULL values
Hi In my Java value object, some times String variables are coming NULL. That time, in CFM, it's giving undefined error. Please tell me how to... -
data variable = zero or null, then print "n/a"
since my cfm application will be a constant source of periodically updated information, some of which will be temporarily incomplete records, when... -
Mac suddenly won't network through my PC
Howdy all. Since getting my Powerbook last year, I've been successfully using the Internet Connection Sharing feature of Windows XP to network my... -
Error: ?null? is null or not an object
eloine: That is a bogus error message in that it probably refers to something you have done (or not done) on the page. So, looking in the... -
Paul Glavich [MVP ASP.NET] #2
Re: Cache variable suddenly = null
Any items stored in the cache are "volatile" and can be removed by the
system. Using the insert method you describe below, inserts the cached item
with a default priority. The default being "Normal". The MSDN docs explain
this as.
"Cache items with this priority level are likely to be deleted from the
cache as the server frees system memory only after those items with Low or
BelowNormal priority. This is the default."
As a best practice, never assume a cached item exists. Always check for NULL
first and re-insert into the cache if it is NULL if thats your want.
--
- Paul Glavich
ASP.NET MVP
ASPInsider ([url]www.aspinsiders.com[/url])
"bayam" <bayam@discussions.microsoft.com> wrote in message
news:F6DA5AB2-F184-4291-A061-0150D1718597@microsoft.com...Cache> I have a web application that inserts several enumerated lists into thea> on the Initialize event of global.asax:
>
> Cache _cache = Context.Cache;
> _cache.Insert("Countries", htCountries);
>
> Sometime last night, the cached variable htCountries started to return a
> null value, causing our code to crash. Nothing in the code assigns this
> variable to null. Restarting the applicaton fixed the problem. (This
> particular code has been around for 3 months, and this error has never
> occurred before.)
>
> Is there a know security exploit of the .NET Cache object that would allow> hacker to do this?
Paul Glavich [MVP ASP.NET] Guest
-
Joe Kaplan \(MVP - ADSI\) #3
Re: Cache variable suddenly = null
Also, if you want to be notified when something gets removed from the cache,
attach the appropriate delegate so that you get called back when it happens.
You can then find out when and why the item got ejected and reinsert it back
into the cache if you need to.
Joe K.
"Paul Glavich [MVP ASP.NET]" <glav@aspalliane.com-NOSPAM> wrote in message
news:e3FgLq1EFHA.3244@TK2MSFTNGP15.phx.gbl...> Any items stored in the cache are "volatile" and can be removed by the
> system. Using the insert method you describe below, inserts the cached
> item
> with a default priority. The default being "Normal". The MSDN docs explain
> this as.
>
> "Cache items with this priority level are likely to be deleted from the
> cache as the server frees system memory only after those items with Low or
> BelowNormal priority. This is the default."
>
> As a best practice, never assume a cached item exists. Always check for
> NULL
> first and re-insert into the cache if it is NULL if thats your want.
> --
>
> - Paul Glavich
> ASP.NET MVP
> ASPInsider ([url]www.aspinsiders.com[/url])
>
>
> "bayam" <bayam@discussions.microsoft.com> wrote in message
> news:F6DA5AB2-F184-4291-A061-0150D1718597@microsoft.com...> Cache>> I have a web application that inserts several enumerated lists into the> a>> on the Initialize event of global.asax:
>>
>> Cache _cache = Context.Cache;
>> _cache.Insert("Countries", htCountries);
>>
>> Sometime last night, the cached variable htCountries started to return a
>> null value, causing our code to crash. Nothing in the code assigns this
>> variable to null. Restarting the applicaton fixed the problem. (This
>> particular code has been around for 3 months, and this error has never
>> occurred before.)
>>
>> Is there a know security exploit of the .NET Cache object that would
>> allow>>> hacker to do this?
>
Joe Kaplan \(MVP - ADSI\) Guest



Reply With Quote

