在构建Web Deploy包时,“redirection.config”的这个模糊错误是什么? [英] What is this vague error with 'redirection.config' while building a Web Deploy package?

查看:491
本文介绍了在构建Web Deploy包时,“redirection.config”的这个模糊错误是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过msbuild在新机器上构建一个Web Deploy包,但它无法正常工作。它在其他机器上构建良好,但在这里我得到以下模糊错误:

I'm trying to build a Web Deploy package via msbuild on a new machine and it's not working. It builds fine on other machines, but here I get the following vague error:

...\Microsoft.Web.Publishing.targets(2767,5): error : Filename: redirection.config
...\Microsoft.Web.Publishing.targets(2767,5): error : Error: Cannot read configuration file
...\Microsoft.Web.Publishing.targets(2767,5): error : 
...\Microsoft.Web.Publishing.targets(2767,5): error : Unknown error (0x80005000)

我不确定'redirection.config'是什么,并且.targets文件的行引用没有根本没有帮助。

I'm not sure what 'redirection.config' is, and the line reference to the .targets file doesn't help at all.

我该如何解决这个问题?

How can I fix this?

推荐答案

redirection.config 是一个存放在IIS配置目录中的文件,通常是%SystemRoot%\ System32 \inetsrv \ config 。以下是两种可能性:

redirection.config is a file that lives in the IIS configuration directory, typically %SystemRoot%\System32\inetsrv\config. Here are two possibilities:


  1. 构建项目的帐户无权访问IIS配置目录。如果您具有具有特殊权限的自动构建标识,或者您需要以管理员身份启动Visual Studio,则可能会发生这种情况。

  2. 您根本没有安装IIS机。检查以确保IIS配置目录,特别是 redirection.config ,甚至存在。如果没有,您需要安装IIS

  1. The account building your project doesn't have access to the IIS config dir. This might happen if you have an automated build identity with special permissions, or you if you need to start Visual Studio as an administrator.
  2. You don't have IIS installed at all on the new machine. Check to be sure the IIS config directory, and redirection.config in particular, even exist. If not, you'll need to install IIS.

这篇关于在构建Web Deploy包时,“redirection.config”的这个模糊错误是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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