ahandlessmason
Greenhorn
So, this is my first time modding stardew valley. I played it on console previously. I Don't know what to do to fix it. And any support would be really appreciated! Thank you in advanced!
20:06:26 TRACE SMAPI Stardew Valley Expanded (from Mods\Stardew Valley Expanded\StardewValleyExpanded\StardewValleyExpanded.dll)...
20:06:26 TRACE SMAPI Failed loading PDB for 'StardewValleyExpanded.dll'. Technical details:
Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters)
at StardewModdingAPI.Framework.ModLoading.AssemblyLoader.GetReferencedLocalAssemblies(FileInfo file, HashSet`1 visitedAssemblyNames, IAssemblyResolver assemblyResolver)+MoveNext() in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModLoading\AssemblyLoader.cs:line 286
20:06:26 ERROR SMAPI - Stardew Valley Expanded 1.14.18 because its DLL couldn't be loaded.
20:06:26 TRACE SMAPI (Error: BadImageFormatException: Could not load file or assembly 'StardewValleyExpanded, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058)
File name: 'StardewValleyExpanded, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> BadImageFormatException: Cannot load a reference assembly for execution.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at StardewModdingAPI.Framework.ModLoading.AssemblyLoader.Load(IModMetadata mod, FileInfo assemblyFile, Boolean assumeCompatible) in SMAPI\Framework\ModLoading\AssemblyLoader.cs:line 159
at StardewModdingAPI.Framework.SCore.TryLoadMod(IModMetadata mod, IModMetadata[] mods, AssemblyLoader assemblyLoader, IInterfaceProxyFactory proxyFactory, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase, HashSet`1 suppressUpdateChecks, Nullable`1& failReason, String& errorReasonPhrase, String& errorDetails) in SMAPI\Framework\SCore.cs:line 1951)
It worked! Thank you!Thanks for the log. This one unfortunately doesn't have much to go on. It seems to cut off before even loading a save.
I do see there's a message about SDV Expanded not loading due to an issue with the Dll file.
It's odd though; the BadImageFormatException is usually for something like running a file on the wrong architecture.Code:20:06:26 TRACE SMAPI Stardew Valley Expanded (from Mods\Stardew Valley Expanded\StardewValleyExpanded\StardewValleyExpanded.dll)... 20:06:26 TRACE SMAPI Failed loading PDB for 'StardewValleyExpanded.dll'. Technical details: Mono.Cecil.Cil.SymbolsNotMatchingException: Symbols were found but are not matching the assembly at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching) at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters) at StardewModdingAPI.Framework.ModLoading.AssemblyLoader.GetReferencedLocalAssemblies(FileInfo file, HashSet`1 visitedAssemblyNames, IAssemblyResolver assemblyResolver)+MoveNext() in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModLoading\AssemblyLoader.cs:line 286 20:06:26 ERROR SMAPI - Stardew Valley Expanded 1.14.18 because its DLL couldn't be loaded. 20:06:26 TRACE SMAPI (Error: BadImageFormatException: Could not load file or assembly 'StardewValleyExpanded, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058) File name: 'StardewValleyExpanded, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> BadImageFormatException: Cannot load a reference assembly for execution. at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at StardewModdingAPI.Framework.ModLoading.AssemblyLoader.Load(IModMetadata mod, FileInfo assemblyFile, Boolean assumeCompatible) in SMAPI\Framework\ModLoading\AssemblyLoader.cs:line 159 at StardewModdingAPI.Framework.SCore.TryLoadMod(IModMetadata mod, IModMetadata[] mods, AssemblyLoader assemblyLoader, IInterfaceProxyFactory proxyFactory, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase, HashSet`1 suppressUpdateChecks, Nullable`1& failReason, String& errorReasonPhrase, String& errorDetails) in SMAPI\Framework\SCore.cs:line 1951)
Can you deleting the SDV Expanded folder; then do a fresh install of it. Just to make sure you're not missing a file; or that it's corrupted.
Then give it a retry.
If that doesn't work:
The wiki also has this you could try: https://stardewvalleywiki.com/Moddi...hooting#.22Could_not_load_file_or_assembly.22
I'd also verify you're up to date on other dependencies like Dotnet