Not Possible to Create a Project with Studio 2021.10

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

image

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.

@StefanSchnell this is unexpected. We are not aware of this issue. Can you please let us know the exact version of Studio where you replicate the issue? It is the stable or the preview channel?

If you can share a DIagnostic Tool result would help us with the investigation.

Is this error thrown every time you create a new project? Or is this happening only for the specific project?

Can you also share some details about the VM? Operating system, hardware config, os language, and anything you think might be important.

Thanks,
Alexandru

1 Like

@alexandru

Hello Alexandru,
thank you very much for your fast answer.

Here a short image description:

  1. Step: Choose Process

image

  1. Step: Press Create button

image

  1. Step: Error occurs

image

Info of Studio:

Studio 2021.10.0 - 10/12/2021
Community License
User-mode Installation
License Provider: Internal
Activation ID: UIP-720ab1cdef
Microsoft Windows 10 Pro 64-bit
5.0.10

No Preview.

I sent you the diagnostic file in a direct message.

The error always appears when I select Windows - Legacy compatibility mode.

OS: Windows 10 Professional x64 Version 21H1 Build 19043.1288 with Feature Experience Pack 120.2212.3920.0. More information about the hardware in a separate message.

Thanks for your support.

Best regards
Stefan

Thanks, received both your DMs with the requested details. We will investigate this asap and let you know when we find something.

Also, on Monday we will be releasing a new build (21.10.2) with some new fixes. Even if I don’t have any knowledge of a change that might fix this…it never hurts to try with the latest version :slight_smile:

2 Likes

@alexandru

Hello Alexandru,
with the release 21.10.2 all is working well and as expected, thank you very much.
Best regards
Stefan

1 Like

Thanks for the update. This is good news.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.