[Mono-list] Problem with ASP.NET Cache

Antoine CAPELLE CAPELLE@archimed.fr
Tue, 5 Apr 2005 09:48:42 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C539B3.E362E9EA
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi everybody !

I'm getting some troubles with the cache in asp.net.

While an ASP.NET application is running, NullReferenceExceptions =
randomly appear when writing to or reading from cache.

=20

I've got this error :

=20

System.NullReferenceException: Object reference not set to an instance =
of an object

in <0x00123> System.Web.Caching.ExpiresBucket:Update =
(System.Web.Caching.CacheEntry,long)

in <0x000ed> System.Web.Caching.CacheExpires:Update =
(System.Web.Caching.CacheEntry,long)

in <0x00221> System.Web.Caching.Cache:GetEntry (string)

in <0x00019> System.Web.Caching.Cache:Get (string)

...

=20

This bug is declared in bugzilla (n=B0 54531), but already closed and =
marked as fixed...

I'm running Mono 1.1.5 on Suse ES 9 and I also tried with Mono 1.0.6 but =
I still have this error.

I also tried on MS dotnet framework and it works.

=20

Has anybody already met this problem?

=20

Thanks in advance for replying.

Antoine.


------_=_NextPart_001_01C539B3.E362E9EA
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.StyleCourrierlectronique17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DFR link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi&nbsp;everybody !</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I&#8217;m getting some troubles with the cache =
in
asp.net.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>While an ASP.NET application is running,
NullReferenceExceptions randomly appear when writing to or reading from =
cache.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;ve got this error :</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>System.NullReferenceException: Object reference not =
set to
an instance of an object</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>in &lt;0x00123&gt; =
System.Web.Caching.ExpiresBucket:Update
(System.Web.Caching.CacheEntry,long)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>in &lt;0x000ed&gt; =
System.Web.Caching.CacheExpires:Update
(System.Web.Caching.CacheEntry,long)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>in &lt;0x00221&gt; System.Web.Caching.Cache:GetEntry
(string)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>in &lt;0x00019&gt; System.Web.Caching.Cache:Get =
(string)</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&#8230;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>This bug is declared in bugzilla (n=B0 54531), =
but already
closed and marked as fixed...</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I&#8217;m running Mono 1.1.5 on Suse ES 9 and =
I also
tried with Mono 1.0.6 but I still have this error.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I also tried on MS dotnet framework and it =
works.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Has anybody already met this =
problem?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Thanks in advance for =
replying.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Antoine.</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C539B3.E362E9EA--