This morning I installed the current version 2021.10 of the Studio in a VM. All works well so far, but when I want to create a new Windows-Legacy project, the following System.IO.IOException: Connection closed error message appears:
Element kann nicht geöffnet werden: UiPath.Studio.Contracts.RecoverableException: Das Projekt 'C:\Users\root\Documents\UiPath\LeererProzess\project.json' konnte nicht geöffnet werden: Connection closed..
---> System.IO.IOException: Connection closed.
at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient`1.<>c__DisplayClass21_1`1.<<Invoke>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler)
at UiPath.CoreIpc.ServiceClient`1.<>c__DisplayClass21_1`1.<Invoke>b__2(Exception ex)
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler)
at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.<>c__DisplayClass23_0.<<CreateContainer>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.CreateContainer(TargetFramework targetFramework, String[] assemblyPaths)
at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.CreateProcess(ProjectProcessArgs args)
at UiPath.Studio.Plugin.Workflow.Project.Services.ProjectLoaderService.CreateProjectProcess(IWorkflowProjectModel project)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsyncInternal(String path, IOpenOptions options)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsync(String path, IOpenOptions options)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsync(String path, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
--- End of inner exception stack trace ---
at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase`3.OpenAsync(OpenInformation openInfo)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenProjectAsync(OpenInformation openInfo, IProject newProject)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenNewProjectAsync(IProject newProjectItem)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.CreateNewProjectAsync(IProjectTemplate template)
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.<>c__DisplayClass61_0.<<OnNewProjectCommand>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.ExecuteCommand(Func`1 commandExecute)
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.OnNewProjectCommand(String project)
at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088
The Windows Event viewer shows the following application error …
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2021-10-24T07:13:46.3857009Z" />
<EventRecordID>3465</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-BAMBI</Computer>
<Security />
</System>
- <EventData>
<Data>UiPath.Studio.Launcher.exe</Data>
<Data>21.10.0.0</Data>
<Data>6165bd6c</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.19041.1288</Data>
<Data>3e55bd0b</Data>
<Data>e0434352</Data>
<Data>0012b5b2</Data>
<Data>1c58</Data>
<Data>01d7c8a6adaf9de1</Data>
<Data>C:\Program Files\UiPath\Studio\net461\UiPath.Studio.Launcher.exe</Data>
<Data>C:\WINDOWS\System32\KERNELBASE.dll</Data>
<Data>bb0a7610-e809-4737-bc80-3b6c531ed7b8</Data>
<Data />
<Data />
</EventData>
</Event>
… and dotNET Runtime error.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2021-10-24T07:13:45.4277651Z" />
<EventRecordID>3464</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-BAMBI</Computer>
<Security />
</System>
- <EventData>
<Data>Application: UiPath.Studio.Launcher.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.BadImageFormatException at
UiPath.Studio.Plugin.Workflow.Services.ProjectProcessThemeService.LoadGlobalResources()
at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessThemeService.ApplyTheme()
at UiPath.Studio.Plugin.Workflow.Configuration.ProjectProcessServiceHost+<>c__DisplayClass13_0.<LoadTheme>b__0() at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at
System.Windows.Threading.DispatcherOperation.InvokeImpl() at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) at
MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at
System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at
MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at
System.Windows.Threading.DispatcherOperation.Invoke() at
System.Windows.Threading.Dispatcher.ProcessQueue() at
System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at
MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at
MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at
System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at
MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at
MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at
System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at
System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at
System.Windows.Application.RunInternal(System.Windows.Window) at
System.Windows.Application.Run(System.Windows.Window) at
UiPath.Studio.Project.ProjectApp.Main(System.String[]) at
UiPath.Studio.Launcher.Program.Main(System.String[])</Data>
</EventData>
</Event>
The exception is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid (Source). Windows projects (dotNET 5) works without any problems.
Thanks for tips and hints to solve this problem.