[SalesForce] INVALID_LOGIN: Invalid username, password, security token; or user locked out. using C#

I am using the API for WSDL when using the Login method gives me the error,
"INVALID_LOGIN: Invalid username, password, security token, or user locked out."

I am using "Salesforce.com Enterprise Web Services API Version 44.0" version.

I checked the credentials that do the login and are correct, and the Password I add the "Security Token" but I still throwing that error.

below is the complete error :

**urn:fault.enterprise.soap.sforce.com:INVALID_LOGIN
An unexpected error has occurred: INVALID_LOGIN: Invalid username, password, security token; or user locked out.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at ImportLeadsIntoSF.sforce.SforceService.login(String username, String password)
   at ImportLeadsIntoSF.ServiceClient.login()**

Best Answer

I got the answer. You just need to reset security token from your user via https://login.salesforce.com/ with the same credentials.

Please click here to get complete example with screenshots.

Related Topic