0

新しいサーバーにアップグレードしましたが、コンソール アプリケーションが 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 アプリケーションを作成しようとしているときにアクセスが拒否されました

4

1 に答える 1

0

このソリューションは私のために働いた==>

http://blogs.msdn.com/b/jpsanders/archive/2009/05/13/iis-7-adsi-error-system-runtime-interopservices-comexception-0x80005000-unknown-error-0x80005000.aspx?CommentPosted=本当#コメントメッセージ..

アクセス拒否エラーを解決するためにもこれを行う必要があります==>管理者承認モードですべての管理者を実行==>無効..

于 2015-05-26T06:03:03.653 に答える