CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS (https://www.cfd-online.com/Forums/ansys/)
-   -   Unexpected error (https://www.cfd-online.com/Forums/ansys/238794-unexpected-error.html)

n1ls1995 October 4, 2021 02:22

Unexpected error
 
Hello everyone,

I am completely new to this forum so i apologize in advance if this thread is not at the correct place, furthermore, please bear with me because English is not my native language.

I must work with the program ANSYS 2021 R2 for my studies but i get an error every time I want to start ANSYS Workbench. The error states:

Ein unerwarteter Fehler ist aufgetreten: Der Typeninitialisierer für "Ansys.Core.Expressions.ExpressionEvaluator" hat eine Ausnahme verursacht.
System.MissingMethodException: Methode nicht gefunden: "System.Collections.Generic.IEnumerable`1<!!0> Microsoft.Scripting.Utils.ReflectionUtils.GetCusto mAttributes(System.Reflection.Assembly, Boolean)".
bei IronPython.Runtime.Binding.PythonBinder.DomainMana ger_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e)
bei IronPython.Runtime.Binding.PythonBinder..ctor(Pyth onContext pythonContext, CodeContext context)
bei IronPython.Runtime.PythonContext..ctor(ScriptDomai nManager manager, IDictionary`2 options)
--- System.Reflection.TargetInvocationException: Failed to load language 'IronPython 2.7.4': Methode nicht gefunden: "System.Collections.Generic.IEnumerable`1<!!0> Microsoft.Scripting.Utils.ReflectionUtils.GetCusto mAttributes(System.Reflection.Assembly, Boolean)".
bei Microsoft.Scripting.Runtime.LanguageConfiguration. LoadLanguageContext(ScriptDomainManager domainManager, Boolean& alreadyLoaded)
bei Microsoft.Scripting.Runtime.DlrConfiguration.LoadL anguageContext(ScriptDomainManager manager, LanguageConfiguration config)
bei Microsoft.Scripting.Runtime.DlrConfiguration.TryLo adLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext& language)
bei Microsoft.Scripting.Runtime.ScriptDomainManager.Ge tLanguageByTypeName(String providerAssemblyQualifiedTypeName)
bei Microsoft.Scripting.Hosting.ScriptRuntime.GetEngin eByTypeName(String assemblyQualifiedTypeName)
bei Ansys.Core.Expressions.ExpressionEvaluator.CreateS criptEngine()
bei Ansys.Core.Expressions.ExpressionEvaluator..cctor( )
--- System.TypeInitializationException: Der Typeninitialisierer für "Ansys.Core.Expressions.ExpressionEvaluator" hat eine Ausnahme verursacht.
bei Ansys.Core.Expressions.ExpressionEvaluator..ctor()
bei Ansys.Core.Expressions.ExpressionManager..ctor()
bei Ansys.ParameterManager.Data.ParameterEvaluator..ct or(ParameterContainer container)
bei Ansys.ParameterManager.Data.ParameterContainer..ct or()
bei Ansys.ParameterManager.Commands.CreateStaticParame terContainerCommand.Execute(IFullContext context)
bei Ansys.Core.Commands.Concurrency.CommandWorkUnit.ex ecuteInContext(CommandContext subContext, IExecutionEngineCallback tracer)
bei Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExe cute(IExecutionEngineCallback executionEngine, CommandContext subContext)
bei Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execu te(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
--- Ansys.Core.Commands.CommandFailedException: Der Typeninitialisierer für "Ansys.Core.Expressions.ExpressionEvaluator" hat eine Ausnahme verursacht.
CommandName: Parameters.CreateStaticParameterContainer()
bei Ansys.Core.Commands.CommandAsyncResult.RethrowFail ureException(Exception e)
bei Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
bei Ansys.Core.DataModel.ProjectSystem.Project.InvokeP rojectInitializationCommands(IProtectedContext commandContext)
bei Ansys.Core.DataModel.ProjectSystem.ResetCommand.Ex ecute(IFullContext context)
bei Ansys.Core.Commands.Concurrency.CommandWorkUnit.ex ecuteInContext(CommandContext subContext, IExecutionEngineCallback tracer)
bei Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExe cute(IExecutionEngineCallback executionEngine, CommandContext subContext)
bei Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execu te(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
--- Ansys.Core.Commands.CommandFailedException: Der Typeninitialisierer für "Ansys.Core.Expressions.ExpressionEvaluator" hat eine Ausnahme verursacht.
CommandName: Reset()
bei Ansys.Core.Commands.CommandAsyncResult.RethrowFail ureException(Exception e)
bei Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
bei Ansys.Core.DataModel.ProjectSystem.ResetCommand.In vokeAndWait(IProtectedContext context)
bei Ans.Program.Runtime.Initialize(RuntimeSettings settings)


I tried everything I could find on the internet to solve this error, but it still won't work. I tried reinstalling it, run it as admin, change environmental variables (even though they were correct).
My Laptop:

Dell XPS 15 9570
Prozessor Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz 2.21 GHz
Installierter RAM 8,00 GB (7,74 GB verwendbar)

I really hope someone can help me because i need to start on the projects this week.


All times are GMT -4. The time now is 12:25.