❔ Hi i need help with error SeverityCodeDescriptionProjectFileLineSuppression StateErrorCS1501

Here the code
18 Replies
Professor Chen
here the function
Henkypenky
Henkypenky2y ago
so your method takes 0 arguments yet you call it with one argument
Professor Chen
ik but what should i modify here
Henkypenky
Henkypenky2y ago
if you want to pass a string, just change the method signature from: public static void Method() to public static void Method(string arg) also
Professor Chen
string proxy
Henkypenky
Henkypenky2y ago
please don't use webclient
Professor Chen
i already tried why
Henkypenky
Henkypenky2y ago
it's old
Professor Chen
what should i use
Henkypenky
Henkypenky2y ago
HttpClient
Professor Chen
ok thx
Henkypenky
Henkypenky2y ago
WebClient is deprecated what did you try?
Professor Chen
i fell really like a dumbass i had the same function written down and i forgot to add proxy that was the error and i didnt see it
MODiX
MODiX2y ago
Sorry @Professor Chen your message contained blocked content and has been removed!
Professor Chen
well thx for ur help
Henkypenky
Henkypenky2y ago
no problem
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.