在 VS2013 中编译 rdlc - 错误本机编译器 return 值:'-1073741511'
Compile rdlc in VS2013 - error Native compiler return value: '-1073741511'
安装 Visual Studio 2015 后,我无法再编译我的 rdlc(报告)文件,即使在 VS2013 中也是如此 - 它过去常常编译没有错误。
我收到以下错误:
An unexpected error occurred while compiling expressions.
Native compiler return value: ‘-1073741511’.
通过试错我发现删除像
这样的表达式
=IIf(IsNothing(First(Fields!ActualQuantity.Value, "DataSet1")),"",First(Fields!ActualQuantity.Value, "DataSet1"))
和
="Generated from website " + FormatDateTime(Now(),DateFormat.ShortDate)
甚至
=""
将防止此错误,而以下是好的:
(GOOD)
=First(Fields!CarrierName.Value, "DataSet1")
我确实需要这些表达式,所以希望有人可能熟悉这个问题并能够提供指导以找到解决方案。
不幸的是,其他开发人员(和构建服务器)在编译此报告时没有问题,所以我是个奇怪的人。
此答案刚刚发布在可能对您的问题有所帮助的另一个问题上:
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 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.
安装 Visual Studio 2015 后,我无法再编译我的 rdlc(报告)文件,即使在 VS2013 中也是如此 - 它过去常常编译没有错误。 我收到以下错误:
An unexpected error occurred while compiling expressions.
Native compiler return value: ‘-1073741511’.
通过试错我发现删除像
这样的表达式=IIf(IsNothing(First(Fields!ActualQuantity.Value, "DataSet1")),"",First(Fields!ActualQuantity.Value, "DataSet1"))
和
="Generated from website " + FormatDateTime(Now(),DateFormat.ShortDate)
甚至
=""
将防止此错误,而以下是好的:
(GOOD)
=First(Fields!CarrierName.Value, "DataSet1")
我确实需要这些表达式,所以希望有人可能熟悉这个问题并能够提供指导以找到解决方案。
不幸的是,其他开发人员(和构建服务器)在编译此报告时没有问题,所以我是个奇怪的人。
此答案刚刚发布在可能对您的问题有所帮助的另一个问题上:
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 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.