Not able to see xaml files

Hi, I have a project that contains 21 workflows. (.xaml-files). The different files are going to be invoked when needed by a “Main xaml file”.

Whitout having done any changes, it is not longer possible to open most of the xaml files from the project panel. When clicking on a xaml I get a error message as displayed below. Does anyone know what this means and how to fix it?

Error message:

23.8.0-beta.13817+Branch.release-v23.8.0.Sha.120cd3ec54f082511b48105e2cfb52f8897346a8

Method ‘AuthenticateAsync’ in type ‘Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager’ from assembly ‘Microsoft.AspNetCore.Http, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ does not have an implementation.

Error: System.Exception: Method ‘AuthenticateAsync’ in type ‘Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager’ from assembly ‘Microsoft.AspNetCore.Http, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(QCallAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at System.Activities.Presentation.View.ImportDesigner.GetUniqueNamespacesInAssembly(Assembly assembly, AssemblyContextControlItem assemblyContextItem)
at System.Activities.Presentation.View.ImportDesigner.UpdateAvailableNamespaces(Assembly assembly, AssemblyContextControlItem assemblyContextItem)
at System.Activities.Presentation.View.ImportDesigner.GetAvailableNamespaces()
at System.Activities.Presentation.View.ImportDesigner.OnContextChanged()
at System.Activities.Presentation.View.ImportDesigner.OnContextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
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 -2146233054

Hi @wwls

It seems like you’re encountering an issue with opening XAML files in your project. The error message you’re seeing could provide more insight into the problem. However, common reasons for this kind of issue include file corruption, changes in file locations, or compatibility problems.

Check file locations: Ensure that the XAML files are still in the correct location and haven’t been moved or deleted accidentally.

Check for updates: Ensure that your tools, libraries, and software are up to date, as outdated versions could sometimes lead to compatibility issues

If not then…

Reach out for support:If you’re unable to resolve the issue, consider reaching out to the support or community forum of the tool or software you’re using. They might be able to provide specific guidance for your situation.

Hi, Everything is updated to latest versions, and strangely, the project is running fine. I just cant open the xaml files to edit them.

Can you share the screenshots if possible

@wwls

Not much to share I am afraid, as the files are not opening at all. Screenshot of the error message below.

It is possible, for some of the files, to drag them into the designer panel and open them as invoked files. But that only works for some, not for all.

I have also completely removed UiPath, downloaded new, and reinstalled. But that does not change anything.

You can try, hope it may help and please take a back up code always…

1.Rename the project.json and reopen and check if
that fixes
2.Renames the packages folder in
C:\users.nuget and reopen the
project …this downlods the pckages again and
any missing references might be downloaded

Cheers @wwls

OK, did that, all packages was downloaded and installed, but nothing changed. Still not able to open the xaml files.

Is it possible that for some reason they have become corrupted and are beyond fixing?

2.Renames the packages folder in
C:\users.nuget and reopen the
project …this downlods the pckages again and
any missing references might be downloaded

You tried this one…?

Yes, just renamed the folder from “packages” to “packages2”. That is what you mean?

Actually, I now get a second error message saying:

An exception was thrown while activating UiPath.AddIn.Wpf.Addin.

I have tried to search for that adding but I can’t find anything UiPath specific info.