utilizzando Visual Studio 2012, TFS 2010, IIS7Errore msdeploy ERROR_USER_UNAUTHORIZED: attività di distribuzione Web non riuscita. utilizzando IIS7, TFS2010, VS2012
Ottenere i seguenti errori quando provo ad installare/deploy:
Any CPU | Test
1 error(s), 1 warning(s)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets
(4253): Web deployment task failed. (Connected to the remote computer ("server1") 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.)
*snip warning*
Other Errors and Warnings
2 error(s), 0 warning(s)
Building the projects in this solution one at a time. To enable parallel build, please
add the "/m" switch.
TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual '1'.
- ho verificato esiste il sito in IIS
- ho verificato che ho il nome utente e la password corretti (io sono in grado di accedere al server)
- utente è un amministratore sul server TFS
Non ho VS2012 sul mio server TFS, ma qualcuno ha copiato la cartella C: \ Programmi (x86) \ MSBuild \ Microsoft \ VisualStudio \ v11.0 sul server tfs per risolvere un altro problema di generazione qualche istante prima. Ho copiato la stessa cartella in "server1", non ho modificato il messaggio di errore.
Viene ancora creata la build, ma non viene distribuita.
Suggerirei di spostarti verso la creazione di una pipeline di release e di non eseguire il deployment direttamente da una build. È molto più sicuro ed efficiente utilizzare uno strumento dedicato come Release Management per Visual Studio 2013. –