Problems with Gmail Automation (StudioX academy course)

Hi everyone! I’m new to UiPath and I am trying to build my first automation using StudioX (https://academy.uipath.com/courses/build-your-first-automation-with-studiox) but whenever I use Gmail, it does not seem to work. Regardless if it was to send or open email, it gives out this error message: (first few lines for brevity)

System.IO.FileNotFoundException: Could not load file or assembly ‘System.Linq.Async, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704xxxxxx’. The system cannot find the file specified. at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.GetTokenKeyFromAccountAsync(OAuth2ConnectionData data)
at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.UpsertTokenKeyAsync(OAuth2ConnectionData data)
at UiPath.Shared.Authentication.Google.Services.GoogleOAuth2Service.<>c__DisplayClass25_0.<b__0>d.MoveNext()

I’m not exactly sure what to do from here, I tried to search the internet but to no avail. Will gladly appreciate your help!

@cjuc_05

looks like some package issue

either it is not downloaded or try to change the package versions from manage packages

cheers

Hello,

I had faced the same issue and the following steps helped me resolve it:
1.Downloaded the Nuget package manually from System.Linq.Async and moved it to C:\Users<UserName>\AppData\Local\Programs\UiPath\Studio\Packages.
image

2.Under Manage Packages, searched for System.Linq.Async under Local and installed the same.

Hope this helps!

Hello Kuleena
Thank you for the useful tip.
I managed to add the package to local system files.
However I am wondering if the system.Linq.Async has been added correctly to StudioX
Under settings → Manage Resources → I added this link
https://nuget.info/packages/System.Linq.Async/5.0.0
Do I need to do anything else, as the problem still persists
Thank you for your support
Marwa

Hi Marwa,

If the .nupkg file is placed in the local folder, then it should be listed under the ‘Local’ tab under Manage Packages window. And the local path should be mentioned under settings.

One another way is to go to ‘All Packages’ and search directly for System.Linq.Async and install the needed version from there.

Note: In the view filters option, please make sure to select “Include Prerelease”.

Hope this helps!