(Solved)Server crash on startup


  • Running Win 7 64bit. Server always crashes on startup with the following dump:

    --BEGIN DUMP--
    Dump Time
    08/21/2016 10:20:25

    Exception
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Shared.Utils.TypeExtensions' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
    at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
    at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
    at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
    at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord 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.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
    at System.Reflection.CustomAttribute.IsDefined(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
    at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
    at Eco.Shared.Utils.TypeExtensions.CacheExtensionMethods()
    --- End of inner exception stack trace ---
    at Eco.Shared.Utils.TypeExtensions.CreatableTypes(Type baseType, Assembly assembly, Boolean includeSelf)
    at Eco.ModKit.ModDataSync.CheckDuplicates(Type type)
    at Eco.ModKit.ModDataSync..ctor()
    --- End of inner exception stack trace ---
    at Eco.Server.PluginManager..ctor()
    at Eco.Server.MainClass.Main(String[] args)

    Inner Exception
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Eco.Shared.Utils.TypeExtensions' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
    at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
    at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
    at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
    at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord 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.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
    at System.Reflection.CustomAttribute.IsDefined(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
    at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
    at Eco.Shared.Utils.TypeExtensions.CacheExtensionMethods()
    --- End of inner exception stack trace ---
    at Eco.Shared.Utils.TypeExtensions.CreatableTypes(Type baseType, Assembly assembly, Boolean includeSelf)
    at Eco.ModKit.ModDataSync.CheckDuplicates(Type type)
    at Eco.ModKit.ModDataSync..ctor()
    --- End of inner exception stack trace ---
    at Eco.Server.PluginManager..ctor()
    at Eco.Server.MainClass.Main(String[] args)

    --END DUMP--

    Help would be appreciated.


  • 4
    Posts
    969
    Views
    Log in to reply


  • Hey @darkensign Sorry to hear you have issues .. Looking at the crash log i suspect there is an issue with your .net installation at first glance. ( since i am not sure where that crash is happening on startup) Anyway at first i recommend to updater your .net installation to 4.6.2 , this has so far resolved most issues with the server, you can download it from here http://go.microsoft.com/fwlink/?LinkId=780601



  • Worked perfectly! Thank you.



  • no problem! happy to help !!!


4
Posts
969
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!