Microsoft.ReportViewer : How to upgrade Version from 8 to 11 - c#

I have developed an c# desktop app on Visual Studio 2013 and Microsoft Sql server 2012. When i deploy this app on my client system which has sql server 2008, app is running correctly but reports are not working. It throws exception:
Could find the file or assembly Microsoft.ReportViewer.Common V 11.0.0.0
When i see the assembly it has V 8.0.0.0. My question is how to upgrade this to V 11 without installing Sql server 2012 ? Is there any way to copy the new version files in assembly ?

Yes, it is possible. There is a runtime available for the report viewer.
You need to download and install the following two files:
Microsoft System CLR Types for Microsoft SQL Server 2012 (x86, x64)
Microsoft Report Viewer 2012 Runtime
(Don't mind that the first file has "SQL Server 2012" in its name. It's just a tiny library with a scary name required by the Report Viewer Runtime. It won't actually install SQL Server 2012. More details can be found in the "System Requirements" section of the Report Viewer Runtime link.)

Related

Installing MSSQL for Windows 7 and running application made with MSSQL2016 for X86 systems

I'm developing an ERP via Windows Form Application using (C# and SQL) through Visual Studio 2017 and MSSQL SERVER 2016 (VERSION 852) on a 64 bit Machine with Windows 8.
On deploying the application on the X64 machine with SQLLOCALDB (VERSION 852 or above) installed, the application is working fine.
But, I want to distribute the application in my circles having old machines with X86 (32 bit) architecture. The application is getting installed, but on launching the application, the form with DATABASE CONNECTIVITY is creating a problem.
"The database 'MyFirstWFAAPP' cannot be opened because it is version
852. This server supports version 851 and earlier. A downgrade path is not supported. Could not open new database 'MyFirstWFAAPP'. CREATE
DATABASE is aborted. Cannot attach the file
'C:\devx\2018\MyFirstWFAAPP\App_Data\MyFirstWFAAPP.mdf' as database
'MyFirstWFAAPP'. "
PS: Installation of MSSQL SERVER (Local DB) to 32 bit machines, WINDOW 7, has been deprecated by Microsoft (As I've been informed) So, MSSQL SERVER 2016 and above cannot be installed onto Window 7 systems.
Window 7, XP Support SQL SERVER installation either or below SQL SERVER 2008 R2 (VERSION 660/661).
I'm in a dilemma, as I'm have no idea of what to do.
1) Is there any way, we can convert Code of SQL SERVER 2016 to SQL SERVER 2008 (R2) or below??
2) or, should I delete the MSSQL Server 2016 and then install the 2008 editions.
3) or, should I install SQL 2008 on the parallel with SQL SERVER 2016 running. and, also install MSSQL Server Management Studio and choose the targeted versions of MSSQL. (I'm not sure, whether it's possible. Just guessing).
Please support. As, I'm worried.
Thanks and Regards!
Narayan
This has nothing to do with the target platform (x86 vs. x64). This is simply an issue of targeted SQL Server version. SQL Server knows how to upgrade a database file, but there is absolutely no way it can downgrade one. You are distributing a SQL Server 2016 database file (internal version 852), this will only be opened by the SQL Server 2016 or SQL Server 2017.
But the real problem is different. The real problem is that you are distributing the database as an artifact. This is an absolute NO. Just think how will you distribute the next version of your app, your MDF will replace the actual data that was updated by your 'circles'. You must change your application to distribute only scripts for creating and upgrating database. Your framework of choice may well already provide a solution.

unable to install or run C# application on client PC

