+ 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;