RE: HttpModule Init method invoked on every request

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Walter,

All the supplied information seems to relate to .NET 1.1.

We recently ported our web application from 1.1 to 2.0/3.0 and this problem
only seems to occur under .NET 2.0.

""Walter Wang [MSFT]"" wrote:

Hi Rob,

Thanks for your updated information about the IIS isolation mode.

When you configure IIS 6.0 to run in IIS 5.0 isolation mode, ASP.NET runs
in its own process model, Aspnet_wp.exe, and uses its own configuration
settings. These settings are stored in the computer-wide Machine.config
configuration file.

When running on IIS 6.0 in worker process isolation mode, ASP.NET uses the
IIS 6.0 process model settings.

#Mapping ASP.NET Process Model Settings to IIS 6.0 Application Pool Settings
http://msdn2.microsoft.com/en-us/library/aa719566(VS.71).aspx


For the IHttpModule.Init issue, I've also found some updated information:

#INFO: Application Instances, Application Events, and Application State in
ASP.NET
http://support.microsoft.com/kb/312607
<quote>
The ASP.NET runtime creates as many instances of application classes as
needed to process requests simultaneously. For most applications, this
number is limited to the number of threads and remains in the range of 1
through 100, depending on the hardware, server load, configuration, and so
on. Many requests reuse application instances, and a free list of
application instances is kept during periods of reduced load. Application
instances are used in a thread-safe manner, that is, one request at a time.
</quote>


Sorry for not clarifying this fact in my last reply.

Based on these information, my guess is that your IIS 6.0 application pool
settings are causing each request using a new HttpApplication instance.




Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • Re: IIS Warm Up Period
    ... IIS does not have a "warm up period" feature. ... requests to "warm up" a server and get various applications pre-compiled, ... There are some configuration settings that get loaded by the Global.asx file ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS Warm Up Period
    ... IIS does not have a "warm up period" feature. ... requests to "warm up" a server and get various applications pre-compiled, ... There are some configuration settings that get loaded by the Global.asx file ...
    (microsoft.public.inetserver.iis)
  • IIS Warm Up Period
    ... We have a website with a very high volume of traffic. ... There are some configuration settings that get loaded by the Global.asx file ... It looks like when IIS ... starts and all the requests start coming in it is trying to compile the ...
    (microsoft.public.inetserver.iis)
  • IIS Maximum number of concurrent requests
    ... I'm looking for some advice on performance settings of IIS. ... application that creates Com+ components that read data out of a database. ... Some of these data retrieval requests can take some time. ...
    (microsoft.public.inetserver.iis)
  • IIS Warm Up Period
    ... We have a website with a very high volume of traffic. ... There are some configuration settings that get loaded by the Global.asx file ... It looks like when IIS ... starts and all the requests start coming in it is trying to compile the ...
    (microsoft.public.dotnet.framework.aspnet)