MATLAB Answers

Does MATLAB 7.10 (R2010a) support Microsoft .NET Framework 4.0?

39 views (last 30 days)
The MATLAB documentation states that "MATLAB interface supports the features of the .NET Framework Version 2.0, and works with Version 2.0 or above.":
However, when I run a program using the .NET 4.0 interface, I receive the following error:
??? Message: Could not load file or assembly 'file:///C:\Work\Visual Studio\MTracker\MTracker\bin\Debug\MTracker.dll' or one of its dependencies. This
assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Source: mscorlib

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Sep 2012
This bug has been fixed in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
Currently, Microsoft .NET Framework 4.0 is not supported. Versions 2.0 and 3.5 are supported. When the documentation was written, .NET 4.0 had not been released yet, so "2.0 and above" meant 2.0 and 3.5.


Sign in to comment.


No tags entered yet.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!