<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Connecting to Vault 2021 from custom app hangs on &amp;quot;Validating user information&amp;quot; in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10042057#M3421</link>
    <description>&lt;P&gt;I am using the Vault 2021 Prof. SDK connecting to a 2021 server. License manager is in the same server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;using VDF = Autodesk.DataManagement.Client.Framework;

namespace MyTest
{
	class Program
	{
		static void Main(string[] args)
		{
			var settings = new VDF.Vault.Forms.Settings.LoginSettings()
			{
				//ServerName = "192.168.1.6",
				//VaultName = "test"
			};
			var conn = VDF.Vault.Forms.Library.Login(settings);
		}
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty straight forward code. However when the dialog pops up and I enter details and press OK, it just hangs on "Validating user information". I can cancel it, but I can't get in...&lt;/P&gt;&lt;P&gt;When using the client I can login, no problem. First time it asked for license. After that I can just autologin. But from my own app it's just stuck...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using .NET Framework 4.7.1 and I compile for 64-bit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 15:36:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-29T15:36:55Z</dc:date>
    <item>
      <title>Connecting to Vault 2021 from custom app hangs on "Validating user information"</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10042057#M3421</link>
      <description>&lt;P&gt;I am using the Vault 2021 Prof. SDK connecting to a 2021 server. License manager is in the same server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;using VDF = Autodesk.DataManagement.Client.Framework;

namespace MyTest
{
	class Program
	{
		static void Main(string[] args)
		{
			var settings = new VDF.Vault.Forms.Settings.LoginSettings()
			{
				//ServerName = "192.168.1.6",
				//VaultName = "test"
			};
			var conn = VDF.Vault.Forms.Library.Login(settings);
		}
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty straight forward code. However when the dialog pops up and I enter details and press OK, it just hangs on "Validating user information". I can cancel it, but I can't get in...&lt;/P&gt;&lt;P&gt;When using the client I can login, no problem. First time it asked for license. After that I can just autologin. But from my own app it's just stuck...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using .NET Framework 4.7.1 and I compile for 64-bit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 15:36:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10042057#M3421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-29T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Vault 2021 from custom app hangs on "Validating user information"</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10047798#M3422</link>
      <description>&lt;P&gt;Are you connecting using Windows credentials (i.e. ActiveDirectory authentication)?&lt;/P&gt;&lt;P&gt;If so, your code should look something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connection m_connection = null;
WindowsIdentity identity = WindowsIdentity.GetCurrent();
string username = identity.Name;

VDF.Vault.Results.LogInResult results = VDF.Vault.Library.ConnectionManager.LogIn("myServer", "myVault", null, null, AuthenticationFlags.WindowsAuthentication, null);

if (results.Success)
{
	m_connection = results.Connection;
}
			&lt;/LI-CODE&gt;&lt;P&gt;If you're using standard authentication (i.e. Vault username and password) it would look something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connection m_connection = null;

VDF.Vault.Results.LogInResult results = VDF.Vault.Library.ConnectionManager.LogIn("myServer", "myVault", "myUsername", "myPassword", AuthenticationFlags.Standard, null);

if (results.Success)
{
	m_connection = results.Connection;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 13:58:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10047798#M3422</guid>
      <dc:creator>donalmcnamee</dc:creator>
      <dc:date>2021-02-01T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Vault 2021 from custom app hangs on "Validating user information"</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10051088#M3423</link>
      <description>&lt;P&gt;Thank you! Bypassing the login dialog using your second login method allowed to get exceptions back with error message that I could use to progress! In this case the issue was a missing DLL. I had had other issues as well related to DLL's but in the end I got it working! Thanks!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 15:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/connecting-to-vault-2021-from-custom-app-hangs-on-quot/m-p/10051088#M3423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-02T15:18:45Z</dc:date>
    </item>
  </channel>
</rss>

