从VS 2015部署时未正确创建Web Deploy 3.6自动备份 [英] Web Deploy 3.6 automatic backup not created properly when deploying from VS 2015

查看:62
本文介绍了从VS 2015部署时未正确创建Web Deploy 3.6自动备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Web Deploy 3.6将Web App从Visual Studio发布到IIS 8.5服务器.我已经在服务器端配置了自动备份(基于这篇文章),但是当我从VS2015发布WebApp时,我的备份仅包含两个文件:archive.xml和system.xml.

I am using Web Deploy 3.6 to publish a WebApp from Visual Studio to an IIS 8.5 server. 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.

如果我直接从IIS服务器发布相同的WebApp,则会按预期创建备份.

If I publish the same WebApp directly from the IIS server, the backup is created as expected.

由于Web Deploy具有一些已知的问题和局限性,因此我检查了由msdeploy自动创建并用于发布我的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.

这是清单文件中的内容:

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组具有读取权限,才能解决我的问题.

Just in case someone is facing the same problem, I had to give read access to the IIS_IUSRS group on the backup folder to solve my problem.

这篇关于从VS 2015部署时未正确创建Web Deploy 3.6自动备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