GMSD icon indicating copy to clipboard operation
GMSD copied to clipboard

Unhandled Exception: System.IO.FileNotFoundException

Open reithegoat opened this issue 8 years ago • 3 comments

I never used nor coded F# and I only know C# and VB.NET so I don't what any of this means. I understand that it couldn't find a file, but I don't know what file.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass embly 'FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a' or one of its dependencies. The system cannot find the file specified. at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, Int Ptr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInst Count, ObjectHandleOnStack type) at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] met hodInstantiationContext) at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] ge nericTypeArguments, Type[] genericMethodArguments) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttrib uteRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Runtime Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilte rType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters , Boolean& isVarArg) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decora tedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFi lterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecorate dTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly asse mbly, RuntimeType caType) at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit) at System.AppDomain.GetTargetFrameworkName()

reithegoat avatar Jul 07 '17 22:07 reithegoat

FSharp.Core.dll is not in your current working directory (or in one of the directories in your ~~$PATH~~ %PATH%), so the DLL can't be loaded. Copy it to, for example, your current working directory. (It should be in the output directory if you built GMSD from source, though...)

And sorry for the potential creepiness of my quick response time. I'm (somehow) still watching this project, and a notification appeared while browsing github. ¯\_(ツ)_/¯

PoroCYon avatar Jul 07 '17 22:07 PoroCYon

Stupid question. I installed language support for F#. I tried to compile and getting the error then when trying to run it like described above. Where I get the DLL to run it?

wirehack7 avatar Jul 13 '17 13:07 wirehack7

Okay, figured it out. Set to latest supported F# version in VS

wirehack7 avatar Jul 13 '17 13:07 wirehack7