Cannot find ReportViewer and ScriptManager controls in .NET Framework 2.0 - reporting-services

I have a project developed on .NET Framework 2.0. Now I want to include an SSRS Report to this project but I am unable to find ScriptManager and ReportViewer controls in my toolbox. These are available in .NET Framework 4.0, so what do I have to do to create SSRS report for Framework 2.0

.Net Framework 2.0 was released ten years ago, so ideally you should look to upgrade to a more recent version. However if you are stuck with 2.0 then you will need to use the Report Viewer control from SQL Server 2005, which can be downloaded from the Microsoft website:
https://www.microsoft.com/en-us/download/details.aspx?id=21916

Related

How to Add Report Viewer tools in Visual Studio 2022 C# Windows form application

I can't add Report Viewer tools in Visual studio 2022 .I am using c# desktop application.
Can anyone help me?
you need to install Microsoft RDLC Report Designer 2022
First of all you have to download RDLC extension for Reporting "Microsoft.RdlcDesigner.vsix" From the below link:
https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftRdlcReportDesignerforVisualStudio2022
Then try to install at your machine by closing Visual Studio before installation. Then restart your machine then you will be able to see option for Report or Report Wizard to create and design reports.
Install ReportViewerCore.Winform nuget package and also Microsoft RDLC Report Designer 2022 extension from https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftRdlcReportDesignerforVisualStudio2022
RDLC Report item template, Report Application project template, and RDLC report Designer
Install Microsoft RDLC Report Designer 2022 extension on Visual Studio, to add adds "Report Application" project template, and "RDLC Report" item template and the "RDLC Report Designer" to Visual Studio.
Note: If you create a "Report Application" project, since it has preinstalled Nuget package of ReportViewer, then you don't need to explicitly install the package yourself. Make sure you rebuild the project after created.
Add ReportViewr Control to toolbox of WinForms application
Install Microsoft.ReportingServices.ReportViewerControl.Winforms Nuget Package on a .NET Framework Windows Forms project, to add ReportViewer control to toolbox. .
Note: It doesn't include the RDLC report template and the report designer, so you usually need to install above VS extension as well. But you don't necessarily need to create "Report Application", a normal Windows Forms .NET Framework app, and then installing the NuGet package does the same thing as the Report Application app (without a wizard at the beginning). Make sure you rebuild the project after you installed the package
Reporting Service Reports project template, RDL item template, and RDL report designer
Install Microsoft Reporting Services Projects 2022 which is for creating Report .rptproj projects which is for Reporting Service Reports (RDL);
Note: It doesn't add the RDLC report template or Report Application project template, or RDLC report designer, and you only want it if you want to have a report server project and deploy the project to SSRS.
.NET CORE 3.1, and .NET 5+
Above solutions works for .NET Framework projects. If you want ReportViewr for .NET 5+ , or .NET Core 3.1+ you may want to use ReportViewer Core
VS 2022 Windows Forms RDLC Report and Report Viewer - Step by step example
To see a detailed step by by step example, take a look at following post:
Visual Studio 2022 - RDLC reports and ReportViewer

Change .NET Framework in Integration Services Project

When creating a new Integration Services Project in Visual Studio 2013 I can select the .NET framework to target. How can I see what .NET framework is being targeted on an existing project and potentially change it?
You need to open one of the Script Tasks and click the "Edit script..." button. This will open the script on a new instance of Visual Studio with the script in its own project. There you can change the properties of that project to modify the targeted framework for that particular Script Task.
There is no .NET Framework targeting for SSIS packages. However, there IS SQL Server version targeting. Prior to Visual Studio (VS) 2015, it was a bit of a mess: you could only target a specific version of SQL Server with a specific version of Visual Studio. For example:
SQL 2008 = VS 2008
SQL 2012 = VS 2012
SQL 2014 = VS 2013
With the release of VS 2015, however, Microsoft alleviated some of the headache by introducing SQL Server targeting within VS by just right clicking on the solution, going to properties, and selecting the version of SQL Server that the SSIS package would run on. This is important because it determines what components are available to use.
Now, with that being said, there is .NET Framework targeting within script tasks/components. To read more about that, check my answer at:
SSIS Script Keeps Reverting To .Net Framework 4.5

SSRS 2012 Custom Code .NET Framework 4.0 not supported

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?
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...
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.
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

Is there any way to use Entity Framework 4.1 code First approach using Visual Studio 2008 Service Pack 1?

Is there any way to use Entity Framework 4.1 code First approach using Visual Studio 2008 Service Pack 1?
I mean can i use DBcontext and DDBset approach in Visual Studio 2008 Service Pack 1.
I googled a lot but didn't get any answer.
I have used EF 4.1 feature in vs 2010 with MVC and N tier application. But There is a need for me to use Entity Framework 4.1 Code first approach in Visual Studio 2008 service pack 1 . Because my application has built in .net Framework 3.5 .
It is not possible. EntityFramework.dll has dependency on System.Data.Entities.dll from .NET 4.0.

How can you interop WSE 2.0 and 3.0 in a single project

As a part of my job, I need to add a new webservice to one our existing projects. Currently all of the services are ASMX webservices using WSE 3.0, but the new service needs to use WSE 2.0 SP3 because the vendor that will be calling it refuses to upgrade to 3.0.
I was hoping that someone here knew how to let these two versions run side by side.
Thanks
You will be unable to run both side by side. WSE 2.0 runs on the .NET 1.1 platform. WSE 3.0 runs on the .NET 2.0 platform.
You should be able to run WSE 3.0 on the web service and have the client use WSE 2.0 on their end. Both should implement the WS-Security standards respectively.