You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
#75
Closed
Cloudmersive opened this issue
Nov 8, 2020
· 6 comments
When using MedallionShell together with .NET Framework 4.7.2, it is sporadically generating file not found errors for:
Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
With this call stack:
System.IO.FileNotFoundException:
at Medallion.Shell.PlatformCompatibilityHelper.get_IsWindows (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.PlatformCompatibilityHelper.WrapStandardInputStreamIfNeeded (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.ProcessCommand..ctor (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.Shell.Run (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
The cause appears to be that a reference to the System.Runtime.InteropServices.RuntimeInformation assembly conflicts with the version of System.Runtime.InteropServices.RuntimeInformation included in .NET Framework 4.7.2 and later
The text was updated successfully, but these errors were encountered:
@Cloudmersive did you try adding a binding redirect in your app/web.config file?
I'm kind of surprised that you would be hitting this because the latest version of that library (which we are using) does not have different builds for different versions .NET framework. It just has one build for net45.
If the binding redirect doesn't solve the issue for you, I can publish a new version of MedallionShell that has a specific build for net471 that will just use the "in-box" version of RuntimeInformation.
@madelson Thanks for the quick response. Yeah, we have been trying binding redirects but it is still happening. If you could add a 471+ build that used the "in-box" version of RuntimeInformation that would be great as that should fix the issue.
When using MedallionShell together with .NET Framework 4.7.2, it is sporadically generating file not found errors for:
Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
With this call stack:
System.IO.FileNotFoundException:
at Medallion.Shell.PlatformCompatibilityHelper.get_IsWindows (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.PlatformCompatibilityHelper.WrapStandardInputStreamIfNeeded (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.ProcessCommand..ctor (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
at Medallion.Shell.Shell.Run (MedallionShell, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null)
The cause appears to be that a reference to the System.Runtime.InteropServices.RuntimeInformation assembly conflicts with the version of System.Runtime.InteropServices.RuntimeInformation included in .NET Framework 4.7.2 and later
The text was updated successfully, but these errors were encountered: