Solved

MySql.Data.dll error

Posted on 2011-03-15
3
711 Views
Last Modified: 2012-06-22
I have an app running fine using MySqlConnector/NET on my testing PC but when it is loaded to the server I get this error.

Could not load file or assembly 'MySql.Data' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I assume it means just what it says and I loaded a .ddl file newer than the server is using. Is this true?

My host has to tell me what .dll to use if any?

Also, it simply goes in a bin folder on the app at the same level as I have on my testing machine. True?

Thanks
0
Comment
Question by:j-w-thomas
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 35140470
Hi Thomas,
There could be may reasons for this, but some one of them can be:
If you have installed this dll from some installer then make sure you have installed same package on your server.  
So either sychronize the server with same package or add other dlls remove the package. more simply copy/add this dll and related dlls in bin folder and check if tyour problem is resolved or not.

0
 
LVL 3

Author Comment

by:j-w-thomas
ID: 35141145
hmmmm...yeah that could help only i do not want to run test after test on the live server.

But it seems that it defintely is a version issue?
0
 
LVL 3

Author Closing Comment

by:j-w-thomas
ID: 35141311
incomplete but helpful
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now