SDK Logging into Vault Stuck on "Locating Server"

SDK Logging into Vault Stuck on "Locating Server"

Engineeringvac
Explorer Explorer
1,530 Views
4 Replies
Message 1 of 5

SDK Logging into Vault Stuck on "Locating Server"

Engineeringvac
Explorer
Explorer

Hello,

I'm attempting to use the Vault SDK to grab files from the Vault, however when I try to use the Login Form the status never passes "Locating Server".

 

Both Vault Pro and the provided example projects are able to successfully connect.

 

The Code I am trying to connect with, the references and the login window are attached.

 

Thank you

 

static void Main(string[] args)
{
    ADCF.Vault.Currency.Connections.Connection connection = LoginVault(); 
    
    if (connection != null)
    {
        Console.WriteLine("Connection Made");
    } else { Console.WriteLine("Connection Failed"); }
}

public static ADCF.Vault.Currency.Connections.Connection LoginVault()
{
    ADCF.Vault.Forms.Settings.LoginSettings loginSettings = new ADCF.Vault.Forms.Settings.LoginSettings();
    ADCF.Vault.Currency.Connections.Connection localConnection = ADCF.Vault.Forms.Library.Login(loginSettings);
    if (localConnection != null)
    {
        System.Console.WriteLine("Logged In");
        return localConnection;
    }
    return null;
}

 

0 Likes
Accepted solutions (1)
1,531 Views
4 Replies
Replies (4)
Message 2 of 5

Markus.Koechl
Autodesk
Autodesk

You need to add more references and the licensing libraries (see markup) copied to the output folder: 

MarkusKoechl_0-1709797225950.png

 



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 5

Engineeringvac
Explorer
Explorer

Hi Markus, Thanks for the response.

After adding the extra References and dlls I'm still having the same issue.

Do I need to reference the Adsk dlls anywhere for them to be used?

I tried to put them in the project folder as you did as well as the output folder (project/bin/debug) for a debug build. 

Any advice on what to try next?

Thank you.

 

Screenshot 2024-03-11 141632.png

 

0 Likes
Message 4 of 5

Markus.Koechl
Autodesk
Autodesk
Accepted solution

More variables may cause your login to fail; I think you best compare it with a running sample of the SDK. I am about to post a new sample targeting all login types and you can preview and test it from here: API-Onboarding-Sample--Vault-Logins. 



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 5 of 5

Engineeringvac
Explorer
Explorer

Thanks for the help,

After adding the Dlls, changing the target to x64 has fixed the issue.

0 Likes