Hi Team,
what does this error mean and how we can fix it.
ppr
(Peter Preuss)
April 22, 2024, 12:27pm
2
Kindly note:
Taken from:
So, when starting new use directly the HTTPClient for it
i am getting as below
should i select HTTPClientFactory for it, or should i add any components for HTTPClient method to appear.
ppr
(Peter Preuss)
April 22, 2024, 1:00pm
4
devasaiprasad_K:
HTTPClientFactory
was not mentioned by us as we mentioned HttpClient
Let us know if your project is set to Windows - Legacy
Anil_G
(Anil Gorthi)
April 22, 2024, 3:58pm
5
@devasaiprasad_K
try the full namespace then you can find
System.Net.Http.HttpClient
or System.Net.Webclient
cheers
1 Like
i tried typing the namespaces but its not appearing…
ppr
(Peter Preuss)
April 23, 2024, 7:22am
7
that’s why we asked
using legacy we would have to reference a package
When working in Legacy on Level UiPath.System.Activities Version 20.4.X then
When it is about the UiPath HttpRequest Activities then bring the different Packages UiPath.System.Activities, UiPath.UiAutomation.Activities, UiPath.WebApi.Activities to a same version level set and make them matching by up/downgrading
For the case Microsoft.Net.HttpClient:
Make the HttpClient available by using the Manage Dependencies / Packages and add
[grafik]
Working within Windows Compatibility it should be available
Hi @ppr the current studio version i am using is 2023.12.0 and i am sure there is no option for windows-Legacy in the version.
Anil_G
(Anil Gorthi)
April 23, 2024, 7:37am
9
@devasaiprasad_K
directly type it in your assign or wherever you are using
cheers
can you give me syntax of directly writing in the code.
Anil_G
(Anil Gorthi)
April 23, 2024, 7:46am
11
@devasaiprasad_K
New System.Net.Http.HttpClient
cheers
ppr
(Peter Preuss)
April 23, 2024, 7:47am
12
we had only asked, what is used at your end.
so import the namespace:
Try again to create a variable of type:
As a last resort:
close all XAMLS
take a backup from the XAML
open it within a text editor (e.g. notepad++)
Add manually the Assembly reference
<AssemblyReference>System.Net.Http</AssemblyReference>
Save an close (notepad++)
click refresh
open XAML and try again
i have followed the steps and some how i did not face any error while compiling but something like Invoke Method: Value cannot be null. (Parameter ‘TargetObject’)
what is still missing
Anil_G
(Anil Gorthi)
April 23, 2024, 10:01am
14
@devasaiprasad_K
Target object is not intialized
cheers
1 Like
Hii @ppr
i tried using HTTPClient but getting error ex: DownloadFile property
ppr
(Peter Preuss)
April 23, 2024, 3:15pm
16
Available methods from HTTPClient Class can be checked here:
as most of the methods do have a return it can also be used within an Assign Activity
Also we would like to mention
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
1 Like
Thank you anil so much for clear Guidance
1 Like
system
(system)
Closed
April 26, 2024, 3:19pm
18
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.