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

前端 未结 4 1020
天命终不由人
天命终不由人 2021-01-18 08:49

I got this error:

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

相关标签:
4条回答
  • 2021-01-18 09:08

    We experienced this issue on one server after installing .Net 4.6 (Windows Server 2012 R2) but did not have issues on any other servers (nor on Windows 7 or Server 2008). Some searching turned up nothing except this StackOverflow post, Compile rdlc in VS2013 - error Native compiler return value: '-1073741511', which describes the exact issue we were having. Unfortunately it has no solution.

    In our case this was a production server and we had to restore from backup to a point prior to installing .Net 4.6.

    I'm working on removing the expressions from our report (which is doable in our case but may not work for you). Which so far is the only work-around we've found.

    We'll be logging a bug with Microsoft and hope for a patch soon.


    What we tried but did not work

    • Upgrading the solution from Visual Studio 2013 to Visual Studio 2015
    • Changing the CLR target from 4.0 to 4.6
    • Upgrading Microsoft ReportViewer from v10 to v12
    • Recreating the RDLC from scratch in Visual Studio 2015
    0 讨论(0)
  • 2021-01-18 09:09

    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.

    Rebooted and it worked.

    0 讨论(0)
  • 2021-01-18 09:12

    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.

    0 讨论(0)
  • 2021-01-18 09:28

    Reporting Services is not available in your Visual Studio 2015 SSDT build (July 2015) as noted here hence your issues trying to build reports

    0 讨论(0)
提交回复
热议问题