Differences

This shows you the differences between the selected revisions of the page.

2019-08-05 2019-08-23
proper id casing (martin) net_runtime_newer_than_currently_loaded (martin)
Line 458: Line 458:
If the above is not your case, use [[https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer|Assembly Binding Log Viewer]] (''Fuslogvw.exe'') to debug assembly loading. If the above is not your case, use [[https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer|Assembly Binding Log Viewer]] (''Fuslogvw.exe'') to debug assembly loading.
 +
 +===== [[net_runtime_newer_than_currently_loaded]] Could not load file or assembly 'file:///...\WinSCPnet.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. =====
 +The latest version of [[library|WinSCP .NET assembly]] targets .NET Framework 4.0 and .NET Standard 2.0.
 +
 +You are attempting to load the assembly with an older version of .NET.
 +
 +You can get this error even if your system has the required version of .NET installed, if you are loading the assembly in an environment that has (an older version of) .NET loaded already. This typically happens with older versions of PowerShell. To fix this, either upgrade your PowerShell version, or have your old PowerShell version load newer version of .NET. See [[https://stackoverflow.com/q/2094694/850848|How can I run PowerShell with the .NET 4 runtime?]]
===== [[net_exception_thrown_target_invocation]] Exception has been thrown by the target of an invocation ===== ===== [[net_exception_thrown_target_invocation]] Exception has been thrown by the target of an invocation =====

Last modified: by martin