ASP.NET Core WebプロジェクトをIISに公開しようとしています)のVisual Studio 2017を使用して、非管理者アカウントを使用して、私は配備に次のエラーがあります。公開するときに、まったく同じ設定が機能しVisual Studio 2017ユーザーが管理者でない場合、同じユーザーが同じWebサーバー上のVS2015 Web公開に使用できるうちにWeb公開が失敗する
Publish method = Web deploy
Server = servername:8172/msdeploy.axd
Site name = Default Web Site/CoreWithAngularTestApi
User name = username
Password = ******
:
Starting Web deployment task from source: manifest(D:\Projects\Own\AspNetCore\CoreWithAngularTrial\CoreWithAngularTrialApi\obj\Debug\netcoreapp1.1\PubTmp\CoreWithAngularTrialApi.SourceManifest.xml) to Destination: auto(). C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\PublishTargets\Microsoft.NET.Sdk.Publish.MSDeploy.targets(134,5): Error : Web deployment task failed. (Connected to the remote computer ("...") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED .) 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: Connected to the remote computer ("...") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED . The remote server returned an error: (401) Unauthorized. Publish failed to deploy.
は、私が展開するため、以下の構成を有しています別のアプリケーションイオン(ASP.NET MVC 5)を同じWebサイト(既定のWebサイト)の下に置く必要があります。そのため、公開構成はリモートサーバー上で正しいように見えます。ローカル管理者は、Visual Studioで公開プロセスをブロック解除username
作る
はまた、出版の設定ファイル(* .pubxml)が実質的に同一です。リモートサーバー上の
イベントビューアには、次のエラーをキャッチ:
IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED
Only Windows Administrators are allowed to connect using a server connection. Other users should use the 'Connect To Site or Application' task to be able to connect.
Process:WMSvc User=username
質問:私は2017年のVisual Studioから非投与Webパブリッシングを有効にするにはどうすればよいですか?