我正在尝试确保将我的应用程序部署到使用Web Deploy时已存在的特定应用程序池.在通过IIS管理器安装应用程序时,或者通过从Web包通过命令行安装时更改.setparameters.xml文件中的值,应由用户使用GUI配置应用程序池.将以下参数条目插入我的parameters.xml中并不起作用.
<parameter name="Application Pool" description="Application Pool for this site" tags="iisApp" defaultValue="ASP.NET v4.0">
<parameterEntry kind="providerPath" scope="IisApp" match="applicationPool" />
</parameter>
Run Code Online (Sandbox Code Playgroud)
有没有直接的方法来实现这一目标?如果没有,我将如何完成这项工作?
我有一个域名的服务器.当我使用域用户从Visual Studio发布Web应用程序时,一切正常.但是当我尝试使用本地计算机用户(不是域的一部分)发布时,我得到了ERROR_USER_NOT_ADMIN.两个用户都在Administrators组中.我尝试将用户指定为用户名,.\ username和machinename\username但它不起作用.为了能够与本地机器用户一起发布,还有什么我应该做的吗?
使用Visual Studio 2012,TFS 2010,IIS7
尝试构建/部署时出现以下错误:
Any CPU | Test
1 error(s), 1 warning(s)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets
(4253): Web deployment task failed. (Connected to the remote computer ("server1") 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.)
*snip warning*
Other Errors and Warnings …Run Code Online (Sandbox Code Playgroud) msbuild tfs msdeploy microsoft-web-deploy visual-studio-2012
当我在visual studio中单击发布ASP.NET 5项目时,我只能选择3个目标:Microsoft Azure Web Apps,
Import,
File System
ASP.NET 4.6项目中没有Web Deploy或Web Deploy包.
如何在ASP.NET 5项目上执行Web Deploy?
visual-studio webdeploy microsoft-web-deploy visual-studio-2015 asp.net-core
我已经设法按照本指南设置Web部署自动备份,这非常有用.但是,在我的网站中,我有一个相对于根的文件夹,/uploads/其中包含所有用户上传的图像,这些图像可能非常大.
备份快照也获取了该文件夹的副本,这导致了大量备份.是否可以从备份中排除某些文件夹?
我正在尝试.NET 4使用MSBuildWeb Deploy 构建和部署项目,并且TeamCity我在本地开发机器上运行TeamCity实例时工作正常(最终),但是当我尝试使用相同设置设置新的TeamCity实例时得到以下错误:
\Microsoft.Common.targets(2249, 9): error MSB3086: Task could not find "sgen.exe"
using the SdkToolsPath
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\" or the
registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A".
Make sure the SdkToolsPath is set and the tool exists in the correct processor
specific location under the SdkToolsPath and that the Microsoft Windows SDK
is installed
Run Code Online (Sandbox Code Playgroud)
我正在运行Windows Server 2008,并安装了.NET 4,包括(我相信)MSBuild 4.我也安装了Windows SDK 7.1,因为其他线程建议这可能是问题,但仍然没有运气.任何想法或建议将不胜感激.
谢谢
.net msbuild teamcity windows-server-2008 microsoft-web-deploy
我正在将多个.Net项目部署到不同的服务器上.为此,我的团队正在使用TFS构建,然后从构建模板调用ps1脚本,该脚本使用msdeploy推送到所有不同的服务器.这一切都非常有事,不,我现在不能自由地转向不同的东西.这个过程已经工作了几个月而没有任何问题.
今天,部署连续几次失败并出现一些不同的错误.仅这一点让我感到困惑(也许并不相关),但现在我得到的是:
在远程计算机上处理请求时发生错误."C:\ Builds\SomeDirectory\obj\Debug\Package\PackageTmp\AReferencedProject.dll"的流数据尚不可用.
当我的脚本运行msdeploy时会发生此错误.这个dll由Windows服务使用,但服务已停止(据我所知 - 服务停止没有丢失任何错误)并且dll不是"只读".dll存在于正在构建/部署的计算机上以及正在部署到的计算机上.
我发现如果从正在部署的服务器上删除"不可用"的dll,我可以避免此错误,但问题会在每次后续部署时发生,除非我在每次部署之前手动删除此dll.
我已经看到了这个问题,但我没有推动Azure,只是推向Windows Server 2008.有谁知道为什么Microsoft Web部署(msdeploy)会抛出此错误?
.net msdeploy windows-server-2008 windows-server microsoft-web-deploy
在Visual Studio中以尽可能少的点击次数部署到多个服务器的最简单方法是什么?我们正在使用Web部署,而不是FTP或文件系统,如果这有用的话.
我在多台计算机,我的工作和家用电脑上的网站上工作.源代码保存在git存储库下.我使用Web Deploy将网站发布到公共服务器上的IIS.一切正常,我可以从两台计算机上发布它的工作原理.
问题是,当我从一台PC部署,然后去其他的,得到的git的最新变化,让更多的变化,然后再部署,它重新部署整个网站,而不是只有已更改的文件 - 这是如果我从本段第一句中取出"然后转到另一个,从git获取最新的更改"步骤会发生什么.
我能做些什么,哪些文件可我包括我的git仓库(我排除所有packages,bin和obj目录),或者我可以执行哪些额外的配置,来解决这个问题?
我正在尝试使用以下msdeploy命令部署我的应用程序:
MSDeploy.exe -source:contentPath="C:\Users\myUser\Documents\ui\dist" -dest:contentPath='c:/inetpub/wwwroot/dist',computerName="https://ec2-xx-xxx-xx-xx.ap-northeast-1.compute.amazonaws.com:8172/MSDeploy.axd?site=Default Web Site",username="administrator",password="XXXXXXXXX",authtype="Basic",includeAcls="False" -verb:sync -allowUntrusted
Run Code Online (Sandbox Code Playgroud)
收到以下错误:
Working...
Info: Using ID '01657062-cece-4713-8dc6-585537b265fd' for connections to the rem
ote server.
>> Error Code: ERROR_DESTINATION_NOT_REACHABLE
>> More Information: Could not connect to the remote computer ("ec2-52-207-222-6
5.compute-1.amazonaws.com"). On the remote computer, make sure that Web Deploy i
s installed and that the required process ("Web Management Service") is started.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION
_NOT_REACHABLE.
>> Error: Unable to connect to the remote server
>> Error: A connection attempt failed because …Run Code Online (Sandbox Code Playgroud)