I have developed a desktop application in c# & SQL server 2012 using Visual Studio 2013. I have included the reference for Microsoft.VisualStudio.DebuggerVisualizers and set copy local : true.
The application runs perfectly on client systems with windows 8, 10.
But its showing this error while installing on a windows 7 system.
- OS Windows 7 Ultimate
- already installed .NET Framework 4.5
- installed Report Viewer.exe 2012
- installed report viewer.msi 2010
- installed sqlclr types
- the system doesnt have any microsoft c++ redistributable , i am not sure whether it has any impact.
I checked in the assembly folder, but couldnt find the Microsoft.VisualStudio.DebuggerVisualizers.dll
Am I missing any prerequisites here? How to solve this issue so that i can install the application
Error Message
It needs the Microsoft.VisualStudio.DebuggerVisualizers.dll in the global assembly cache. The GAC is the area where libs are placed which can be accessed from all of the system.
It's kinda a ugly fix but you could place this lib in the same or subdirectory of the same directory where the application is.
Is it possibly that you haven't installed VS on that Win7 machine but on the others?
Unintentionally the Microsoft.VisualStudio.DebuggerVisualizers.dll had been included in the project reference. And in the client system the specified dll could not be found even after trying to install it. Hence I removed it from reference and then it worked perfectly fine without any issues. I guess instead of report visualizer i have included debuggervisualizer. It was a manual error.
Thank you for your support

Error in installing the C# Windows Application build

I have created a C# Windows Application project build and selected Prerequisites as Microsoft .net framework 4.5(x86 and x64), Microsoft Report Viewer 2012 Runtime, Microsoft System CLR Types for Sql Server 2012 (x64) and selected the option Download Prerequisites from the same location as my application.The build is created successfully.
But when i try to install the build in Client computer the following error message occurs "An error occurred while installing system components for 'Application name' setup cannot continue until all system components have been successfully installed ".
When i checked the install file it says - Verifying file integrity of ReportViewer.msi. WinVerifyTrust returned -2146762486. file not trusted
The Application installs without any problem if i connect to internet and install the application. But i want it to work without internet connection.
Thanks in advance.

C# to ms access database

I got an shown in the below image on my connection between my ms access database and my c# windows form application,error says that
"The 'Microsoft.ACE.OLDB.12.0' is not registered to local machine"
visual studio2015 and ms access2016
i'm an amateur
Having recently dealt with this myself, I believe you need the Microsoft Access Database Engine 2010 Redistributable https://www.microsoft.com/en-us/download/details.aspx?id=13255
You have two options:
32-bit version (AccessDatabaseEngine.exe)
64-bit version (AccessDatabaseEngine_x64.exe)
You cannot install both at once. If you are targeting for the x86 platform, install the 32-bit version. If you are targeting for the x64 platform or AnyCPU, install the 64-bit version.
Have you installed office 2016 data connectivity components? If not please install the same. You could get more details on the below links
Stack Overflow link

SAP Crystal reports (Failed to load database information)

favorite
There is a problem i have been facing for couple of days. The problem is that i have developed C# Winform application using windows 7 professional sp1,mysql5.5 and SAP crystal report. When i deploy... and install it on the client machine then if the application finds windows 7 professional sp1 on client machine the reports are displayed very well in the application but if it finds (other than windows 7 sp1) professional on the client machine it gives error "Failed to load database information. bla bla {GUID}.rpt file" while displaying or printing. The application developed is not working on other than (Windows 7 professional sp1).
Deploying includes packages. .NET frame work 4.0 , Run time Crystal report Engine , Mysql 5.5 and VS C++ Redistributable.
Developer Machine has. Windows 7 professional sp1, Visual Studio 2010 , SAP Crystal Report for VS 2010, MYSQL Server 5.5
your application EXE file cannot stand alone to running it, the EXE file need the [app_name].exe.config in the same directory so the application can run and load the crystal report successfully.
so these is my conclusion:
the app.exe.config is all in one package which cannot be separated with the EXE file.
the supporting component such as dll files, app.exe.config etc CANNOT be combined into the EXE file.
You can find more in following Link
Try this also:
Add the following section to the config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
The attribute will be required to view reports based on ADO.NET objects
I had this error and lost many time to look up, searching and try till since when I install Crystal Service Pack 39 (32 bit) and It was resolved.
I think you can try to install the last service pack of SAP Crystal report.

Categories