Click here to Skip to main content
15,908,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Server Error in '/RetriveData' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'firebirdsql.data.firebirdclient' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Posted
Updated 30-Jan-12 7:20am
v3
Comments
ZurdoDev 30-Jan-12 12:25pm    
What exactly is your question? Your site is not loading a dll because the runtime is newer than what you are running. For example, your firebirdclient was built for .Net 4.0 but you are running in .net 2.0. Something along those lines is what is causing your issue.

1 solution

The error message contains all the information you need:

"...This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded..."

This essentially says that you are targeting a .NET version in your project that is less than the the .NET version the Firebird assemblies where targeted for.

Example 1: Your project is .NET 2.0 and the Firebird assembly was compiled with .NET 4.0
Result 1: Will not work.

Example 2: Your project is .NET 4.0 and the Firebird assembly was compiled with .NET 2.0
Result 1: Will work.

In short: You can't use a higher .NET version assembly from a lower .NET version project, but the other way it is permissible.

Regards,

Manfred
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-Jan-12 21:21pm    
Very good, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900