我在连接Salesforce的专业版时遇到异常。我尝试在开发人员Salesforce中成功连接。我正在使用REST。我是Salesforce的初学者,并且不知道导致此错误的原因。
这是我的代码:
public static async Task ConnectSalesforce()
{
//create auth client to retrieve token
var auth = new AuthenticationClient();
//get back URL and token
await auth.UsernamePasswordAsync("ConsumerId", "Consumersecret", "username", "password"+"security token", "https://login.salesforce.com/services/oauth2/token");
var forceClient = new ForceClient(auth.InstanceUrl, auth.AccessToken, auth.ApiVersion);
Console.Write("Connected to Salesforce.");
}
}
以下是例外:“重试您的请求”