简体   繁体   English

从VS 2015部署时未正确创建Web Deploy 3.6自动备份

[英]Web Deploy 3.6 automatic backup not created properly when deploying from VS 2015

I am using Web Deploy 3.6 to publish a WebApp from Visual Studio to an IIS 8.5 server. 我正在使用Web Deploy 3.6将Web应用程序从Visual Studio发布到IIS 8.5服务器。 I have configured automatic backup on the server side (based on this article), but when I publish my WebApp from VS2015, my backup only contain two files: archive.xml and system.xml. 我已经配置在服务器端(基于自动备份文章),但是当我发表我的Web应用程序,从VS2015,我的备份只包含两个文件:archive.xml和System.Xml。

If I publish the same WebApp directly from the IIS server, the backup is created as expected. 如果我直接从IIS服务器发布同一WebApp,则会按预期创建备份。

Because Web Deploy has some known Issues and limitations, I checked that there is no problem with the manifest that is automatically created and used by msdeploy to publish my WebApp. 由于Web Deploy具有某些已知的问题和局限性,因此我检查了由msdeploy自动创建并用于发布我的WebApp的清单是否存在问题。

Here is what is inside my manifest file: 这是清单文件中的内容:

<?xml version="1.0" encoding="utf-8"?>
<sitemanifest>
  <IisApp path="C:\Users\niniel\Documents\Visual Studio 2015\Projects\ContosoUniversity\ContosoUniversity\obj\Debug\Package\PackageTmp" managedRuntimeVersion="v4.0" />
  <setAcl path="C:\Users\niniel\Documents\Visual Studio 2015\Projects\ContosoUniversity\ContosoUniversity\obj\Debug\Package\PackageTmp" setAclResourceType="Directory" />
  <setAcl path="C:\Users\niniel\Documents\Visual Studio 2015\Projects\ContosoUniversity\ContosoUniversity\obj\Debug\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
</sitemanifest>

I tried to publish from another computer, just to be sure that this problem is not related to my computer, I had the same problem. 我尝试从另一台计算机发布,只是为了确保此问题与我的计算机无关,所以我也遇到了同样的问题。

Any help or thought would be appreciated :) 任何帮助或想法将不胜感激:)

万一有人遇到相同的问题,我必须授予对备份文件夹上的IIS_IUSRS组的读取权限,以解决我的问题。

I would setup the backup by extending the WebDeploy package. 我将通过扩展WebDeploy包来设置备份。 This way the server doesn't have to be pre-configured for backups, its just part of the deployment. 这样,就不必为备份配置服务器,它只是部署的一部分。

http://www.dotnetcatch.com/2016/05/19/extending-the-webdeploy-manifest/ http://www.dotnetcatch.com/2016/05/19/extending-the-webdeploy-manifest/

Side note - We stopped taking backups when we started using WebDeploy exclusively for web app deployments. 旁注 -当我们开始仅将WebDeploy用于Web应用程序部署时,我们就停止了备份。 Each WebDeploy package becomes the backup for the next deployment. 每个WebDeploy软件包都将成为下一个部署的备份。 You should evaluate taking additional backups over time and determine if this process continues to be valuable. 您应该评估一段时间后再进行其他备份,并确定此过程是否继续很有价值。 At some point, you can hopefully stop. 在某个时候,您可以希望停止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用VS 2015将ASP.Net Web API部署到远程IIS - Deploying ASP.Net Web API to Remote IIS with VS 2015 VS2015新的Web表单页面创建为空 - VS2015 New web form pages created empty 如何使用VS2015将ASP.NET 5 Web部署到AWS IIS? - How to Web Deploy ASP.NET 5 to AWS IIS using VS2015? 在进行Web发布(Web Deploy)时替换VS项目文件 - Replace VS project files when doing web publishing (Web Deploy) 在VS2012中使用发布Web部署时,如何防止删除文件夹? - How to prevent a folder from being deleted when using Publish Web Deploy in VS2012? 使用Web Deploy部署.NET 4.5 Web应用程序 - Deploying .NET 4.5 web app with Web Deploy 用VS2015创建的ASP.Net核心Web应用程序(.Net Framework)创建了一个看上去很狡猾的项目 - ASP.Net Core Web Application (.Net Framework) created with VS2015 creates a dodgy looking project 如果网站创建为 Visual C# ASP.Net Web 应用程序在 VS2015 中,PageMethods 不起作用 - PageMethods not working if the website is created as a Visual C# ASP.Net Web Application in VS2015 是否可以在VSCode OSX上运行VS2015中创建的ASP.NET Web项目? - Is it possible to run a ASP.NET web project created in VS2015 on VSCode OSX? 从VS2015中的ASP.NET Web项目引用VB.NET类库时,Intellisense损坏 - Intellisense broken when referencing a VB.NET class library from a ASP.NET Web project in VS2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM