Report Viewer C# data from MySQL - c#

I am using Report Viewer with C# Asp.Net and MySQL. But MySQL doesn't appear like option at Data Source from Report Data.
The MySQL is not a database option.
Can someone help me?

Download the complete version of MySQL installer that has about 378 Mb - Download here
Install it.
Go to Add --> Applications --> MySQL for Visual Studio and click in the arrow to add it at a list to be added. Do the same with MySQL Connectors --> Connector/Net.
Click in next.
Click em execute.
After that close and open your Visual Studio.
The problem was the web installer. For some reason the version of MySQL connector and MySQL for Visual Studio was not working with Visual Studio 2015. Hope help it. Problem solved.

Related

Data Source Configuration Wizard: Could not retrieve schema information for table or view

As the title says, I could not proceed in creating a data source for datagridview. I can see the database and the tables fine, but when I click finish, an error comes up.
What I've done so far:
-Reinstalled MySQL for Visual Studio
-Reinstalled MySQL Connector/NET
-Updated MySQL Updated
-Visual Studio 2017
Any ideas?
BTW I'm using Windows 7 64 bit, Visual Studio 2017 Community, and MySQL 8.0.13. Programming Language is C#
Here's a screenshot.
Data Source Config Wizard Error
This is a bug in the MySQL Visual Studio integration; it has been reported as bug 92751.
You can subscribe to updates on that case to learn when Oracle has fixed the bug and released an updated version. As far as I know, there is no workaround.

Using Firebird 2.5.6 in Visual Studio 2015 Community

I require some assistance in getting Visual Studio 2015 Community connected to firebird.
I am new to Visual Studio 2015 (used to program in Delphi/C++ builder), and I am now learning C# and want to use a firebird database.
Could anyone please assist or point me in the right direction in how to accomplish this?
I have installed the DDEX and ADO.net drivers as provided on the Firebird, page but so far no luck.
I don't have any code as of yet, as Visual Studio does not even see the Firebird drivers in the database connection dialogs.
Any assistance would be welcome.
I figured it out.
Perform the following steps:
Install Firebird 2.5.6.
Following packages needed:
EntityFramework (v6.1.3 at time of writing)
FirebirdSql.Data.FirebirdClient (v5.1.1 at time of writing)
EntityFramework.Firebird (v5.1.1 at time of writing)
DDEXProvider (v3.0.2 at time of writing)
in visual studio 2015 Open a solution.
Then click on Tools->NuGet Package Manager->Package Manager Console
execute following commands in the Package manager console:
Install-Package EntityFramework
Install-Package FirebirdSql.Data.FirebirdClient
Install-Package EntityFramework.Firebird
Then download and install the DDEXProvider from http://www.firebirdsql.org/en/additional-downloads/ via normal windows setup.
In Microsoft Visual Studio Click Tools->Connect to Database:
Under data source the Firebird Data Source should now be listed.
Select it and the Data Provide should now list .NET Framework Data Provider for Firebird.
click Next and follow prompts to setup for your database.
Data Source should be server name where database is hosted or localhost.
Database connection should now show under the Server Explorer.

DataBase Error while running Asp.NET project in Visual Studio

This is the error image showing when tried to register to the app:
This is the register button image:
I've tried to run my first Asp.net project in visual studio 2015 on my windows 8.1 PC. But when i was trying to register in the site clicking on the register button, it's showing SQL Server not found this type of error. i've uploaded the pic of the error. So, Do i need to install SQL server differently with VS 2015? or it's already installed by default with VS 2015? Need help from any expert please.
I've solved this problem. The SQL database server was not installed by default when i installed the visual studio 2015. I again modified the visual studio with the database server and now it's working. Thanks all.

No RDL Report option in Add New Item of ASP.net web project

