Answers for "create iis website programmatically c#"

C#
0

create iis website programmatically c#

private static void CreateAppPool(string poolname,bool enable32bitOn64, ManagedPipelineMode mode,string runtimeVersion="v4.0")  
{  
    using (ServerManager serverManager = new ServerManager())  
    {  
        ApplicationPool newPool = serverManager.ApplicationPools.Add(poolname);  
        newPool.ManagedRuntimeVersion = runtimeVersion;  
        newPool.Enable32BitAppOnWin64 = true;  
        newPool.ManagedPipelineMode = mode;  
        serverManager.CommitChanges();  
    }  
}
Posted by: Guest on April-30-2021

Code answers related to "create iis website programmatically c#"

C# Answers by Framework

Browse Popular Code Answers by Language