-
-
March 25, 2022 at 10:06 pm
stja
SubscriberI downloaded the student version of Ansys and when I try to open workbench I get a windown that says "Unexpected error: The type initializer for 'Ansys.Core.Expressions.ExpressionEvaluator' threw an exception. I tried uninstalling and then reinstalling that didn't work. I tried Updating my drivers that didnt work. I tried power cycling my computer it didnt fix it either. I saw someone in another question was talking about uninstalling some python thing but they never said how and Im also not sure if thats the problem.
Here's the Details from the Error message:
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()
at Ansys.Core.Expressions.ExpressionEvaluator..cctor()
--- 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)
at Ans.Program.Runtime.Initialize(RuntimeSettings settings)
Thanks
March 26, 2022 at 1:03 amstja
SubscriberThrough more research I found that by uninstalling a program called IronRuby Console Workbench was able to open as its supposed to. I have no Idea why this works or what this means but it worked
May 6, 2023 at 4:08 amVinícius Silva
SubscriberThank you so much!
Viewing 2 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- Not seeing any items in the ANSYS Workbench toolbox?
- Missing Analysis Systems from toolbox
- “An error occurred while starting the solver module.” – Maybe licence problem?
- Please recommend the configuration of the computer workstation
- FLUENT application Failed to start
- No license available at this time
- ANSYS License Manager Error
- I am using MacBook Pro with M1chip, how can I install or any other ways to use Ansys ?
- Your product license has numerical problem size limits…..
- Acoustics model in Ansys 18.1
Top Contributors-
7690
-
4484
-
2957
-
1435
-
1322
Top Rated Tags© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-