scw*_*scw 10 msbuild tfs msdeploy microsoft-web-deploy visual-studio-2012
使用Visual Studio 2012,TFS 2010,IIS7
尝试构建/部署时出现以下错误:
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'.
Run Code Online (Sandbox Code Playgroud)
我的tfs服务器上没有VS2012,但是有人将他们的C:\ Program Files(x86)\ MSBuild\Microsoft\VisualStudio\v11.0文件夹复制到tfs服务器,以便在一段时间内修复另一个构建问题.我将相同的文件夹复制到"server1",没有更改错误消息.
它仍然创建构建,只是不部署.
mev*_*son 11
我们能够通过以下步骤解决问题:
希望这可以帮助!
我的密码和下一个构建参数之间没有空格,所以密码在技术上是错误的.
/p:UserName=scw /p:Password=12345/p:VisualStudioVersion=11.0
/p:UserName=scw /p:Password=12345 /p:VisualStudioVersion=11.0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12361 次 |
| 最近记录: |