相关文章推荐
从未表白的电池  ·  使用 部署 MLflow 模型 ...·  4 月前    · 
无邪的木瓜  ·  《想见你》会出续集吗?3个角色结局没交代清楚 ...·  1 年前    · 
伤情的凉茶  ·  mysql with rollup ...·  1 年前    · 
爱看球的杨桃  ·  seo淘宝网网站架构图(淘宝网的业务系统) ...·  1 年前    · 
彷徨的铁链  ·  java使用HttpClient ...·  2 年前    · 
Code  ›  DirectoryEntry配置IIS7出现ADSI Error:未知错误(0x80005000)开发者社区
iis7
https://cloud.tencent.com/developer/article/1051595?areaId=106001
飞翔的领带
2 年前
作者头像
hbbliyong
0 篇文章

DirectoryEntry配置IIS7出现ADSI Error:未知错误(0x80005000)

前往专栏
腾讯云
开发者社区
文档 意见反馈 控制台
首页
学习
活动
专区
工具
TVP
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP
返回腾讯云官网
社区首页 > 专栏 > hbbliyong > DirectoryEntry配置IIS7出现ADSI Error:未知错误(0x80005000)

DirectoryEntry配置IIS7出现ADSI Error:未知错误(0x80005000)

作者头像
hbbliyong
发布 于 2018-03-06 10:40:51
1.9K 0
发布 于 2018-03-06 10:40:51
举报

一、错误情况

环境:win7+iis7.0

DirectoryEntry配置IIS7出现如下错误

或者是

下面一段代码在IIS6.0下运转正常,但IIS7.0下运转会出错:

System.DirectoryServices.DirectoryEntry iisServer; iisServer = new System.DirectoryServices.DirectoryEntry("IIS://localhost/W3SVC/1"); System.DirectoryServices.DirectoryEntry rootFolder = iisServer.Children.Find("Root","IIsWebVirtualDir");//此处抛出异常

异常内容如下:

[System.Runtime.InteropServices.COMException] {"Unknown error (0x80005000)"}  System.Runtime.InteropServices.COMException

Unknown error (0x80005000)    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)    at System.DirectoryServices.DirectoryEntry.Bind()    at System.DirectoryServices.DirectoryEntry.get_IsContainer()    at System.DirectoryServices.DirectoryEntries.CheckIsContainer()

 
推荐文章
从未表白的电池  ·  使用 部署 MLflow 模型 ModelBuilder - Amazon SageMaker AI
4 月前
无邪的木瓜  ·  《想见你》会出续集吗?3个角色结局没交代清楚,王诠胜可能醒来_腾讯新闻
1 年前
伤情的凉茶  ·  mysql with rollup 汇总列添加别名 - CSDN文库
1 年前
爱看球的杨桃  ·  seo淘宝网网站架构图(淘宝网的业务系统) - 知乎
1 年前
彷徨的铁链  ·  java使用HttpClient post模拟表单请求返回501-CSDN博客
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号