LinkedIn demo - Could not bind socket.

I cannot run the LinkedIn demo - error mesage:


"Could not bind socket. Address and port already in use."

How can I fix this?

Hi,


We're not aware of such an issue with the TAdvLinkedIn control.
Are the other Cloud Pack demos working as expected for you?

Yes, Facebook works fine.

Project LinkedInDemo.exe raised exception class EidSocketError with message 'Socket Error # 10048 Address already in use".


The line of code: AdvLinkedIn1.DoAuth;

procedure TForm1.btConnectClick(Sender: TObject);
var
  acc: boolean;
begin
  AdvLinkedIn1.App.Key := LinkedInAppKey;
  AdvLinkedIn1.App.Secret := LinkedInAppSecret;

  if AdvLinkedIn1.App.Key <> '' then
  begin
    AdvLinkedIn1.PersistTokens.Location := plIniFile;
    AdvLinkedIn1.PersistTokens.Key := '.\linkedin.ini';
    AdvLinkedIn1.PersistTokens.Section := 'tokens';
    AdvLinkedIn1.LoadTokens;

    acc := AdvLinkedIn1.TestTokens;

    if not acc then
    begin
      AdvLinkedIn1.RefreshAccess;
      AdvLinkedIn1.DoAuth;
    end
    else
    begin
      connected := true;
      ToggleControls;
    end;
  end
  else
    ShowMessage('Please provide a valid application ID for the client component');
end;

Can you please retry with the newest version of TMS Cloud Pack (released on April 19th) that has improved LinkedIn authentication?
If the problem persists, please try creating a new web app from scratch to see if the problem also occurs.