SSRS 2012 Custom Code .NET Framework 4.0 not supported
Asked Answered
B

3

15

I was very hopeful that since SQL Server 2012 SQLCLR supports .NET 4.0 that SQL Server Reporting Services (SSRS) 2012 would support .NET 4.0 custom code assemblies. When attempting to upload an rdl (via the Report Manager or via RSBuild) that references .NET 4.0 assemblies, the Reports Manager throws an error stating

This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (rsErrorLoadingCodeModule)

Is there something I can configure to get SSRS 2012 to load .NET 4.0 assemblies? Will we be waiting until the next major release of SQL Server before we see .NET 4.0 support for custom assemblies in SSRS?

Bala answered 1/6, 2012 at 13:45 Comment(3)
I beleie that this is for compatability with Sharepoint 2010 which uses .net 3.51Rabies
I find it very irritating that the MSDN docs do not list the required framework. It's as if they were not sure until RTM.Bala
At this MSDB doc the reporting service is set to require 3.5, not that it states why they not require 4.0!Irrawaddy
J
8

SSRS 2014 is now released and custom code still does not support the .Net 4.0 Framework.

See prerequisites in the "Hardware and Software Requirements for Installing SQL Server 2014" (http://msdn.microsoft.com/en-us/library/ms143506(v=sql.120).aspx)

It's very amusing that SQL Server 2014 has just RTM'ed a few days ago and is already considered a "legacy application" by the .Net Framework guys who say:

.NET Framework 3.5 is not included by default in Windows 8 or Windows Server 2012, but you can download and deploy it for legacy application compatibility.

... see "Microsoft .NET Framework 3.5 Deployment Considerations" (http://technet.microsoft.com/en-us/library/dn482066.aspx)

I think the bigger issue is whether the support lifecycle of .Net 3.5 SP1 can actually be tied to the OS'es for which it was a default component. Whatever they say, I can't see Microsoft quitting support on .Net 3.5 as long as SQL Server continues making it a prerequisite in a product they are releasing today. The .Net Framework guys can't be too happy with the lazy SQL guys right now...

Jadajadd answered 23/3, 2014 at 4:55 Comment(1)
Just re-targeted my custom dll to 3.5 - thanks for the detailed answerCoprophilia
J
3

Actually, I find that reports using .Net 4.0 assemblies will work fine in VS 2010 (PreviewProcessingService.exe)...

And the reports may also work for you when deploying them to SSRS 2012 SP1 in SharePoint 2013 integrated mode.

Here is the authoritative answer on when/where the .Net 4.0 CLR is supported by SSRS: http://support.microsoft.com/kb/2869522/en-us

For those of us who use SSRS in standalone mode (without SharePoint), we might be stuck on the .Net 2.0 CLR for a while.

Jadajadd answered 5/4, 2013 at 18:53 Comment(0)
I
0

I might be wrong and there might be more differences but having compared reports downloaded from reporting services and "identical" ones made in Visual Studio using .Net framework 4.0+ I think the only difference is that puts a ReportParametersLayout section in the xml. If you manually remove this from the xml version of the report file then upload hopefully it will work for you

Infringement answered 24/3, 2017 at 10:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.