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

烂漫一生 提交于 2019-12-01 17:32:01

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.

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

Jake

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

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.

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