VS 2015 Native 编译器在构建项目时在 .rdlc 文件上返回值 -1073741511 [英] VS 2015 Native compiler return value -1073741511 on .rdlc files when building project

本文介绍了VS 2015 Native 编译器在构建项目时在 .rdlc 文件上返回值 -1073741511的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

rsUnexpectedCompilerError: 发生意外错误编译表达式.本机编译器返回值:‘-1073741511’

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

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

,when compiling rdlc's on a new box on Visual Studio 2015 on a Windows 8.1 box for an existing project

这种情况发生在具有表达式的项目中每个现有的 rdlc 文件.

This happens on every existing rdlc file in the project that has an expression.

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

I checked that. I have the latest sql server data tools (ssdt) installed.

我还创建了一个全新的控制台应用程序,其中包含没有表达式的空报告,并且编译良好.当我向那个空报告添加一个表达式时,就像下面的例子一样,它拒绝编译.

I also created a brand new console application with empty report with no expressions and it compiles fine. When I add an expression to that empty report, like in the example below, it refuses to compile.

有谁知道如何让 Visual Studio 能够用表达式编译 rdlcs?在使用 windows 8.1 重新映像之前,计算机曾经这样做过.

Does anyone have any idea how can I get Visual Studio to be able to compile rdlcs with expressions? The computer used to do this before it was re-imaged with windows 8.1.

以下是无法编译的文件示例:

Here's an example of a file that will not compile:

<?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 版本信息

Here's my VS 2015 version info

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

推荐答案

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

In order to resolve the RDLC build problem I had to do the following (lots of digging):

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.

https://support.microsoft.com/en-us/kb/3118750 Resolution for scenario 2 Customers have to uninstall updates 3098779 and 3097997 if they have upgraded their systems to the .NET Framework 4.6 or have installed Visual Studio 2015 from a fully updated .NET 4.5.1 or 4.5.2 system that has updates 3098779 and 3097997 installed.

这篇关于VS 2015 Native 编译器在构建项目时在 .rdlc 文件上返回值 -1073741511的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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