asp.net – 部署在Visual Studio中正常运行,无法使用MSDeploy
发布时间:2020-12-16 09:41:07 所属栏目:asp.Net 来源:网络整理
导读:我有一个Web项目,我希望它使用MSDeploy将其部署到临时环境. 从Visual Studio发布一切正常使用这些设置: 服务器:mystaging.com 站点名称:项目暂存(我删除了默认网站,这是我的暂存IIS中唯一的站点) 用户名:管理员 密码:SomePasswordHere 目的地:mystagin
我有一个Web项目,我希望它使用MSDeploy将其部署到临时环境.
从Visual Studio发布一切正常使用这些设置: >站点名称:项目暂存(我删除了默认网站,这是我的暂存IIS中唯一的站点) (mystaging.com是一个公共站点 – 显然不是这个) 部署从Visual Studio完美运行. 从MSDeploy尝试相同的事情,如: -verb:sync -allowUntrusted -source:contentPath="C:Users...objStagingPackagePackageTmp" -dest:contentpath='C:inetpubwwwrootproject-staging' includeAcls='False',ComputerName=https://mystaging.com:8172/msdeploy.axd?site=project-staging,UserName=Administrator,Password=SomePasswordHere,AuthType=Basic 失败了: Error Code: ERROR_USER_UNAUTHORIZED More Information: Connected to the remote computer ("mystaging.com") 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. Error: The remote server returned an error: (401) Unauthorized. Error count: 1. Process exited with code -1 我已经尝试了一切(提升权限,让其他用户等等)并没有任何效果. 有人可以给我一个如何解决这个问题的提示,并让部署也可以从MSDeploy开始工作吗? 解决方法
您是否有权访问目标部署服务器以分析应用程序,安全性和Web服务器日志?钻研这些,搜索上次失败的部署尝试的日期和时间可能会更多地指示出现了什么问题.
编辑:纠正错字 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net使用H5新特性实现异步上传的示例
- asp.net-mvc – 部分视图中的Razor部分包含
- asp.net – 正则表达式匹配本月的前28天
- asp.net – 从SqlMembershipProvider迁移到自定义提供程序
- asp.net – 从ASP .Net下载文件时,文本文件会附加HTML内容
- ASP.Net相当于PHP的file_get_contents(‘php:// input’);
- asp.net-mvc-3 – 带抽象类的mvc3 razor editortemplate
- asp.net – 无法打开登录请求的数据库.登录失败.用户登录失
- asp.net-mvc-4 – ASP.Net MVC 4和WebSecurity – 通过电子
- asp.net-mvc-3 – 跨域的SignalR
推荐文章
站长推荐
- asp.net-mvc – asp.net MVC扩展DataAnnotions
- .net – 在没有区域的控制器中创建子文件夹
- asp.net“记住我”的cookie
- asp.net-mvc – MVC DateTime文本框格式化问题
- asp.net – 如何在Web应用程序中检测手机
- 在IIS / ASP.Net中的.NET 1.1应用程序中创建.NET
- 【转】通俗易懂,什么是.NET?什么是.NET Framewo
- Asp.net Webservice – 使用jquery AJAX安全地调
- asp.net-mvc – MVC最后一次在向用户呈现之前更改
- asp.net-mvc – SignalR 2依赖注入与Ninject
热点阅读