function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vivek Kashyap 2Vivek Kashyap 2 

SOAP API Login Error C#

Attempting to login C#, Soap API, enterprise wsdl. I am getting INVALID_LOGIN: Invalid username, password, security token; or user locked out.error. 
My Code is 
SoapClient loginClient = new SoapClient("Soap");
            string sfdcUserName = "abc@gmail.com";
            string sfdcPassword = "Password";
            string sfdcToken = "LegAguRb2CzEifnoiPNcVT5UE";
            //Login
            LoginResult result = loginClient.login(null, sfdcUserName, string.Concat(sfdcPassword,sfdcToken));
            //Read the information
            mSessionId = result.sessionId;
            mServerURL = result.serverUrl;