System.Runtime.InteropServices.COMException: 拒绝访问.
2008-08-29 17:33
357 查看
最近在做IIS管理软件的时候,在连接ADIL的时候老是出错,研究了半天没找出原因。
因为先前一直用web来测试,一直没注意到权限问题,今天在msdn上刚刚找到原因,原来是IIS操作权限的问题,问题找到了,也好解决了。
打开web.config
然后在system.web节点中添加一属性 <identity impersonate="true" />
OK
因为先前一直用web来测试,一直没注意到权限问题,今天在msdn上刚刚找到原因,原来是IIS操作权限的问题,问题找到了,也好解决了。
打开web.config
然后在system.web节点中添加一属性 <identity impersonate="true" />
OK
相关文章推荐
- System.Runtime.InteropServices.COMException: 拒绝访问.
- System.Runtime.InteropServices.COMException: 拒绝
- System.Runtime.InteropServices.COMException (0x800A03EC): 无法访问文件
- 异常详细信息:System.Runtime.InteropServices.COMException: 此事务已明地或暗地被确认或终止
- Visual Studio 2008 System.Runtime.InteropServices.COMException
- Visual Studio 2008项目System.Runtime.InteropServices.COMException解决方法
- 完美解决“换另一台电脑上用VS2008继续开发web项目时出现“System.Runtime.InteropServices.COMException”,然后是加载不了项目。”
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误(抄来用来学习的)
- System.Runtime.InteropServices.COMException: Unknown error (0x80005000) on win7 box
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误
- System.Runtime.InteropServices.COMException The Product License has not been initialized. ESRI GeoDatabase
- Asp.Net操作Word内容“System.Runtime.InteropServices.COMException: 命令失败”的解决方法
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误
- 文档管理系统 之一 doc、xls、ppt文档转换成html及System.Runtime.InteropServices.COMException (0x80004005): 360的问题
- System.Runtime.InteropServices.COMException: 内存不足,请现在保存文档。 IIS 7
- 关于System.Runtime.InteropServices.COMException (0x80070006): 句柄无效的问题
- System.Runtime.InteropServices.COMException(0x8004020F): The server rejected one or more recipient addresses.
- System.Runtime.InteropServices.COMException (0x80040154)错误
- System.Runtime.InteropServices.COMException: 检索 COM 类工厂中 CLSID 为 {0002E510-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154
- “System.Runtime.InteropServices.COMException”/ 其他信息: ClassFactory 无法供应请求的类 (异常来自 HRESULT:0x80040111