Wednesday, March 28, 2012
Strange Caching problem
We're having a strange caching problem with an ASP.Net app written
in VB.Net on Windows 2003 with all the updates. We have two websevers
that use a common sql backend and a session server to preserve state.
Everything is working on one server, on the second one we have one page
that is giving us problems. Basically we changed the ip of our mail
server and updated the pages that use it accordingly. One page,
however isn't reading the changed page, but instead is reading some old
cached copy. The error shows it thinks the file is located on a laptop
which was used to develop the app and the path doesn't actually exist
on the server at all (the path it reports in the error is something
like c:/Documents and Settings/username/VSCache/filename.aspx). The
username it reports isn't on the server so the directory isn't there
either. We've tried to reset IIS and the server. We simply cannot get
it to read from the file in the website's directory where all the other
files are. Any ideas would be appreciated!
Thanks,
DaveHi Dave,
One thing to try is to add a question mark (?) to the end of the page when
you call it. If the problem is a cached version that should put the good
version into the cache.
I've seen proxy servers that cache so aggressively they need to be dumped
to let loose.
Ken
"big DWK" <daveGoogle@.davewking.com> wrote in message
news:1106596288.518066.72130@.z14g2000cwz.googlegroups.com...
> Hi-
> We're having a strange caching problem with an ASP.Net app written
> in VB.Net on Windows 2003 with all the updates. We have two websevers
> that use a common sql backend and a session server to preserve state.
> Everything is working on one server, on the second one we have one page
> that is giving us problems. Basically we changed the ip of our mail
> server and updated the pages that use it accordingly. One page,
> however isn't reading the changed page, but instead is reading some old
> cached copy. The error shows it thinks the file is located on a laptop
> which was used to develop the app and the path doesn't actually exist
> on the server at all (the path it reports in the error is something
> like c:/Documents and Settings/username/VSCache/filename.aspx). The
> username it reports isn't on the server so the directory isn't there
> either. We've tried to reset IIS and the server. We simply cannot get
> it to read from the file in the website's directory where all the other
> files are. Any ideas would be appreciated!
> Thanks,
> Dave
>
Strange Caching problem
We're having a strange caching problem with an ASP.Net app written
in VB.Net on Windows 2003 with all the updates. We have two websevers
that use a common sql backend and a session server to preserve state.
Everything is working on one server, on the second one we have one page
that is giving us problems. Basically we changed the ip of our mail
server and updated the pages that use it accordingly. One page,
however isn't reading the changed page, but instead is reading some old
cached copy. The error shows it thinks the file is located on a laptop
which was used to develop the app and the path doesn't actually exist
on the server at all (the path it reports in the error is something
like c:/Documents and Settings/username/VSCache/filename.aspx). The
username it reports isn't on the server so the directory isn't there
either. We've tried to reset IIS and the server. We simply cannot get
it to read from the file in the website's directory where all the other
files are. Any ideas would be appreciated!
Thanks,
DaveHi Dave,
One thing to try is to add a question mark (?) to the end of the page when
you call it. If the problem is a cached version that should put the good
version into the cache.
I've seen proxy servers that cache so aggressively they need to be dumped
to let loose.
Ken
"big DWK" <daveGoogle@.davewking.com> wrote in message
news:1106596288.518066.72130@.z14g2000cwz.googlegro ups.com...
> Hi-
> We're having a strange caching problem with an ASP.Net app written
> in VB.Net on Windows 2003 with all the updates. We have two websevers
> that use a common sql backend and a session server to preserve state.
> Everything is working on one server, on the second one we have one page
> that is giving us problems. Basically we changed the ip of our mail
> server and updated the pages that use it accordingly. One page,
> however isn't reading the changed page, but instead is reading some old
> cached copy. The error shows it thinks the file is located on a laptop
> which was used to develop the app and the path doesn't actually exist
> on the server at all (the path it reports in the error is something
> like c:/Documents and Settings/username/VSCache/filename.aspx). The
> username it reports isn't on the server so the directory isn't there
> either. We've tried to reset IIS and the server. We simply cannot get
> it to read from the file in the website's directory where all the other
> files are. Any ideas would be appreciated!
> Thanks,
> Dave
Strange caching behaviour with ASP.net 2.0
seen some odd behaviour that we do not know how to fix.
It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback that
writes an entry to the event log to see if the Cache is cleared. It appears
that it is. This happens (randomly) several times a day. I changed our global
entries to use Application state however this just seemed to amplify the
problem.
Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?
I do not know if the cache is being reset, causing the application to crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandledExceptionPolicy enabled="true"
attribute to the web.config with no joy)
At the same time that an entry is written to say the cache has been cleared,
the performance monitor registers requests /second at 286,000,000
If anyone has experienced similar issues, can shed some light or point me in
the right direction it would be greatly appreciated.
Kind Regards,
Darrencheck the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.
-- bruce (sqlwork.com)
"Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> Last month we upgraded our production server from .net 1.1 to 2.0. We have
> seen some odd behaviour that we do not know how to fix.
> It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> the the cache with the NotRemovable flag set. I have set up a callback
> that
> writes an entry to the event log to see if the Cache is cleared. It
> appears
> that it is. This happens (randomly) several times a day. I changed our
> global
> entries to use Application state however this just seemed to amplify the
> problem.
> Could this be a bug with 2.0 or does a server setting need changing
> somewhere (it is a windows 2003 server)?
> I do not know if the cache is being reset, causing the application to
> crash,
> or something is causing the application to crash, resulting in the cache
> being reset (I have added the LegacyUnhandledExceptionPolicy
> enabled="true"
> attribute to the web.config with no joy)
> At the same time that an entry is written to say the cache has been
> cleared,
> the performance monitor registers requests /second at 286,000,000
> If anyone has experienced similar issues, can shed some light or point me
> in
> the right direction it would be greatly appreciated.
> Kind Regards,
> Darren
Thanks for your reply.
The logic always checks if the cache item exists and repopulates if
necessary. The code worked fine in 1.1 and didn't change when we moved to
2.0. The cache doesn't appear to be repopulating - if an exception occurs the
details are e-mailed to us. The details we receive would suggest that the
cache is empty.
I have been looking through the event log but there is nothing to suggest
asp.net is being recycled.
"bruce barker (sqlwork.com)" wrote:
> check the event log for asp.net recycle events. maybe you app is using too
> much memeory. you should never count on a cache persistance, the fetch logic
> should always handle cache empty case.
> -- bruce (sqlwork.com)
> "Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
> news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> > Last month we upgraded our production server from .net 1.1 to 2.0. We have
> > seen some odd behaviour that we do not know how to fix.
> > It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> > the the cache with the NotRemovable flag set. I have set up a callback
> > that
> > writes an entry to the event log to see if the Cache is cleared. It
> > appears
> > that it is. This happens (randomly) several times a day. I changed our
> > global
> > entries to use Application state however this just seemed to amplify the
> > problem.
> > Could this be a bug with 2.0 or does a server setting need changing
> > somewhere (it is a windows 2003 server)?
> > I do not know if the cache is being reset, causing the application to
> > crash,
> > or something is causing the application to crash, resulting in the cache
> > being reset (I have added the LegacyUnhandledExceptionPolicy
> > enabled="true"
> > attribute to the web.config with no joy)
> > At the same time that an entry is written to say the cache has been
> > cleared,
> > the performance monitor registers requests /second at 286,000,000
> > If anyone has experienced similar issues, can shed some light or point me
> > in
> > the right direction it would be greatly appreciated.
> > Kind Regards,
> > Darren
>
Strange caching behaviour with ASP.net 2.0
seen some odd behaviour that we do not know how to fix.
It seems that Cache is reset or cleared. We have 2 or 3 global entries in
the the cache with the NotRemovable flag set. I have set up a callback that
writes an entry to the event log to see if the Cache is cleared. It appears
that it is. This happens (randomly) several times a day. I changed our globa
l
entries to use Application state however this just seemed to amplify the
problem.
Could this be a bug with 2.0 or does a server setting need changing
somewhere (it is a windows 2003 server)?
I do not know if the cache is being reset, causing the application to crash,
or something is causing the application to crash, resulting in the cache
being reset (I have added the LegacyUnhandledExceptionPolicy enabled="true"
attribute to the web.config with no joy)
At the same time that an entry is written to say the cache has been cleared,
the performance monitor registers requests /second at 286,000,000
If anyone has experienced similar issues, can shed some light or point me in
the right direction it would be greatly appreciated.
Kind Regards,
Darrencheck the event log for asp.net recycle events. maybe you app is using too
much memeory. you should never count on a cache persistance, the fetch logic
should always handle cache empty case.
-- bruce (sqlwork.com)
"Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
> Last month we upgraded our production server from .net 1.1 to 2.0. We have
> seen some odd behaviour that we do not know how to fix.
> It seems that Cache is reset or cleared. We have 2 or 3 global entries in
> the the cache with the NotRemovable flag set. I have set up a callback
> that
> writes an entry to the event log to see if the Cache is cleared. It
> appears
> that it is. This happens (randomly) several times a day. I changed our
> global
> entries to use Application state however this just seemed to amplify the
> problem.
> Could this be a bug with 2.0 or does a server setting need changing
> somewhere (it is a windows 2003 server)?
> I do not know if the cache is being reset, causing the application to
> crash,
> or something is causing the application to crash, resulting in the cache
> being reset (I have added the LegacyUnhandledExceptionPolicy
> enabled="true"
> attribute to the web.config with no joy)
> At the same time that an entry is written to say the cache has been
> cleared,
> the performance monitor registers requests /second at 286,000,000
> If anyone has experienced similar issues, can shed some light or point me
> in
> the right direction it would be greatly appreciated.
> Kind Regards,
> Darren
>
Thanks for your reply.
The logic always checks if the cache item exists and repopulates if
necessary. The code worked fine in 1.1 and didn't change when we moved to
2.0. The cache doesn't appear to be repopulating - if an exception occurs th
e
details are e-mailed to us. The details we receive would suggest that the
cache is empty.
I have been looking through the event log but there is nothing to suggest
asp.net is being recycled.
"bruce barker (sqlwork.com)" wrote:
> check the event log for asp.net recycle events. maybe you app is using too
> much memeory. you should never count on a cache persistance, the fetch log
ic
> should always handle cache empty case.
> -- bruce (sqlwork.com)
> "Darren Newton" <Darren Newton@.discussions.microsoft.com> wrote in message
> news:2DD4A241-C2B7-44EE-9CF2-06B9BDC65B21@.microsoft.com...
>
>