Connect to Organization service authentication issue using SDK code? RRS feed

  • Question

  • I am trying to run the SDK project using WSDL to connect to online CRM with live id.

    It worked fine for Connecting Discovery Service. Failed with Organization Service - exceptions when executing WhoAmI request:

    "ID3242: The security token could not be authenticated or authorized."

    OrganizationRequest request = new OrganizationRequest();
    				request.RequestName = "WhoAmI";
    				OrganizationResponse response = (OrganizationResponse)client.Execute(request);

    I followed the setup.txt file.



    Thursday, February 2, 2012 5:34 PM


  • You should be able to change the sample project in wsdlbasedproxies folder to target .NET Framework 3.5. You can right click the project in solution explorer, and change "Target framework" so that it targets .NET framework 3.5. 
    Daniel Cai | http://danielcai.blogspot.com | Follow @danielwcai
    • Marked as answer by Guangming Monday, February 6, 2012 8:54 PM
    Friday, February 3, 2012 10:47 PM

All replies