Solved

MySql.Data.dll error

Posted on 2011-03-15
3
709 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

21 Experts available now in Live!

Get 1:1 Help Now