访问被拒绝错误当我尝试使用控制台应用程序添加新的虚拟目录时
Access Denied Error When i try to add New Virtual Directory using Console Application
我已升级到新服务器,我的控制台应用程序尝试在 IIS 8.5 (Windows 2012) 中创建虚拟目录。
我收到这个错误:
[System.Runtime.InteropServices.COMException] {"Access is denied.\r\n"} System.Runtime.InteropServices.COMException
ErrorCode 0x80070005
Access is denied.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.CheckIsContainer()
at System.DirectoryServices.DirectoryEntries.Find(String name, String schemaClassName)
我尝试授予所有权限,但仍然出现错误:Getting access denied while trying to create iis application from code
这个解决方案对我有用 ==>
我也必须这样做来解决访问被拒绝的错误
==> 运行 所有管理员处于管理员批准模式 ==> 已禁用 ..
我已升级到新服务器,我的控制台应用程序尝试在 IIS 8.5 (Windows 2012) 中创建虚拟目录。
我收到这个错误:
[System.Runtime.InteropServices.COMException] {"Access is denied.\r\n"} System.Runtime.InteropServices.COMException ErrorCode 0x80070005
Access is denied.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_IsContainer() at System.DirectoryServices.DirectoryEntries.CheckIsContainer() at System.DirectoryServices.DirectoryEntries.Find(String name, String schemaClassName)
我尝试授予所有权限,但仍然出现错误:Getting access denied while trying to create iis application from code
这个解决方案对我有用 ==>
我也必须这样做来解决访问被拒绝的错误 ==> 运行 所有管理员处于管理员批准模式 ==> 已禁用 ..