I have an web application that was developed in Visual Studio 13 using Visual Basic. When I switched it over to a virtual server to run, it was ran fine until I installed IBM System i Access. It was needed to connect to a db2 database. After its installation, removing it causes the application to stop working. It tries to load, but never does. After uninstalling it, the program worked fine, but I need it for the application. Do you have any idea of what may fix it?
Things to note:
MySQL is installed on the same virtual server as well, but uninstalling MySQL components didn't cause it to work.
Its ran using .NET 4.0
I figured out that the problem was due to the .NET Framework I was running. My application uses .NET 4.0. This was an issue because the version(6.1) of IBM System i Access for Windows only works with .NET 2.0. Hopes this helps someone eventually.
Related
I have a version problem.
This is the error message I get:
The application is trying to load native components of version 5386 that are incompatible with ADO.NET provider of version 8080. Incompatible versions can lead to application instability and hence loading of SQL Server Compact has been aborted. Install the correct version of SQL Server Compact. Refer to KB article 974247 for more details.
What have I done:
I installed and reinstalled and reinstalled every possible SQL Server Compact sp1/sp2, I only find .net compact framework sp1 so that's what I am using
I already had this problem before and was able to solve it with some luck. But now it's worse. These are the programs I installed - maybe I need another installation?
I'm running on Windows Vista
I reinstalled visual studio and everything works, possible that I messed up with some extra downloads, so delete everything from the visual studio programs and reinstall it. It was a long way trying to fix this!
I'm using visual studio 2012 and installed MySQL 5.7 and all the developer tools. After I added EF 6.0 etc from Nuget and try to link to my database, MySQL is not part of the available data source as depicted below.
I can however, see the selection when trying to add connection at Server Explorer. May I know if anybody knows how to fix it? What have I missed? Thank you.
Update 1:
These are what I have installed.
After trying with my local PC and my VM, I found out the problem. Since I installed mysql-connector-net-6.10.5.msi, it's not supported. At my VM I had installed the mysql-connector-net-6.9.10.msi instead.
After changing the local PC to mysql-connector-net-6.9.10.msi, I'm able to see the data source. Is MySQL trying to phase out the support in the future?
I am trying to use the crystal reports application in ubuntu. So far i was able to connect the MYSQL database using c# in .net platform and run a small application in ubuntu over crossover linux.
But when i try to fetch the data from mysql database and display in crystal reports i get an error as shown in the below picture:
alt text http://img136.imageshack.us/img136/3282/screenshot2i.jpg
alt text http://img155.imageshack.us/img155/3504/screenshot1my.png
This thread is an extension of the below thread.
Can't connect to MySQL for .NET application deployed in Wine using Ubuntu
The WineHQ db claims that it will run. However, if you do intend to target the Linux and Windows platforms, I would suggest a more cross platform compatible library.
I got the answer by my own after doing a small research.
The error was due the licensing problem of visual studio .net 2005. The following packages had to be configured in Merge Reports (i.e C:\Program Files\Common Files\Merge Modules)
Crystal_Managed2003.msm
Crystal_Database_Access2003.msm
Crystal_Database_Access2003_enu.msm
Crystal_regwiz2003.msm
And then we need to enter the license key while deploying the application correctly.
Later the following packages would be installed automatically when we run the deployed .net application in ubuntu linux
Refer screenshot below
Does any one know how to connect to MySQL 5.1 with Visual Studio 2010?
I have already tried the MySQL Connector/ODBC route and it got me really nasty results. The table rows were all listed as a view in the views section and nothing at all was listed in the tables or procedures folder.
To get the Entity Frame working with VS2010, I had to do the following:
This only worked with Mysql .net Connector v6.3.1 (alpha). Previous versions ignored VS 2010 (click Development Releases)
I had to rename my Framework\v1.1.4322\CONFIG folder. Otherwise the install will fail. Rename it back when finished
(I've blogged about this here)
Update
6.3.2 is in beta and I can confirm this works. (I didn't need to rename the framework folder)
this seems to solve the issue
UPDATED LINK TO LATEST RELEASE THANKS #Christian Payne
Update: looks like there is already a non-beta!!!!
http://www.mysql.com/downloads/connector/net/
As someone else suggests..
http://dev.mysql.com/downloads/mirror.php?id=382641
..fixes the problem.
I had v6.2.3 installed after I had vs2010 installed and the MySQL driver was not shown in the list of the Database Connect dialog. I wrongly assumed I should use the .NET ODBC drivers instead and it caused all sorts of problems. Although I could easily connect to the DB using codebehind, the server explorer wouldn't connect to the DB.
Luckily after uninstalling 6.2.3 and installing 6.3.0 (from the link above) the MySQL driver was added to VS2010, and I was able to connect to the database and see it in my server explorer.
http://bugs.mysql.com/bug.php?id=45122
I was able to get this to work by doing the following:
My Environment:
Development Box -- Win7 64bit,
VS2010 Pro
Deployment Box -- Win2k8 svr with IIS7
running ASP.NET .Net 2.0/3.0/3.5 sp which is
hosted at DiscountAsp.Net (Note:
DiscountAsp.Net does not provide a
MySQL DB when running on a Win2k8
svr, I'm using a MySQL DB that I connect
to elsewhere on the InterWebs)
Steps I took:
Installed MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d
Ref'd the .Net 2.0 version of the MySQL assembly in my ASP.NET MVC2 Web project set to target .Net 3.5 (the path for the MySQL assemblies I used was C:\Program Files (x86)\MySQL\MySQL Connector Net 6.3.6\Assemblies\v2.0)
I ref'd all 3 of the MySQL assemblies (MySql.Data.dll, MySql.Data.Entity.dll & MySql.Web.dll)
I marked each of those assemblies as "Copy Local=True" in my project (a.k.a bin deployment)
Added a MySQL DB connection string to my Project (using the MySQL provider)
Added an ADO.NET Entity Data Model to my project in VS2010 using the connections string
VS2010 took about 30 secs to chew thru my MySQL DB schema but then provided me with a beautiful GUI interface to tweak my MVC Models
Used the DB Entities in my MVC controllers
Deployed the app to my hosted server at DiscountAsp.Net
It works like a charm :)
Erm... through code? Or do you mean the server explorer add-in? Have you tried the latest (albeit GPL-ed) connector version for .NET from Mysql themselves? Again, it's GPL-ed so be aware of the consequences of using that for your own software.
Microsoft Visual Studio 2010 Beta 2 is busted for DDEX providers. They are auto promoting a VS 2008 assembly from 9.0 to 10.0 and it fails. The failure has to do with the fact that a .NET 2 assembly cannot load a .NET 4 assembly.
This worked in beta 1, so it is something they broke.
I even went back and tried the reference DDEX provider from the SDK. It won't load in VS 2010 beta 2 either. That tells me they have something that needs to be fixed.
When is the next beta?
I have been using Microsoft Visual Web Developer 2008 Express Edition. Originally, I made a website with a MySQL back-end. Then I discovered the .Net web authentication, and moved to MS Access as I could, with some modification, make the web authentication work (but not all the features). For a future release of my site, I moved to MS SQL as it supported all of the features of the .Net web authentication. However, my host does not support MS SQL, my host supports MS Access and MySQL.
If I get Visual Studio 2008 Standard, with it have better integration with MySQL, to the point that all features of web authentication and using the development environment to make changes to the database are supported? Are there thrid-party tools or modifications that I can make to get things to that level of integration?
Or, do I have to move to a host that supports MS SQL?
We run a .NET environment here but using MySQL as our backend (though our software is applications, not web apps).
The MySql Net Connector is basically the MySQL version of the System.Data namespace in .NET (with nearly identical functionality/naming except for the MySql prefixes). So, as far as I have seen while working with it, anything that you can do via those namespaces, you can do via the connector.
As for IDE integration, I don't know. I use MySql Administrator and SQLYog to manage/work with the db.
You could try MySQL's .NET connector, though it's only a development version