question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RestClient.Execute does not exist

See original GitHub issue

Using the example on the wiki:

public T Execute<T>(RestRequest request) where T : new() { var client = new RestClient(); client.BaseUrl = BaseUrl; client.Authenticator = new HttpBasicAuthenticator(_accountSid, _secretKey); request.AddParameter("AccountSid", _accountSid, ParameterType.UrlSegment); // used on every request var response = client.Execute<T>(request); return response.Data; }

I get the following error:

Error 1 ‘RestSharp.RestClient’ does not contain a definition for ‘Execute’ and no extension method ‘Execute’ accepting a first argument of type ‘RestSharp.RestClient’ could be found (are you missing a using directive or an assembly reference?)

Using 101.3 dll on Windows Phone 7.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexeyzimarevcommented, Jun 25, 2019

@Programn00b I don’t control that website and I tried really hard to find out who owns the domain and where the source for the website is located but found nothing. So, I probably need to get a new domain and create a new website.

0reactions
Programn00bcommented, Jun 25, 2019

@alexeyzimarev thanks for replying, now I know that my problem isn’t just because of my code 😃 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

'RestClient' does not contain a definition for 'Execute'
I believe that both .Execute and the rest of the non-async methods have been deprecated in newer versions of RestSharp. There is a...
Read more >
Execute is not a member of RestClient in Windows ...
I have to make connection to ConnectWise through API code. ... Now I have to create web application. And here I have some...
Read more >
Rest Client Execute method not working
I have gone through all the properties and methods, but nothing seems working. I believe there is something wrong with Uri.
Read more >
Problem with RestSharp in Invoke Code: RestRequest ...
Hello All, I'm trying to make an API request from Invoke Code activity (C#). The code looks like this: var client = new...
Read more >
Usage | RestSharp
RestSharp uses HttpClient internally to make HTTP requests. It's possible to reuse the same HttpClient instance for multiple RestClient ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found