Differences
This shows you the differences between the selected revisions of the page.
2019-08-23 | 2019-10-10 | ||
net_runtime_newer_than_currently_loaded (martin) | COMPLUS_version variable (martin) | ||
Line 464: | Line 464: | ||
You are attempting to load the assembly with an older version of .NET. | 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?]] | + | 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. You can use ''COMPLUS_version'' environment variable for that: |
+ | |||
+ | <code batch> | ||
+ | set COMPLUS_version=v4.0.30319 | ||
+ | powershell | ||
+ | </code> | ||
+ | |||
+ | For details and other options, 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 ===== |