我试图通过Web部署将我的计算机上的网站发布到IIS Web服务器.
我有3台服务器.所有服务器都安装了相同的东西(Webdeploy等)并启动了服务(Web部署代理服务和Web管理服务).
在第一台服务器上,我没有连接问题.但是当我在Visual Studio中"验证连接"到IIS时,其他两个服务器给我一些错误.当我查看IIS服务器上的日志时,我的访问监听了html代码200(ok).
在远程计算机上处理请求时出错.文件名:MACHINE/WEBROOT
错误:无法读取配置节'system.webServer/management/delegation',因为它缺少架构
我真的不知道什么可以解决这个问题,希望你能帮助我.
我已经使用Visual Studio 2012 RC将我的Lightswitch应用程序发布到我的localhost(Win 7,SQL 2008 R2,IIS 7.5)就好了.现在我正在尝试发布到远程服务器(Win 2008 R2,SQL 2008 R2,IIS 7.5),我遇到了麻烦.
当我尝试发布时,收到以下错误:
Web部署任务失败.(无法使用指定的进程("Web部署代理服务")连接到远程计算机("###.###.###.###"),因为服务器没有响应.请确保进程("Web部署代理服务")在远程计算机上启动.有关详细信息,请访问:http: //go.microsoft.com/fwlink/?LinkId = 221672 #ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)
我已经检查了"了解更多"链接建议查看的每个内容.我已经验证MsDepSvc和WMSVC都在运行,端口80和8172都响应端口扫描.在发布设置中,对于服务URL,我使用远程计算机的IP地址(http://###.###.#######).对于用户名,我使用的是DomainName\Administrator,这是我使用RDP登录时使用的.
我在MSDN论坛上发布了一个成员建议我将Web部署工具从V2.0回滚到V1.1.我已经完成了,但它没有改变任何东西.
在回答这个SO问题的建议后,我尝试msdeploy从命令行运行.
从服务器上的命令行我得到:
C:\ Program Files\IIS\Microsoft Web Deploy> msdeploy -verb:dump -source:dirpath = c:\ temp,computername = http:// SeverName:80/msdeployagentservice,username = Administrator,password = XXXX -verbose -debug详细:使用ID"c12c3392-2290-44b7-9434-dbd0ff5f9385"连接到远程服务器.详细:对远程代理URL'http:// ServerName:80/msdeployagentservice '进行预身份验证,作为"管理员".MSDeploy.dirPath(name = MSDeploy.dirPath)c:\ temp(name = dirPath)(keyAttribute = c:\ temp)(linkName = Child1)
从dev机器上的命令行我得到:
C:\ Program Files\IIS\Microsoft Web Deploy V3> msdeploy -verb:dump …
我一直在尝试在运行IIS 8的Windows 2012服务器上设置Web Deploy.我已经使用Platform安装程序安装了Web Deploy,但是当我右键单击我的网站并选择部署时,没有任何选项可供Configure Web Deploy Publishing各种文档建议.

在了解Web Deploy时,我遇到了一些关于http:// +:80和http://*:80的netsh.exe命令.那是什么意思?
我正在尝试msdeploy安装和设置.我已经在Web服务器上安装了远程服务,但我的所有测试都给了我一个401 unauthorised error.服务器是Windows 2008 R2.
我正在测试一个非常简单的msdeploy命令:
msdeploy -verb:dump -source:contentPath=c:\inetpub\wwwroot\MyApp,computerName=<IP HERE>,userName=Domain\msdeploy,password=MyPassword
Run Code Online (Sandbox Code Playgroud)
而错误:
Error: Object of type 'contentPath' and path 'c:\inetpub\wwwroot\MonApp' cannot be created.
Error: Remote agent (URL http://<IP HERE>/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
Error: An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
Run Code Online (Sandbox Code Playgroud)
我创建了一个名为msdeploy的用户,并将其添加到服务器上的本地管理员组.
我检查过: …
iis visual-studio-2010 msdeploy msdeployserviceagent webdeploy
是否可以将文件夹(普通Html文件)的内容部署到远程IIS6/7服务器上的特定Web应用程序?
以下命令不会出错,但也不会将任何文件发布到远程服务器:
msdeploy.exe -verb:sync -source:dirPath="c:\myHtmlFiles" -dest:auto,ComputerName="http://deploy.mycompany.co.uk/msdeploy?site=TestSite",includeAcls="false",username="administrator",password="myPassword" -enableRule:DoNotDeleteRule -disableLink:AppPoolExtension -disableLink:ContentExtension -allowUntrusted
Run Code Online (Sandbox Code Playgroud)
注意:
我正在尝试将我的解决方案中的一个Web项目部署到服务器.我在TeamCity上使用msbuild就像这样:
msbuild MySolution.sln /t:WebSite:Rebuild /p:DeployOnBuild=True /p:PublishProfile=Prod ...
Run Code Online (Sandbox Code Playgroud)
但是,当我运行它时,msbuild仍然尝试构建我的WebService项目,即使我的WebSite项目不依赖它(但它确实依赖于Services项目也在解决方案中).如何只发布一个项目,又称公正WebSite?
我也尝试使用构建项目文件
msbuild WebSite/WebSite.csproj /p:DeployOnBuild=True ...
Run Code Online (Sandbox Code Playgroud)
但它然后抱怨它无法恢复包:
[07:47:17]WebSite\WebSite.csproj.teamcity: Build target: Build
[07:47:17][WebSite\WebSite.csproj.teamcity] RestorePackages
[07:47:17][RestorePackages] Exec
[07:47:17][Exec] C:\TeamCity\buildAgent\work\cab8a3d752df3a51\.nuget\NuGet.targets(90, 15): error MSB4064: The "LogStandardErrorAsError" parameter is not supported by the "Exec" task. Verify the parameter exists on the task, and it is a settable public instance property.
[07:47:17][Exec] C:\TeamCity\buildAgent\work\cab8a3d752df3a51\.nuget\NuGet.targets(89, 9): error MSB4063: The "Exec" task could not be initialized with its input parameters.
[07:47:17][WebSite\WebSite.csproj.teamcity] Project WebSite\WebSite.csproj.teamcity failed. …Run Code Online (Sandbox Code Playgroud) 我有一个使用Web Deploy 3.5配置的IIS 7.5,以便右侧操作窗格中的"导入/导出应用程序"功能显示并正常运行.不幸的是,我不得不删除并重新安装IIS,现在导入/导出功能未显示在"操作"窗格中,就像未安装Web部署一样.
我尝试使用http://www.iis.net/downloads/microsoft/web-deploy上的自动安装程序重新安装,但是当我运行它时,安装程序似乎认为Web Deploy已经安装并且不提供给我重新安装/卸载选项.
如何强制重新安装WebDeploy或强制IIS识别仍然安装了Web Deploy?
有几次复制粘贴*.cshtml文件时,Visual Studio因某些原因将Build Action这些文件设置为"None":

在本地工作时无法检测到,因为文件存在.但是,当您通过WebDeploy进行部署时,Build Action上标记为"None"的文件不会打包.结果我在服务器上得到了非工作应用程序.
问题:有没有办法自动检测此类事件并防止?
我使用Visual Studio来创建发布配置文件.它将该信息保存到MyProject.Publish.xml,它位于项目目录的根目录中.
我希望在我的CI服务器上执行的MSBuild任务将该文件用作其基本设置.理想情况下,如果我可以通过命令行参数覆盖属性,那就会摇滚.
这可能吗?如果是这样,语法是什么?
例如,我正在寻找类似的东西:
MSBuild MyProject.csproj /P:UsePublishProfile=True /P:UserName=deployUser /P:Password=MyPassword
Run Code Online (Sandbox Code Playgroud)