나는이 튜토리얼 그러나 http://wiki.developerforce.com/page/Integrating_Force.com_with_Microsoft_.NET는
다음하고 C#으로 세일즈 포스에 연결할 수 없음,이 오류가 점점 오전 :
static void Main(string[] args)
{
string userName;
string password;
userName = "[email protected]";
password = "myPassword";
SforceService SfdcBinding = null;
LoginResult CurrentLoginResult = null;
SfdcBinding = new SforceService();
try
{
CurrentLoginResult = SfdcBinding.login(userName, password);
}
catch (System.Web.Services.Protocols.SoapException e)
{
// This is likley to be caused by bad username or password
SfdcBinding = null;
throw (e);
}
catch (Exception e)
{
// This is something else, probably comminication
SfdcBinding = null;
throw (e);
}
}
: 이것은 내 콘솔 응용 프로그램에서 내 코드
LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the API--from outside of your company’s trusted networks, you must add a security token to your password to log in. To receive a new security token, log in to salesforce.com at http://login.salesforce.com and click Setup | My Personal Information | Reset Security Token.
입니다
보안 토큰이 필요하다는 오류가 있지만 문서에 언급 된 내용이없는 것 같아서 얻는 방법을 모르겠습니다.
죄송합니다. 나는 동일한 튜토리얼을 따라 가고있다. 지시에 따라 wsdl xml 파일을 추가하고 서비스 참조를 추가했습니다. 다음 내 코드에서 위와 똑같이 있지만 BST.SFDC를 사용하여 추가했지만 줄 SforceService SfdcBinding = null; "유형 또는 네임 스페이스 이름 'SforceService'를 찾을 수 없습니다 (사용 지시문 또는 어셈블리 참조가 누락 되었습니까?)" –
@TrevorDaniel '[WhateverNameYouGaveYourWSDLFile];'문을 사용해야한다고 생각합니다. . 내일 사무실에 올 때 다시 확인해 드릴 수 있습니다. 그러나 나는 상당히 확신한다. 그것이 당신을 위해 작동하는지 알려주세요. – user1477388
IM이 잘못된 wsdl 파일을 사용했는지 궁금합니다. 엔터프라이즈 하나를 사용하고 있습니까? 어느 것을 사용 했습니까? –