Hello I am trying to create a website in VS 2013 and trying to add a report (.RDL) in the project. But when I do Add New Item, I am not able to see any report or report wizard in the dialog.
I did installed SSDT Tools for SSRS as well but still I didn't got any report template/editor in the visual studio 2013. Previously I was using vs 2012 and later when I installed vs 2013 I was able to get the report template in the VS 2013 but when I formatted my PC, I just installed 2013 but no option for reports or report viewer in the tool box.
Can anyone please guide me to get the template back ?
After looking at your list of installed templates, I think you got the wrong version of SSDT, since you have options for SQL Server templates, but not Business Intelligence. There are two very distinct versions of SSDT: SSDT for regular database tooling, and SSDT-BI (contains templates for SSAS, SSRS, SSIS projects).
Please follow this link and download SSDT-BI for 2013:
http://www.microsoft.com/en-us/download/details.aspx?id=42313
This should install the desired templates.

Unable to convert runtime connection string to its design-time equivalent

I updated to Visual Studio 2013 last week and I can no longer update my Entity Data model through the visual studio designer (.edmx file).
When I right click > update model from database I now receive this error:
An Exception of type 'System.ArgumentException' occurred while
attempting to update from the database. The exception message is:
'Unable to convert runtime connection string to its design-time
equivalent. Connection string: server=192.168.100.103;user
id=xxx;password=xxx;database=xxx;persist security info=True'.
My connection string is as follows:
<connectionStrings>
<add name="DbEntities" connectionString="metadata=res://*/Db.csdl|res://*/Db.ssdl|res://*/Db.msl;provider=MySql.Data.MySqlClient;provider connection string="server=192.168.100.103;user id=xxx;password=xxx;database=xxx;persist security info=True"" providerName="System.Data.EntityClient" />
The process still works fine in Visual Studio 2012
Apparently MySql and Visual Studio 2013 don't work together yet.
Here is a link on the MySql forums:
http://forums.mysql.com/read.php?174,594798,600466#msg-600466
You'll probably need to wait for the next release of the MySql connector.
I can't even create a connection to a MySql DB from Server Exploer in Visual Studio 2013. Can you?
You need to download Mysql connector 6.8.3.0 and Mysql for Visual Studio 1.1.1(https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi)
After that, it worked for me.
There is a new product for this now:
http://dev.mysql.com/downloads/windows/visualstudio/
Worked for me!
I had a similar problem with SQL Server Compact Edition. Although implied above, I'll explicitly state it: The answer for me was starting it in VS2012 and following the same steps to generate the database from the .edmx as I had tried in VS2013.
Most likely you are using an older version of MYSQL for VS or do not have any installed.
Simply Install/Update MySQL for visual studio
here : http://dev.mysql.com/downloads/windows/visualstudio/
This Worked for me
I also had this error message with Oracle. I previously had the Oracle ODT installed to make everything work with Visual Studio with our old database. However, I upgraded from the 12.1 to 12.2 ODT version of the tools when we migrated to a 12.2 server. That's when I started getting the above error.
For me, the fix was to update the machine.config. Change all references to the old driver version to the new driver version. In my case, I updated the Oracle.ManagedDataAccess from 4.121.1.0 to 4.122.1.0.
The problem is likely that MySQL for Visual Studio is missing. This can happen when Microsoft updates Visual Studio OR any related components.
You can check by:
Open your VS project.
Open Server Explorer and click on the connection.
Right click and open Properties. If the connection or provider are missing reinstall the connector and provider according to the instructions shown below:
STEPS on how to fix the problem:
NOTE: This uses version 6.8.10, your version may be different. Whatever version you use, all installed components MUST BE COMPATIBLE. That includes the Connector, MySQL for VS, and the MySql.Data components in your project.
This happens to me when MySQL version is updated.
I have found that doing the following steps can solve it:
Update the project nuget packages for MySQL to the latest.
Close Visual Studio.
Lunch MySQL Installer and update the product ".Net Connector" to the latest.
In MySQL Installer - remove the product "MySQL for Visual Studio"
In MySQL Installer - reinstall the product "MySQL for Visual Studio"
When you will open Visual Studio and update your model, you will be asked to update some MySQL files from PKGDEF files. Click on yes and everything should work.

Categories