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

前端 未结 4 1136
天命终不由人
天命终不由人 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

提交回复
热议问题