protected override void DoExecute(IScriptExecutionEnvironment environment) { string regIisExePath = Path.Combine( environment.GetDotNetFWDir(dotNetVersion), "aspnet_regiis.exe"); string commandLine = String.Format( System.Globalization.CultureInfo.InvariantCulture, "-s {0}{1}", parentVirtualDirectoryName, virtualDirectoryName); RunProgramTask.Execute( environment, regIisExePath, commandLine, TimeSpan.FromSeconds(30)); }