博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

One of my web project, which has a rdlc file using some expressions, was working fine while developing in visual studio 2013.

After I install the visual studio 2015, when I build the web project in visual studio 2013, it always give an error message saying "An unexpected error occurred while compiling expressions. Native compiler return value: '-1073741511'."

This makes me confused for a couple of hours. However, if I replace the expression with some constant or fields value, then it's works. This means it's might be a visual studio issue.

After searching the microsoft support site, this is one knowing issue at "https://support.microsoft.com/en-us/kb/3118750" - Known issue for security updates 3098779 and 3097997 for the .NET Framework 4.5.1 and 4.5.2 after you install the .NET Framework 4.6 on Windows 8.1, Windows RT 8.1, and Windows Server 2012 R2.

Follow the resolution 2 can fix this issue.

Resolution

Resolution for scenario 1

Customers who manually apply updates 3098779 and 3097997 on systems that have the .NET Framework 4.6 installed should be aware that this is not a supported scenario. These updates do not apply to the .NET Framework 4.6.
Therefore, customers who are using the .NET Framework 4.6 should uninstall updates 3098779 and 3097997. Customers should then rescan Windows Update and install only those updates that apply to the .NET Framework 4.6. This action will correct the version mismatch.

Resolution for scenario 2

Customers can resolve these issues by upgrading to the .NET Framework 4.6.1 from the following Microsoft Download Center websites:

Alternatively, customers can 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. 
Customers should then rescan Windows Update and download and install updates 3098785 and 3098000. These are the corresponding Microsoft Security Bulletin MS15-118 updates for the .NET Framework 4.6 on Windows 8.1, Windows RT 8.1, or Windows Server 2012 R2. This action will correct the version mismatch.