Error: Web deployment task failed. .. User_UNAUTHORIZED - Provider Hosted App

During development of provider hosted app, while deployment I was greeted with 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:

After some research came to know need to download the Publish Profile from site and attached new publish profile, helps me to solve this issue.

It was due to changes in site happens are not detected in old publish profile, which leads to this error.

Hope this fix will save you time!


  1. Web Design Cochin for their particular application. Company uses an application registry in SimpleDB and naming conventions to associate multiple cloud objects with a single application.Thanks.....


Post a Comment

Popular posts from this blog

Search Query by ContentType name issue

Search Result Webpart,Filter result If QueryString is present in URL

SharePoint 2013 List CRUD operation using Angular and REST API