gpt4 book ai didi

webdeploy - 奇怪的 Web 部署访问问题

转载 作者:行者123 更新时间:2023-12-03 08:35:47 25 4
gpt4 key购买 nike

我在连接到服务器时遇到了一个奇怪的问题。

服务器的日志如下:

2013-05-21 11:18:24 [IP ADDRESS] HEAD /msdeploy.axd site=[SITE NAME] 8172 administrator [MY IP] - 401 1 1326 214

我正在使用管理员帐户,所以我不明白为什么它不允许访问!

我在 Server 2008R2 x86 上使用 VS2012 和 Web Deploy 3.0。

更新

使用命令时 msdeploy.exe -verb:dump -source:iisApp=<sitename>,username=administrator,password=<urpassword>,authtype=‌​basic,computername=https://<yourserver>:8172/msdeploy.axd?Site=<sitename> -authtype=basic正如@ShaikhOwais 所建议的,我收到以下错误:

Error Code: ERROR_USER_UNAUTHORIZED More Information: Connected to the remote computer ("[COMPUTER NAME]") 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.


  • “确保您使用的是正确的用户名和密码” - 是的。
  • “您要连接的站点存在”- 是的
  • “凭据代表有权访问该站点的用户”- 它是管理员...
  • 最佳答案

    如上面的评论中所述,您需要使用管理员用户所属的域来限定用户名。

    因此,您的脚本应该是:

     msdeploy.exe -verb:dump -source:iisApp=<sitename>,username=
    <DOMAIN>\administrator,password=<urpassword>,authtype=‌​
    basic,computername=https://<yourserver>:8172/msdeploy.axd?Site=<sitename>
    -authtype=basic

    关于webdeploy - 奇怪的 Web 部署访问问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16669018/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com