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 { get; set; }
public ApplicationPoolCpu Cpu { get; }
public bool Enable32BitAppOnWin64 { get; set; }
public ApplicationPoolFailure Failure { get; }
public ManagedPipelineMode ManagedPipelineMode { get; set; }
public string ManagedRuntimeVersion { get; set; }
public string Name { get; set; }
public ApplicationPoolProcessModel ProcessModel { get; }
public long QueueLength { get; set; }
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.