azure - Web 部署到 azure 时出现 EscapeTextForRegularExpressions 错误

标签 azure asp.net-mvc-4 azure-web-app-service webdeploy

在我的 asp.ent MVC4 项目中,我使用 webdeploy 部署到 azure,并且我之前多次将此项目部署到 azure 上的应用程序服务。但突然间我遇到了这个错误。

"EscapeTextForRegularExpressions" task was not given a value for the required parameter "Text"

I Have found an answer:

将此文件添加到 Web 项目的根文件夹中。

File Name : *.wpp.targets


<Project ToolsVersion="4.0"  xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <ItemGroup>
        <ExcludeFromPackageFolders Include="Internal">
          <FromTarget>*.wpp.targets</FromTarget>
        </ExcludeFromPackageFolders>
      </ItemGroup>
    </Project>

Never the less I cannot understand the real cause of the problem

最佳答案

根据你的描述,我找到了类似的issue注意到IncludeIisSettings在 *.csproj 内。根据我的测试,如果我指定 <IncludeIisSettings>true</IncludeIisSettings>使用我的csproj,那么当我使用VS的Publish向导中的Web Deploy方法时,我可能会遇到类似的问题,如下所示:

enter image description here

删除 IncludeIisSettings 后或者将该值设置为 false,然后我就可以成功地将我的 Web 应用程序部署到 azure Web 应用程序。

关于azure - Web 部署到 azure 时出现 EscapeTextForRegularExpressions 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46431924/

相关文章:

azure - 启用 Azure AD 身份验证后无法访问我的网站

c# - Chrome 驱动程序无法在 Azure Web 应用程序上运行

c# - 使用 Azure 服务总线的 NamespaceManager 时出现 ConfigurationManager 错误

Azure-将证书添加到 CloudService

asp.net-mvc-4 - 更改 web.config 的 appSettings 中的值时在 IIS 中重新启动网站

c# - 软件支持系统的唯一票号

azure - 使用Azure应用程序网关时可以删除Nginx吗?

azure - 按内存自动缩放Azure云服务

Azure Key Vault 与 AKS 集成适用于 nginx 教程 Pod,但不适用于实际项目部署

asp.net-mvc - 回发 MVC Razor View 中项目列表中单击的行