


{"id":233221,"date":"2022-08-18T12:28:36","date_gmt":"2022-08-18T12:28:36","guid":{"rendered":"\/forum\/forums\/topic\/ansys-workbench-unexpected-error-problem\/"},"modified":"2022-08-25T15:00:35","modified_gmt":"2022-08-25T15:00:35","slug":"ansys-workbench-unexpected-error-problem","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-workbench-unexpected-error-problem\/","title":{"rendered":"ANSYS Workbench Unexpected Error Problem"},"content":{"rendered":"<p><strong>I have checked the forums and have not found a viable solution yet. One of the people has the same problem as me under this forum for &#8216;ANSYS Products&#8217;, but I couldn&#8217;t understand how they solved it because it seems they are using Linux and I use Windows. Another person with the same problem as me in the forum for &#8216;ANSYS Free Student Softwares&#8217; has their posts replied, but I couldn&#8217;t access it because it denies me even opening the page. My last solution is to make a new post myself.<\/strong><\/p>\n<p><strong>So&#8230;I downloaded ANSYS Free Student Software to learn Workbench and Fluent. Fluent and the other applications work well, and I have no problems opening them except for Workbench alone. Whenever I open the workbench, the same unexpected error comes up no matter what I do.<\/strong><\/p>\n<p><strong>It loads all the plugins, initializes then instant error.<\/strong><\/p>\n<p><strong>&#8220;Unexpected error: The type initializer for &#8216;Ansys.Core.Expressions.ExpressionEvaluator&#8217; threw an exception.&#8221;<\/strong><\/p>\n<p><strong>The same error over and over again. How can I get my work done at this rate? Then, whenever I open the &#8216;Show Details&#8217; button. This is what comes up.<\/strong><\/p>\n<p>An unexpected error has occurred: The type initializer for &#8216;Ansys.Core.Expressions.ExpressionEvaluator&#8217; threw an exception.<br \/>System.MissingMethodException: Method not found: &#8216;System.Collections.Generic.IEnumerable`1&lt;!!0&gt; Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)&#8217;.<br \/>&nbsp; &nbsp;at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e)<br \/>&nbsp; &nbsp;at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext pythonContext, CodeContext context)<br \/>&nbsp; &nbsp;at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary`2 options)<br \/>&#8212; System.Reflection.TargetInvocationException: Failed to load language &#8216;IronPython 2.7.4&#8217;: Method not found: &#8216;System.Collections.Generic.IEnumerable`1&lt;!!0&gt; Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)&#8217;.<br \/>&nbsp; &nbsp;at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager domainManager, Boolean&amp; alreadyLoaded)<br \/>&nbsp; &nbsp;at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager manager, LanguageConfiguration config)<br \/>&nbsp; &nbsp;at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext&amp; language)<br \/>&nbsp; &nbsp;at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String providerAssemblyQualifiedTypeName)<br \/>&nbsp; &nbsp;at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String assemblyQualifiedTypeName)<br \/>&nbsp; &nbsp;at Ansys.Core.Expressions.ExpressionEvaluator.CreateScriptEngine()<br \/>&nbsp; &nbsp;at Ansys.Core.Expressions.ExpressionEvaluator..cctor()<br \/>&#8212; System.TypeInitializationException: The type initializer for &#8216;Ansys.Core.Expressions.ExpressionEvaluator&#8217; threw an exception.<br \/>&nbsp; &nbsp;at Ansys.Core.Expressions.ExpressionEvaluator..ctor()<br \/>&nbsp; &nbsp;at Ansys.Core.Expressions.ExpressionManager..ctor()<br \/>&nbsp; &nbsp;at Ansys.ParameterManager.Data.ParameterEvaluator..ctor(ParameterContainer container)<br \/>&nbsp; &nbsp;at Ansys.ParameterManager.Data.ParameterContainer..ctor()<br \/>&nbsp; &nbsp;at Ansys.ParameterManager.Commands.CreateStaticParameterContainerCommand.Execute(IFullContext context)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)<br \/>&#8212; Ansys.Core.Commands.CommandFailedException: The type initializer for &#8216;Ansys.Core.Expressions.ExpressionEvaluator&#8217; threw an exception.<br \/>CommandName: Parameters.CreateStaticParameterContainer()<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)<br \/>&nbsp; &nbsp;at Ansys.Core.DataModel.ProjectSystem.Project.InvokeProjectInitializationCommands(IProtectedContext commandContext)<br \/>&nbsp; &nbsp;at Ansys.Core.DataModel.ProjectSystem.ResetCommand.Execute(IFullContext context)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)<br \/>&#8212; Ansys.Core.Commands.CommandFailedException: The type initializer for &#8216;Ansys.Core.Expressions.ExpressionEvaluator&#8217; threw an exception.<br \/>CommandName: Reset()<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)<br \/>&nbsp; &nbsp;at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)<br \/>&nbsp; &nbsp;at Ansys.Core.DataModel.ProjectSystem.ResetCommand.InvokeAndWait(IProtectedContext context)<br \/>&nbsp; &nbsp;at Ans.Program.Runtime.Initialize(RuntimeSettings settings)<\/p>\n<p><strong>Solutions I tried:<\/strong><\/p>\n<ol>\n<li><strong>Reinstalled 5 times to be exact.<\/strong><\/li>\n<li><strong>Redownloaded the software from the website and then reinstalled it.<\/strong><\/li>\n<li><strong>Restarting my computer.<\/strong><\/li>\n<li><strong>Checking my environment paths, and they linked correctly.<\/strong><\/li>\n<\/ol>\n<p><strong>All the above solutions were done, and not a single one worked. I am annoyed. I want to contact support but cannot, and it directs me to this because I have the student software. Can someone help me?<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-233221","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["261672","68381"],"_bbp_author_ip":["23.218.93.111"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["3559"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["233221"],"_bbp_forum_id":["27796"],"_bbp_engagement":["68381","261672"],"_bbp_voice_count":["2"],"_bbp_reply_count":["4"],"_bbp_last_reply_id":["233793"],"_bbp_last_active_id":["233793"],"_bbp_last_active_time":["2022-08-25 15:00:25"]},"test":"din_hnoutlook-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/233221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/233221\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=233221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}