Cannot Open main.xaml file

Guys,

I cannot open any of my main.xaml files from local desktop or from shared drive. The error is exactly the same as the one from this post below-

But the solution (delete the JSON file and .local folder) does not resolve my issue.

Any idea?

Thanks!

18.4.5+Branch.support/v2018.4.Sha.2a53a262e2c1098055c3ecbdabe73d45e0a6dc29

An internal error has occurred. It is recommended to restart UiPath Studio.

Open Document Error: UiPath.Studio.Contracts.RecoverableException β€”> UiPath.Studio.Contracts.RecoverableException: The project β€˜\RPA\project.json’ could not be opened: The semaphore has been disposed… β€”> System.ObjectDisposedException: The semaphore has been disposed.
at System.Threading.SemaphoreSlim.CheckDispose()
at System.Threading.SemaphoreSlim.WaitAsync(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at UiPath.Studio.Plugin.Workflow.Services.AppDomainContainerManager.d__8.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\AppDomainContainerManager.cs:line 35
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Services.AppDomainController.<>c__DisplayClass15_0.<b__0>d.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\AppDomainController.cs:line 73
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Services.AppDomainController.d__15.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\AppDomainController.cs:line 65
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Services.AppDomainController.d__14.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\AppDomainController.cs:line 57
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Project.ProjectLoaderService.d__23.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\ProjectLoaderService.cs:line 71
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__44.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 317
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__41.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 237
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Core.Services.PersistableServiceBase3.<OnOpenAsync>d__15.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0 --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase3.d__15.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 198
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.d__38.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\ProjectServiceBase.cs:line 220
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Core.Services.PersistableServiceBase`3.d__8.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__17.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 203
β€” End of inner exception stack trace β€”
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__17.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 213
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__14.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 104
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.ShellApplication.StudioShellApplication.d__17.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\App\StudioShellApplication.cs:line 200
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.ShellApplication.StudioShellApplication.<b__16_0>d.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\App\StudioShellApplication.cs:line 183
β€” End of stack trace from previous location where exception was thrown β€”
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_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

Hi @Victor_Victory
Have you restarted the UiPath studio and open the xaml file

Thanks
Ashwin S

I had tried closing and re-open it, then tried to open the main.xaml file
or simply double click the main.xaml file, both failed the same way.

@Victor_Victory - Please follow these steps:

  1. Delete Project.json for that project hopefully that will work. If not then check is there any space in name of xaml for example - It shouldn’t be Victory Victory.xaml but VictoryVictory.xaml or anything like that.

Best!
Anmol

1 Like

Thanks for the suggestion, It does not help on my case.

Just FYI.

I cannot find out the root cause of this and not able to resolve it at this point thus I re-build my VDI to re-install the UIPath studio. The issue is not longer existed from the new environment.

just create a new project in Uipath studio and colose after just closing and copy it’s project.json
and in existing project delete the project.json and copy that file here.

Also your project should contain Main.xaml if not then rename it

I have the same problem, there is a solution because these alternatives did not solve my problem