ASP.NET:Web deployment task failed.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.