我在网站程序里写了这么二行DirectoryEntry Service = new DirectoryEntry("IIS://localhost/w3svc");
IEnumerator ie = Service.Children.GetEnumerator();结果我去网站运行就出现如下错误:
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.COMException (0x80070005): 拒绝访问。
我该怎么解决
IEnumerator ie = Service.Children.GetEnumerator();结果我去网站运行就出现如下错误:
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.COMException (0x80070005): 拒绝访问。
我该怎么解决
http://support.microsoft.com/kb/306158/zh-cnhttp://support.microsoft.com/kb/306158/en-us
可以向上面的一些方法。。把程序主目录的所在文件夹给ASPNET用户权限。。