There are two problems with deployment tonight.
One is a long-standing bug, because I tried DbContext Generator and then deleted it, was prompted:
Please overwrite the replacement token ‘$edmxInputFile$‘ with the actual name of the .edmx file you would like to generate from Model1.tt
The solution is simple, restart Visual Studio.
Then we say the play, the error is described as:
Web 部署任务失败。在远程计算机上处理请求时出错。
Web deployment task failed. An error occurred when the request was processed on the remote computer. Unable to perform the operation. Please contact your server administrator to check authorization and delegation settings.
Knowing that there was an error at the far end, presumably unauthorized, is not authorized to access the problem, so we try to log on to the server to view the log.
In the Event Viewer-application and service log--microsoft Web Deploy we found the clue.
Microsoft.Web.Delegation.DeploymentAuthorizationException: 用户“.\WDeployConfigWriter”无法登录。
It seems to be it. Continue searching to know that the user may not be registered (I am not in this case) and the user login password expires (I am in this case).
The default password policy is that the user needs to change the password the next time they log on , causing the password to expire.
The solution is to keep it out of the way: Computer Management-Local Users and groups-users, do it.
The problem is solved, the body is comfortable.
Original link: http://www.jianshu.com/p/dde6bc359ee4
ASP.NET:Web deployment task failed.