移行先サーバーのローカル管理者ではないWindowsユーザーを使用してアプリケーションをリモート展開しようとすると、NTLM認証を使用してMsDeployから不正なエラーが発生します。すべてのプロバイダがチェックされた状態で、宛先ボックスの管理サービス委任にセットアップルールがあります。このルールの下で、私は2人のユーザに許可を許可しています( '*'とリモートユーザのWindowsユーザ)。さらに、私は、Windowsのユーザーに、私が展開しようとしているサイトのアクセス許可を与えました。 Windowsユーザーを宛先ボックスのローカル管理者にして、[管理者がルールをバイパスできるようにする]を設定すると、展開が正しく機能します。正確な原因のWebDeploy(401)不正なエラー
Web deployment task failed.(Remote agent (URL http://xxxxxxxx/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.) Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details: Remote agent (URL http://xxxxx/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer. An unsupported response was received. The response header 'MSDeploy.Response' was 'V1' but 'v1' was expected. The remote server returned an error: (401) Unauthorized. in Microsoft.Web.Publishing.targets(3588, 5)
ここでまったく同じ問題 –
他人に注意:エラーメッセージに 'v1'エラーが含まれていない場合は、別の原因です。私の場合は、UAC関連のものでしたが、ここで説明し、修正しました。http://networkprogramming.wordpress.com/2010/10/29/401-not-authorized-for-msdeploy%E2%80%8F- msdeployagentservice/ –
管理共有を修正するレジストリハックでもこれが修正され、UACトークンの問題のようです。このMS修正プログラムを使用します。 https://support.microsoft.com/en-gb/kb/947232 –