Ansys Products

Ansys Products

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

Workbench unexpected error

TAGGED: 

    • jnottie
      Subscriber
      Workbench gives an error every time it opens. The Workbench gives an unexpected error Exception has been thrown by the target or an invocation every time you try to open it. I have verified Iron Pyton and the other pre-req software is installed. I tried this with the 2020 R1 and R2 release and on multiple computers. I get the same issue. Can you anyone help?n
    • tsiriaks
      Ansys Employee
      can you provide a screenshot of the error message ? Make sure you expand the 'more details' if exist. Please post the image inline with text (don't attach it)nhave you tried temporarily disabling the security (anti-virus, firewall, etc.) on the machine ?n
    • jnottie
      Subscriber
      Here is the error. Yes, I tried disabling security and tried it on multiple PCS:nAn unexpected error has occurred: Exception has been thrown by the target of an invocation.nSystem.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1 Microsoft.Scripting.Utils.ReflectionUtils.GetCustomAttributes(System.Reflection.Assembly, Boolean)'.n at IronPython.Runtime.Binding.PythonBinder.DomainManager_AssemblyLoaded(Object sender, AssemblyLoadedEventArgs e)n at IronPython.Runtime.Binding.PythonBinder..ctor(PythonContext pythonContext, CodeContext context)n at IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary`2 options)n--- 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)'.n at Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager domainManager, Boolean& alreadyLoaded)n at Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager manager, LanguageConfiguration config)n at Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext& language)n at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String providerAssemblyQualifiedTypeName)n at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String assemblyQualifiedTypeName)n at Ansys.PythonScriptingEngine.PythonScriptingEngine.CreateIronPythonEngine()n at Ansys.PythonScriptingEngine.PythonScriptingEngine.Initialize(CommandManager commandManager)n--- System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.n at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)n at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)n at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)n at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)n at System.Activator.CreateInstance(Type type, Object[] args)n at Ansys.Core.Scripting.ScriptingEngineFactory.createEngine(Boolean debug)n at Ansys.Core.Scripting.ScriptingEngineFactory.GetScriptingEngine()n at Ansys.EKM.Commands.InitWorkbenchServerCommand.RunWorkbenchServerUtilsScript(IFullContext context)n at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)n at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)n at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)n--- Ansys.Core.Commands.CommandFailedException: Exception has been thrown by the target of an invocation.nCommandName: EKM.RunServerScript()n at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)n at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)n at Ansys.Core.Commands.CommandManager.InvokeSessionInitializationCommands()n at Ansys.Core.Kernel.RegisterSessionData()n at Ans.Program.Runtime.Initialize(RuntimeSettings settings)n
    • tsiriaks
      Ansys Employee
      Check this thread nnBasically, your machine has some other IronPython installed which interferes with what ANSYS is trying to use.n
    • jnottie
      Subscriber
      IronRuby was it! That was installed with Automation Studio. I removed IronRuby and all is well. Thank you so much for the help!n
    • tsiriaks
      Ansys Employee
      Nice ! Glad that helps you figure out the issue.n
    • saggukamal538
      Subscriber
      I'm also facing this ironPython kind of errornPlz helpn
    • Ali Kamali
      Subscriber
    • KANTUBHUKTA HEMANTH HARI KISHORE
      Subscriber

       

      Greetings,

                I had an error while opening the model after preparing geometry in spaceclaim.

      Here I'm attaching the image. thanks in advance.

       

    • Christopher Dcruz
      Subscriber
      Workbench gives me this Error everytime I open it.
       
      An unexpected error has occurred: The following required addins could not be loaded: Ans.SceneGraphChart.SceneGraphAddin. The software will exit.
      --- System.AggregateException: The following required addins could not be loaded: Ans.SceneGraphChart.SceneGraphAddin. The software will exit.
       
      --- System.Exception: SceneGraph.Engine - failed to boot up.
         at Ans.SceneGraphChart.Engine..ctor(IConfiguration p_config, IErrorHandler p_errorHandler)
         at Ans.SceneGraphChart.SceneGraphAddin.Load(AddinLoadContext context)
         at Ansys.Core.Addins.AddinManager.setupAddin(String path, String name, AddinBase addin)
         at Ansys.Core.Addins.AddinManager.LoadAddin(String name, String path)
Viewing 9 reply threads
  • The topic ‘Workbench unexpected error’ is closed to new replies.