web deploy 部署到远程服务器(win server 2008 r2) 遇到的问题。。。。
2015-07-14 00:01
696 查看
和他遇到的情况一样,最后也解决了 http://www.cnblogs.com/brucejia/archive/2012/07/30/2615416.html
安装的前提是先看下这里: http://www.cr173.com/soft/25218.html
友情提示下:
WebDeploy的安全访问机制和访问接口都依赖于IIS的“管理服务”组件,所以要使用WebDeploy必须先安装IIS的“管理服务”。为此,首先打开“服务器管理器”添加角色服务,整个安装过程非常简单不再复述,可参考下图:
实际上 因为是远程, 默认 没有开启 允许远程ip访问,解决方法,打开iis>> 双击主导航>>出现一个 Management Service(or 服务管理器),打开它后, 允许 ip访问即可, 至此403错误解决
紧接着 又出404错误。。。,因为当时安装web deploy的时候,选择了 默认的推荐的方式(这种方式 没有 http handler相关的处理,所以404),于是 重新安装 web deploy(选择全部安装),至此问题解决
解决后又发现个问题, 就是 有些文件 我不想发布至服务器,我想跳过,这时候,只需要在pubxml文件中 增加这些即可
黄色背景的是关键的两行
各种错误包括但不限于:
Could not connect to the destination computer ("xxxx") using the specified process ("The Web Management Service") because the server did not respond. Make sure that the process ("The Web Management Service") is started on the destination computer.
The remote server returned an error: (403) Forbidden.
404 Not Found (actually 404.7 in log file)
参考资料:
http://learn.iis.net/page.aspx/1182/troubleshooting-web-deploy-problems-with-visual-studio/
http://support.microsoft.com/kb/943891
http://blog.scnetstudio.com/post/2011/01/08/How-to-Configure-Windows-Server-2008-R2-to-support-Web-Deploy-(for-Web-Matrix).aspx
安装的前提是先看下这里: http://www.cr173.com/soft/25218.html
友情提示下:
WebDeploy的安全访问机制和访问接口都依赖于IIS的“管理服务”组件,所以要使用WebDeploy必须先安装IIS的“管理服务”。为此,首先打开“服务器管理器”添加角色服务,整个安装过程非常简单不再复述,可参考下图:
实际上 因为是远程, 默认 没有开启 允许远程ip访问,解决方法,打开iis>> 双击主导航>>出现一个 Management Service(or 服务管理器),打开它后, 允许 ip访问即可, 至此403错误解决
紧接着 又出404错误。。。,因为当时安装web deploy的时候,选择了 默认的推荐的方式(这种方式 没有 http handler相关的处理,所以404),于是 重新安装 web deploy(选择全部安装),至此问题解决
解决后又发现个问题, 就是 有些文件 我不想发布至服务器,我想跳过,这时候,只需要在pubxml文件中 增加这些即可
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>MSDeploy</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform> <SiteUrlToLaunchAfterPublish /> <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> <ExcludeApp_Data>True</ExcludeApp_Data> <ExcludeFilesFromDeployment>Web.config;ImageServer.config</ExcludeFilesFromDeployment> <ExcludeFoldersFromDeployment>Folder1;Folder2</ExcludeFoldersFromDeployment>
黄色背景的是关键的两行
各种错误包括但不限于:
Could not connect to the destination computer ("xxxx") using the specified process ("The Web Management Service") because the server did not respond. Make sure that the process ("The Web Management Service") is started on the destination computer.
The remote server returned an error: (403) Forbidden.
404 Not Found (actually 404.7 in log file)
参考资料:
http://learn.iis.net/page.aspx/1182/troubleshooting-web-deploy-problems-with-visual-studio/
http://support.microsoft.com/kb/943891
http://blog.scnetstudio.com/post/2011/01/08/How-to-Configure-Windows-Server-2008-R2-to-support-Web-Deploy-(for-Web-Matrix).aspx
相关文章推荐
- 学游戏开发,就是这么牛!
- 三伏天要如何防中暑
- ubutun14伪分布安装hadoop-2.6.0
- JSONArray的合并
- python 安装MySQLdb模块
- cookie生命周期及路径问题
- js测试网络连通情况
- Android中View的绘制过程 onMeasure方法简述 附有自定义View例子
- java编码规范
- 【OM】 如何保持进程挂了自动重启?
- Java培训-IO流
- Java培训-集合
- C++对C的扩充
- Spring 简单计划任务设置
- java.lang.VerifyError错误
- 设计模式-原型模式Prototype
- 解密京东618技术:重构多中心交易平台 11000个Docker支撑
- THINK PHP 2.2 _STORAGE_WRITE_ERROR_ 问题解决方案
- 易提送水
- 评注《程序员的困境》