Compile rdlc in VS2013 - error Native compiler return value: '-1073741511'

断了今生、忘了曾经 提交于 2019-12-23 03:34:08

问题


After installing Visual Studio 2015 I am not longer able compile my rdlc (report) file even in VS2013 - where it used to compile without error. I getting the following error:

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

Through trial an error I have found that removing expressions like

=IIf(IsNothing(First(Fields!ActualQuantity.Value, "DataSet1")),"",First(Fields!ActualQuantity.Value, "DataSet1"))

and

="Generated from website " + FormatDateTime(Now(),DateFormat.ShortDate)

and even

=""

will prevent this error, while the following is fine:

(GOOD)
=First(Fields!CarrierName.Value, "DataSet1")

I actually need those expressions, so hoping someone might be familiar with this problem and be able to provide guidance for tracking down a solution.

Unfortunately, other developers (and the build server) do not have a problem with compiling this report, so I'm the odd man out.


回答1:


This answer was just posted on another question that might help your issue: https://stackoverflow.com/a/33917391/5583585

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.



来源:https://stackoverflow.com/questions/33700016/compile-rdlc-in-vs2013-error-native-compiler-return-value-1073741511

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!