构建项目时 .rdlc 文件上的 VS 2015 本机编译器 return 值为 -1073741511

VS 2015 Native compiler return value -1073741511 on .rdlc files when building project

我收到这个错误:

rsUnexpectedCompilerError: An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741511’

,在现有项目的 Windows 8.1 框上 Visual Studio 2015 上的新框上编译 rdlc

这发生在项目中 每个 现有的 rdlc 文件上 有一个表达式.

我查过了。我安装了最新的 sql 服务器数据工具 (ssdt)。

我还创建了一个全新的控制台应用程序,其中包含没有表达式的空报告,并且编译正常。当我向该空报告添加表达式时,如下例所示,它拒绝编译。

有谁知道我怎样才能让 Visual Studio 能够用表达式编译 rdlcs?在使用 windows 8.1.

重新映像之前,计算机曾经这样做过

这是一个无法编译的文件示例:

<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
  <Body>
    <ReportItems>
      <Textbox Name="Textbox1">
        <CanGrow>true</CanGrow>
        <KeepTogether>true</KeepTogether>
        <Paragraphs>
          <Paragraph>
            <TextRuns>
              <TextRun>
                <Value>="goo"</Value>
                <Style />
              </TextRun>
            </TextRuns>
            <Style />
          </Paragraph>
        </Paragraphs>
        <rd:DefaultName>Textbox1</rd:DefaultName>
        <Top>0.62375in</Top>
        <Left>2.88417in</Left>
        <Height>0.25in</Height>
        <Width>1in</Width>
        <Style>
          <Border>
            <Style>None</Style>
          </Border>
          <PaddingLeft>2pt</PaddingLeft>
          <PaddingRight>2pt</PaddingRight>
          <PaddingTop>2pt</PaddingTop>
          <PaddingBottom>2pt</PaddingBottom>
        </Style>
      </Textbox>
    </ReportItems>
    <Height>2in</Height>
    <Style />
  </Body>
  <Width>6.5in</Width>
  <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
  </Page>
  <AutoRefresh>0</AutoRefresh>
  <rd:ReportUnitType>Inch</rd:ReportUnitType>
  <rd:ReportID>931c20c8-104d-4fe3-b563-d60a1298ba59</rd:ReportID>
</Report>

这是我的 VS 2015 版本信息

Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Professional

Visual Basic 2015   XXXXX-XXXXX-XXXXX-XXXXX
Microsoft Visual Basic 2015

Visual C# 2015   XXXXX-XXXXX-XXXXX-XXXXX
Microsoft Visual C# 2015

Visual C++ 2015   XXXXX-XXXXX-XXXXX-XXXXX
Microsoft Visual C++ 2015

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.6
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

Microsoft Azure HDInsight HQL Service   2.0.2600.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2600.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.7
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.7.30818.1601

NuGet Package Manager   3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PostSharp   4.1.28.0

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50730.0
Microsoft SQL Server Data Tools

Reporting Services 在您的 Visual Studio 2015 SSDT 版本(2015 年 7 月)中不可用 here 因此您在尝试构建报告时遇到问题

我们在安装 .Net 4.6 (Windows Server 2012 R2) 后在一台服务器上遇到了这个问题,但在任何其他服务器上都没有问题(在 Windows 7 或 Server 2008 上也没有)。除了这个 Whosebug post、 之外,一些搜索没有找到任何结果,它描述了我们遇到的确切问题。不幸的是它没有解决方案。

在我们的例子中,这是一个生产服务器,我们必须从备份恢复到安装 .Net 4.6 之前的某个点。

我正在努力从我们的报告中删除表达式(这在我们的案例中是可行的,但可能不适合您)。到目前为止,这是我们找到的唯一解决方法。

我们将向 Microsoft 记录一个错误,希望尽快发布补丁。


我们尝试过但没有奏效的方法

  • 将解决方案从 Visual Studio 2013 升级到 Visual Studio 2015
  • 将 CLR 目标从 4.0 更改为 4.6
  • 正在将 Microsoft ReportViewer 从 v10 升级到 v12
  • 在 Visual Studio 2015 年
  • 从头开始​​重新创建 RDLC

为了解决 RDLC 构建问题,我必须执行以下操作(大量挖掘):

https://support.microsoft.com/en-us/kb/3118750 方案 2 的解决方案 如果客户已将系统升级到 .NET Framework 4.6 或已从安装了更新 3098779 和 3097997 的完全更新的 .NET 4.5.1 或 4.5.2 系统安装 Visual Studio 2015,则客户必须卸载更新 3098779 和 3097997 .

重新启动并成功。

为了解决 RDLC 构建问题,我必须执行以下操作(大量挖掘):

https://support.microsoft.com/en-us/kb/3118750 方案 2 的解决方案 如果客户已将系统升级到 .NET Framework 4.6 或已从安装了更新 3098779 和 3097997 的完全更新的 .NET 4.5.1 或 4.5.2 系统安装 Visual Studio 2015,则客户必须卸载更新 3098779 和 3097997 .