Windows 10: getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,...

Discus and support getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,... in Windows 10 Software and Apps to solve the problem; I have VS 2017 ver 15.9.24 installed and trying to run migration in .NET core project. Target version is .NET core 2.1. I also have latest version of... Discussion in 'Windows 10 Software and Apps' started by KALPESHDAVE, Jun 24, 2020.

  1. getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,...


    I have VS 2017 ver 15.9.24 installed and trying to run migration in .NET core project. Target version is .NET core 2.1. I also have latest version of .NET core SDK 2.1.807 x64 installed in my machine.

    I am getting following error.


    PM> add-migration testMigration
    System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. Exception from HRESULT: 0x80131040
    File name: 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at System.ModuleHandle.ResolveMethodRuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount
    at System.ModuleHandle.ResolveMethodHandleInternalCoreRuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount
    at System.ModuleHandle.ResolveMethodHandleInternalRuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext
    at System.Reflection.CustomAttribute.FilterCustomAttributeRecordCustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg
    at System.Reflection.CustomAttribute.GetCustomAttributesRuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent
    at System.Reflection.CustomAttribute.GetCustomAttributesRuntimeType type, RuntimeType caType, Boolean inherit
    at System.Attribute.GetCustomAttributesMemberInfo element, Type type, Boolean inherit
    at System.Attribute.GetCustomAttributeMemberInfo element, Type attributeType, Boolean inherit
    at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T]MemberInfo element
    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.<>c.<FindContextTypes>b__12_5TypeInfo t
    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext
    at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext
    at System.Linq.Enumerable.ConcatIterator`1.MoveNext
    at System.Linq.Enumerable.DistinctIterator`1.MoveNext
    at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext
    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextTypes
    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.FindContextTypeString name
    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContextString contextType
    at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigrationString name, String outputDir, String contextType
    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImplString name, String outputDir, String contextType
    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0
    at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.ExecuteAction action


    Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. Exception from HRESULT: 0x80131040
    PM>

    :)
     
    KALPESHDAVE, Jun 24, 2020
    #1

  2. error message: Can not load file assembly MOM.Implementation or one of its the system cannot find file specified

    When we sign on we are getting an error message - Can not load file assembly MOM.Implementation or one of its

    the system cannot find file specified
     
    BillKurucz, Jun 24, 2020
    #2
  3. Runtime Error of File Explorer .

    Hello,

    The Runtime Error that you received might have occurred due to some software conflicts or corrupted Windows system files. To help you out with your concern, we suggest running the
    System File Checker tool to repair missing or corrupted system files on your
    computer.

    If the issue persists, we advise that you follow the troubleshooting steps provided by
    Deepika Gowda found on this thread
    about resolving Runtime Error in Windows 10.

    Let us know the outcome and if you need further help.
     
    Stephanie Sal, Jun 24, 2020
    #3
  4. getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,...

    Error Loading operating system

    I'm getting the BIOS System Configuration screen and at the very end

    searching for Boot Record from IDE-0..OK
    Error Loading operating system

    What can I do to make it boot?
     
    doradeno2003, Jun 24, 2020
    #4
Thema:

getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,...

Loading...
  1. getting error System.IO.FileLoadException: Could not load file or assembly 'System.Runtime,... - Similar Threads - getting error System

  2. Exception calling "Load" with "1" arguments: "Could not load file or assembly....

    in Windows 10 Gaming
    Exception calling "Load" with "1" arguments: "Could not load file or assembly....: Error message:Exception calling "Load" with "1" arguments: "Could not load file or assembly '1963176 bytes loaded from Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a...
  3. Exception calling "Load" with "1" arguments: "Could not load file or assembly....

    in Windows 10 Software and Apps
    Exception calling "Load" with "1" arguments: "Could not load file or assembly....: Error message:Exception calling "Load" with "1" arguments: "Could not load file or assembly '1963176 bytes loaded from Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a...
  4. Could not load file or assembly 'Cefsharp.core.Runtime.dll'

    in Windows 10 Network and Sharing
    Could not load file or assembly 'Cefsharp.core.Runtime.dll': Hi, I having a problem with my programs, I've tried to open it but it show' up like this: I think this is a window problem because I just reset my window 10 this morning ? I've tried +troubleshooting +sfc /scannow+re-install the program and the Cefsharp.core.Runtime.dll it...
  5. Could not load file or assembly 'Cefsharp.core.Runtime.dll'

    in Windows 10 Gaming
    Could not load file or assembly 'Cefsharp.core.Runtime.dll': Hi, I having a problem with my programs, I've tried to open it but it show' up like this: I think this is a window problem because I just reset my window 10 this morning ? I've tried +troubleshooting +sfc /scannow+re-install the program and the Cefsharp.core.Runtime.dll it...
  6. Could not load file or assembly 'Cefsharp.core.Runtime.dll'

    in Windows 10 Software and Apps
    Could not load file or assembly 'Cefsharp.core.Runtime.dll': Hi, I having a problem with my programs, I've tried to open it but it show' up like this: I think this is a window problem because I just reset my window 10 this morning ? I've tried +troubleshooting +sfc /scannow+re-install the program and the Cefsharp.core.Runtime.dll it...
  7. Help with this error code please. "Could not load file or assembly...

    in Windows 10 BSOD Crashes and Debugging
    Help with this error code please. "Could not load file or assembly...: See the end of this message for details on invoking just-in-time JIT debugging instead of this dialog box. ************** Exception Text ************** System.IO.FileNotFoundException: Could not load file or assembly 'RSy3_AudioAppStreamsWrapper.dll' or one of its...
  8. .NET Framework Error. Could Not load file or assembly 'Phhmoxto.Version= 1.0.0.0....

    in Windows 10 BSOD Crashes and Debugging
    .NET Framework Error. Could Not load file or assembly 'Phhmoxto.Version= 1.0.0.0....: See the end of this message for details on invoking just-in-time JIT debugging instead of this dialog box. ************** Exception Text ************** System.BadImageFormatException: Could not load file or assembly 'Phhmoxto, Version=1.0.0.0, Culture=neutral,...
  9. Could not load file or assembly 'RSy3_AudioAppStreamsWrapper.dll

    in Windows 10 BSOD Crashes and Debugging
    Could not load file or assembly 'RSy3_AudioAppStreamsWrapper.dll: see the end of this message for details on invoking just-in-time jit debugging instead of this dialog box. ************** exception text ************** system.io.filenotfoundexception: could not load file or assembly 'rsy3_audioappstreamswrapper.dll' or one of its...
  10. Could not load file or assembly 'RSy3_AudioAppStreamsWrapper.dll

    in Windows 10 BSOD Crashes and Debugging
    Could not load file or assembly 'RSy3_AudioAppStreamsWrapper.dll: I got this error after i had visual studio installed. Need some help here please Thank you! See the end of this message for details on invoking just-in-time JIT debugging instead of this dialog box. ************** Exception Text **************...