Posted on: 7/31/2013 5:36:12 AM | Views : 244

Hi, I found the following code that does something similar to what I want, I think it is the right way, then only I need to find as it is called the section where this property I want to change and confirm the name of the property "Identity" that assume is Identity.
Imports System Imports System.Text Imports Microsoft.Web.Administration Class Sample Shared Sub Main() Dim serverManager As ServerManager = New ServerManager Dim config As Configuration = serverManager.GetApplicationHostConfiguration Dim applicationPoolsSection As ConfigurationSection = config.GetSection("system.applicationHost/applicationPools") Dim applicationPoolDefaultsElement As ConfigurationElement = applicationPoolsSection.GetChildElement("applicationPoolDefaults") applicationPoolDefaultsElement("autoStart") = True applicationPoolDefaultsElement("managedRuntimeVersion") = "v2. ...

Go to the complete details ...