MS 部署与部署IIS6 - 401 未经授权的错误
我正在尝试让 TFS 在使用 IIS6 的 Win2k3 服务器上自动发布(目前不打包)我的 Web 应用程序。远程代理服务已启动。
构建失败,给出了 401。我现在尝试从构建服务器本身手动运行 cmd 行(以防万一 MSBUILD 对构建定义上设置的参数做了一些奇怪的事情),它给了我同样的事情。这是我尝试运行的命令:
msdeploy.exe
-source:contentPath='C:\Builds\1\Test\DummyTFSWebApp Submission Build\Binaries\_PublishedWebsites\DummyTFSWebApp'
-dest:contentPath='Default Web Site',
computerName='http://ipm-vm-dev/MSDEPLOYAGENTSERVICE',
userName='Domain\AdminUser',
password='Password',
authType='basic',
includeAcls='False'
-verb:sync -allowuntrusted
但就像构建报告一样,它给了我:
I不明白为什么!用户名 &提供的密码是目标计算机上的管理员。我什至已经创建了构建服务器机器和管理员(抓住救命稻草),并且我已经将目标文件夹设置为具有写入权限的每个人的共享。
感谢帮助,因为这真的让我很沮丧!
I'm trying to get TFS to automatically publish (not package at the moment) my web app on a build to a Win2k3 server with IIS6. The remote agent service is started.
The build fails giving me a 401. I'm now trying to manually run a cmd line from the build server itself (just incase the MSBUILD was doing something strange with the params set on the build definition) and it's giving me the same thing. Here is the command I'm trying to run:
msdeploy.exe
-source:contentPath='C:\Builds\1\Test\DummyTFSWebApp Submission Build\Binaries\_PublishedWebsites\DummyTFSWebApp'
-dest:contentPath='Default Web Site',
computerName='http://ipm-vm-dev/MSDEPLOYAGENTSERVICE',
userName='Domain\AdminUser',
password='Password',
authType='basic',
includeAcls='False'
-verb:sync -allowuntrusted
But like the build report, it's giving me:
I can't understand why! The username & password provided is an Administrator on the destination machine. I've even made the build server machine and admin (clutching at straws), and I've made the destination folder a share for everyone with write permission.
Help appreciated as this is really frustrating me!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我更改了 authType='NTLM' 现在它可以工作了!
I changed the authType='NTLM' and it now works!