.Net Framework assembly is not found at runtime, although it has been loaded.
Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening?Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening? Hi,
we are using a custom .Net Framework assembly. To make it work under Matlab we are loading the dll file (and all it´s dependencies) by calling
NET.addAssembly
At runtime we then get the message:
"The file or assembly “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or a dependency of it could not be found. The system cannot find the specified file"
But the System.Runtime.CompilerServices.Unsafe.dll version 4.0.4.1 was loaded beforehand (to be sure we checked the version with ildasm.exe).
If we add the assembly to the gac everthing is ok.
Does anyone know what is happening? .net framework, net.addassembly MATLAB Answers — New Questions