IIS 6 application pool, Cache and Custom error, Session state

IIS 6 application pool, Cache and Custom error, Session state

am 13.10.2007 18:17:57 von ohmp05

Hi all,
our application is in the production environment which uses IIs6.0,
Some thimes we experince that when we try to browse any page, It
displays Custom error page instaed of actual page( it means that any
unhandled exception occurs in the application) If I look at the Log
file, It says that bull refrence at te time of getting the Sesion
variable


and also i am slo cacheing images on the server. ANd some times images
does not show up,
once i restart the IIS then it works fine

what can be the problem?

can any one explain me how it works when Application pool restarts,
what will be the impact on caching and session variables?


Thanks in advance

Re: IIS 6 application pool, Cache and Custom error, Session state

am 14.10.2007 03:40:17 von David Wang

On Oct 13, 9:17 am, ABCL wrote:
> Hi all,
> our application is in the production environment which uses IIs6.0,
> Some thimes we experince that when we try to browse any page, It
> displays Custom error page instaed of actual page( it means that any
> unhandled exception occurs in the application) If I look at the Log
> file, It says that bull refrence at te time of getting the Sesion
> variable
>
> and also i am slo cacheing images on the server. ANd some times images
> does not show up,
> once i restart the IIS then it works fine
>
> what can be the problem?
>
> can any one explain me how it works when Application pool restarts,
> what will be the impact on caching and session variables?
>
> Thanks in advance



It sounds like you are running custom applications on IIS6 that has
bugs, causing the Custom Error pages to be returned, as well as
possibly cause images to not show up. Restarting IIS causes those
applications to restart as well, thus "fixing" the issue. The real fix
is to debug and fix those broken custom applications. A temporary
workaround is to configure IIS6 to periodically recycle those
applications, so you don't have to go restart IIS at all -- it'll do
the job for you.

As for your question on Application pool restarts and impact on
caching/session variables, read this blog entry:
http://blogs.msdn.com/david.wang/archive/2005/09/19/Why-do-I -lose-ASP-Session-State-on-IIS6.aspx

I see no indication that your problems are related to IIS6 itself. I
usually start by suspecting problems within the application you run on
IIS6. Why? Because IIS6 is a proven, rock-solid server used by
millions and engineered by a dedicated team which has spent far more
time testing it than the application you run on it, and over 90% of
user-reported issues on IIS result from problems within 3rd party code
run on IIS.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//