新しいサーバーにアップグレードしましたが、コンソール アプリケーションが IIS 8.5 (Windows 2012) で仮想ディレクトリを作成しようとしました。
このエラーが発生しています:
[System.Runtime.InteropServices.COMException] {"アクセスが拒否されました。\r\n"} System.Runtime.InteropServices.COMException ErrorCode 0x80070005
アクセスが拒否されました。
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) で System.DirectoryServices.DirectoryEntry.Bind() で System.DirectoryServices.DirectoryEntry.get_IsContainer() で System.DirectoryServices.DirectoryEntries.CheckIsContainer() で System.DirectoryServices.DirectoryEntries.Find (文字列名、文字列 schemaClassName)
すべての権限を付与しようとしましたが、それでも次のようにエラーが発生します:コードから iis アプリケーションを作成しようとしているときにアクセスが拒否されました