后端开发|C#.Net教程
C#,IIS,无效索引
后端开发-C#.Net教程
C#操作IIS创建应用程序池出现异常:无效索引的解决方法
ckeditor 源码模式,ubuntu安装swap格式,青县有爬虫馆,php he,来宾seo外包lzw
相关代码:
js侧边客服源码,vscode校验没有提示,ubuntu卡在dkms,iis与tomcat集成,sqlite数据库加密方式,对爬虫感兴趣可以学什么专业,php获取数据库的字段,江门外贸seo推广,贵金属网站源码,web2.0网站模板lzw
public static string CreateAppPool(string appPoolName, string frameworkVersion, string managedPipelineMode) { DirectoryEntry rootfolder = new DirectoryEntry("IIS://localhost/W3SVC/APPPOOLS"); try { DirectoryEntry appPool = rootfolder.Children.Add(appPoolName, "IIsApplicationPool"); if (appPool.Properties.Contains("AppPoolCommand")) {appPool.Properties["AppPoolCommand"][0] = "1"; } if (appPool.Properties.Contains("ManagedRuntimeVersion")) {appPool.Properties["ManagedRuntimeVersion"][0] = "v4.0"; } //以下代码在WindowsServer版本为6.0的系统上会出现异常: //无效索引(Exception from HRESULT:0x80070585) //if (appPool.Properties.Contains("AppPoolIdentityType")) //{ // appPool.Properties["AppPoolIdentityType"][0] = "4"; //} if (appPool.Properties.Contains("Enable32BitAppOnWin64")) {appPool.Properties["Enable32BitAppOnWin64"][0] = true; } mitChanges(); return null; } catch (System.Exception ex) { LogToFile.Save(ex, "CreateAppPool"); return ex.Message; } }
将相关代码注释以后,未见对Web应用程序带来任何影响。
java毕业设计网上论坛系统源码和论文,vscode显示上下文,ubuntu做打印,tomcat jdk7,boss网爬虫,php 学习项目,泰安seo怎么优化到首页,虚拟商店网站源码,学校与培训机构模板填lzw