Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

error while starting ansys aim: Ansys.Core.Expressions.ExpressionEvaluator

    • Fireengineering
      Subscriber

      Hello everyone!


      I just downloaded Discovery AIM student and installed it afterwards. As i tried to to open the workbench for the first time, this error shows up (for those of you wondering: it's in german):


       


      An unexpected error has occurred: Der Typeninitialisierer für "Ansys.Core.Expressions.ExpressionEvaluator" hat eine Ausnahme verursacht.


      System.MissingMethodException: Methode nicht gefunden: "System.Collections.Generic.IEnumerable`1 Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)".


      bei IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e)


      bei IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext pythonContext, CodeContext context)


      bei IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary`2 options)


      The error goes on and on for quite a bit. If there is a need for the rest of it, I'll be happy to provide it.


      Unfortunately my google research wasn't helpful at all. I would really appreciate any form of solution or information on how to fix it.


      Thank you for your help!

    • tsiriaks
      Ansys Employee

      Please try using ANSYS Student package instead if you want to use Workbench.

      Thanks,

      Win

    • n1ls1995
      Subscriber
      .

      I have the same error, how do i fix it? I downloaded the student version and have tried everything i could find on the internet but nothing helps.

      .
    • heritbutani
      Subscriber
      .

      An unexpected error has occurred: The type initializer for 'Ansys.Core.Expressions.ExpressionEvaluator' threw an exception.

      System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1 Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)'.

        at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e)

        at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext pythonContext, CodeContext context)

        at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary`2 options)

      --- System.Reflection.TargetInvocationException: Failed to load language 'IronPython 2.7.4': Method not found: 'System.Collections.Generic.IEnumerable`1 Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)'.

        at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager domainManager, Boolean& alreadyLoaded)

        at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager manager, LanguageConfiguration config)

        at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext& language)

        at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String providerAssemblyQualifiedTypeName)

        at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String assemblyQualifiedTypeName)

        at Ansys.Core.Expressions.ExpressionEvaluator.CreateScriptEngine()

      --- System.TypeInitializationException: The type initializer for 'Ansys.Core.Expressions.ExpressionEvaluator' threw an exception.

        at Ansys.Core.Expressions.ExpressionEvaluator..ctor()

        at Ansys.Core.Expressions.ExpressionManager..ctor()

        at Ansys.ParameterManager.Data.ParameterEvaluator..ctor(ParameterContainer container)

        at Ansys.ParameterManager.Data.ParameterContainer..ctor()

        at Ansys.ParameterManager.Commands.CreateStaticParameterContainerCommand.Execute(IFullContext context)

        at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)

        at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)

        at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)

      --- Ansys.Core.Commands.CommandFailedException: The type initializer for 'Ansys.Core.Expressions.ExpressionEvaluator' threw an exception.

      CommandName: Parameters.CreateStaticParameterContainer()

        at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)

        at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)

        at Ansys.Core.DataModel.ProjectSystem.Project.InvokeProjectInitializationCommands(IProtectedContext commandContext)

        at Ansys.Core.DataModel.ProjectSystem.ResetCommand.Execute(IFullContext context)

        at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)

        at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)

        at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)

      --- Ansys.Core.Commands.CommandFailedException: The type initializer for 'Ansys.Core.Expressions.ExpressionEvaluator' threw an exception.

      CommandName: Reset()

        at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)

        at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)

        at Ansys.Core.DataModel.ProjectSystem.ResetCommand.InvokeAndWait(IProtectedContext context)

      .
Viewing 3 reply threads
  • The topic ‘error while starting ansys aim: Ansys.Core.Expressions.ExpressionEvaluator’ is closed to new replies.
[bingo_chatbox]