Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: IIS 7.5 application pools startMode="AlwaysRunning" ?

$
0
0

Hello all,

The end game is that I need to set startMode="AlwaysRunning" in ApplicationHost.config:

 

   <system.applicationHost>
       <applicationPools>
...
           <add name="myAppPool" autoStart="true" startMode="AlwaysRunning">

       </applicationPools>
...

Have dug through the source code of 4.0.5.0 and it appears that the Application pool class in the web administration dll lacks this property?

Microsoft.Web.Administration.dll

[assembly: AssemblyVersion("7.0.0.0")]

[assembly: AssemblyInformationalVersion("6.1.7600.16385")]

    public sealed class ApplicationPool : ConfigurationElement
    {
        public bool AutoStart { getset; }
        public ApplicationPoolCpu Cpu { get; }
        public bool Enable32BitAppOnWin64 { getset; }
        public ApplicationPoolFailure Failure { get; }
        public ManagedPipelineMode ManagedPipelineMode { getset; }
        public string ManagedRuntimeVersion { getset; }
        public string Name { getset; }
        public ApplicationPoolProcessModel ProcessModel { get; }
        public long QueueLength { getset; }
        public ApplicationPoolRecycling Recycling { get; }
        public ObjectState State { get; }
        public WorkerProcessCollection WorkerProcesses { get; }
 
        public ObjectState Recycle();
        public ObjectState Start();
        public ObjectState Stop();
    }

Does any know how I can set startMode="AlwaysRunning" I tried to find a newer version of Microsoft.Web.Administration.dll but all my servers seem to have this version?

I'm happy to submit a patch once I figure it out.

Kind regards,

Andrew Stone.


Viewing all articles
Browse latest Browse all 1211

Trending Articles