<?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 Re: Vault 2017.0.2 update preventing api login - sometimes in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786359#M7904</link>
    <description>&lt;P&gt;Since I started this, I'm going to work it until it is finished...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user I hard-wired to log into the server is a user that was only grated read-only permissions anyway.&amp;nbsp; So I changed the login setting from .Standard to .ReadOnly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VDF.Vault.Library.ConnectionManager.LogIn(strVaultServer, strVault, strUser, strPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.ReadOnly, Nothing)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved the problem for the invalid license version error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next problem was the Windows 7 issue with the Vault Server Autodesk.Connectivity.WebServices.dll file or sub file not found.&amp;nbsp; This problem was mysteriously solved when I installed Visual Studio Community (express really) 2015 onto the Windows 7 computers.&amp;nbsp; SO something in the visual studio install fixed everything.&amp;nbsp; I did not let the install finish before I tested it the second time.&amp;nbsp; The installer only got past: C++ redistributables (for 2013, 2015) and .Net 4.5.1 Multi, and a few other windows core system updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can get a chime in on which core system most likely fixed the dll issue, then I can require that in my programs package that will force said update on the user's computers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 22:48:38 GMT</pubDate>
    <dc:creator>JamieVJohnson2</dc:creator>
    <dc:date>2017-01-05T22:48:38Z</dc:date>
    <item>
      <title>Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6783586#M7901</link>
      <description>&lt;P&gt;This is another case of the other guy's computer not working.&amp;nbsp; I've written a custom UI (WPF) that utilizes vault api to get file, folder, and item data from vault, then download files to user's desktop.&amp;nbsp; Very simplistic, no vault api forms being used, written so the user can find files in a structured and safe read-only mode.&amp;nbsp; Here is my code for connecting to vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Shared Function LoginVault() As Vault.Currency.Connections.Connection
        Dim sec As Security = Security.Instance
        Dim strVaultServer As String = sec.VaultServer
        Dim strVault As String = sec.VaultVault
        Dim strUser As String = sec.VaultViewerUsername
        Dim strPassword As String = sec.VaultViewerPassword
        Dim lgResults As Vault.Results.LogInResult =
               VDF.Vault.Library.ConnectionManager.LogIn(strVaultServer, strVault, strUser, strPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.Standard, Nothing)
        If lgResults.Success = True Then
            Return lgResults.Connection
        Else
            Dim strErrorMessages As String = String.Empty
            For Each ErrMsg As KeyValuePair(Of Vault.Results.LogInResult.LogInErrors, String) In lgResults.ErrorMessages
                strErrorMessages += Vault.Results.LogInResult.LogInErrors.GetName(GetType(Vault.Results.LogInResult.LogInErrors), ErrMsg.Key) &amp;amp; vbCr &amp;amp; ErrMsg.Value &amp;amp; vbCr
            Next
            MsgBox("Unable to log into vault." &amp;amp; vbCr &amp;amp; strErrorMessages)
            Dim ehLogin As New ErrorHandler(New System.Exception(strErrorMessages &amp;amp; strVaultServer &amp;amp; " ; " &amp;amp; strVault &amp;amp; " ; " &amp;amp; strUser &amp;amp; " ; " &amp;amp; strPassword))
            ehLogin.QuietlyHandleIt()
            Try
                If MsgBox("Attempt manual login?", MsgBoxStyle.YesNo, "Vault Connection") = MsgBoxResult.Yes Then
                    Dim conn As Vault.Currency.Connections.Connection = Nothing
                    conn = LoginVaultManually()
                    Return conn
                End If
            Catch ex As Exception
                Dim eh As New ErrorHandler(ex)
                eh.HandleIt()
            End Try
        End If
        Return Nothing
    End Function&lt;/PRE&gt;&lt;P&gt;Recently I updated it to display the errors from logging in for best quality control.&amp;nbsp; On my own machine (which has vault client installed) everything works fine here.&amp;nbsp; On my test computer, I get the error "Incompatible version, can't get a license".&amp;nbsp; Initially I thought that may be related to the dlls that came with the SDK vs the updated 2017.0.2 version.&amp;nbsp; First of all I don't need it to get a license, I really only want read only access.&amp;nbsp; A select few windows 7 computers&amp;nbsp;before today were also complaining about "InvalidServer;Could not load file or assembly 'Autodesk.Connectivity.WebServices.Interop.dll' or one of its dependencies. The specified module could not be found."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My references for this project are:&lt;/P&gt;&lt;P&gt;Autodesk.Connectivity.WebServices (Copy Local, ver 22.0.0.0, per visual studio)&lt;/P&gt;&lt;P&gt;Autodesk.Connectivity.WebServices.Interop (Copy Local, ver 22.0.0.0, per visual studio)&lt;/P&gt;&lt;P&gt;Autodesk.Connectivity.WebServices.WCF (Copy Local, ver 22.0.56.0, per visual studio)&lt;/P&gt;&lt;P&gt;Autodesk.DataManagement.Client.Framework (Copy Local, ver 22.0.0.0, per visual studio)&lt;/P&gt;&lt;P&gt;Autodesk.DataManagement.Client.Framework.Vault (Copy Local, ver 22.0.0.0, per visual studio)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added clmloader.dll to the project,by&amp;nbsp;using the method of manually copying the files to the project folder, and adding it to the project, then setting it as Build Action: Content, Copy to Output Direct: Copy always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a 2017.0.2 sdk set of dll's I should be using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This setup worked ok for 4 months, until this update.&amp;nbsp; Now It doesn't.&amp;nbsp; Please help me to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 23:26:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6783586#M7901</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-01-04T23:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6785797#M7902</link>
      <description>&lt;P&gt;More specifically, the error I have to overcome is thus:&lt;/P&gt;&lt;P&gt;lgresults.Exception:&lt;/P&gt;&lt;P&gt;{"Exception of type 'Autodesk.Connectivity.WebServices.VaultLicenseMismatchException' was thrown."}&lt;/P&gt;&lt;P&gt;Target Site:&lt;/P&gt;&lt;P&gt;{Void ValidateLicenseForEdition(System.Collections.Generic.IEnumerable~1[Autodesk.Connectivity.WebServices.Product])}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is saying 2017 dlls from the SDK don't get along with the 2017.0.2 hotfix update (and subsequent sever vault migrations).&amp;nbsp; Am I correct?&lt;/P&gt;&lt;P&gt;Can I take the dlls from Vault explorer, and use them instead?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 19:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6785797#M7902</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-01-05T19:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786097#M7903</link>
      <description>&lt;P&gt;Additional info, I installed Vault Professional 2017 (out of box version 22.0.56.0).&amp;nbsp; Without ever opening vault client on my test computer, I ran my program.&amp;nbsp; It then opened vault license manager, and asked if I wanted to select standalone or network license.&amp;nbsp; (what I expect when I first open Vault Pro 2017 client explorer).&amp;nbsp; I selected network, gave it the server, it continued to log in and function properly (My coded version does work when vault client is installed).&amp;nbsp; So, to double check, I uninstalled Vault Pro, and the program went back to its ways complaining that vault license is incompatible version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That means, the server license manager is looking for a mechanism that comes with the vault client, that does not come with the sdk.&amp;nbsp; Any clue as to what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:07:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786097#M7903</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-01-05T21:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786359#M7904</link>
      <description>&lt;P&gt;Since I started this, I'm going to work it until it is finished...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user I hard-wired to log into the server is a user that was only grated read-only permissions anyway.&amp;nbsp; So I changed the login setting from .Standard to .ReadOnly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VDF.Vault.Library.ConnectionManager.LogIn(strVaultServer, strVault, strUser, strPassword, VDF.Vault.Currency.Connections.AuthenticationFlags.ReadOnly, Nothing)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved the problem for the invalid license version error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next problem was the Windows 7 issue with the Vault Server Autodesk.Connectivity.WebServices.dll file or sub file not found.&amp;nbsp; This problem was mysteriously solved when I installed Visual Studio Community (express really) 2015 onto the Windows 7 computers.&amp;nbsp; SO something in the visual studio install fixed everything.&amp;nbsp; I did not let the install finish before I tested it the second time.&amp;nbsp; The installer only got past: C++ redistributables (for 2013, 2015) and .Net 4.5.1 Multi, and a few other windows core system updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can get a chime in on which core system most likely fixed the dll issue, then I can require that in my programs package that will force said update on the user's computers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:48:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786359#M7904</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-01-05T22:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786426#M7905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vault 2017 API basically only works when Vault Client 2017 is installed. It's because of the new 'clic'&amp;nbsp;licensing mechanism. I've been trying everything as well with some web services we've developed. Before 2017 we could just deploy the web services to the ADMS server and they would be able to query Vault, but since 2017 we have to install Vault Client as well on the server although it's never being used. It just needs to be there to have the clic licensing mechanism working correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other thing about the read-only connection. The enum you are using in the LogIn method is correct, but probably you will still see a license being pulled (reserved) in LMTools. Right? To fix this you'll need to add an app.config to your project. If it's not in there yet, right click your project in the solution browser, choose Add --&amp;gt; New Item --&amp;gt; Application Configuration File.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of this file should be minimal:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;configSections&amp;gt;
    &amp;lt;section name="Licensing" type="Autodesk.Connectivity.WebServices.LicensingSection, Autodesk.Connectivity.WebServices"/&amp;gt;
  &amp;lt;/configSections&amp;gt;
  &amp;lt;Licensing edition="None"/&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building your code there will be an .exe.config file on the output location. After launching your application no license is being pulled of the server anymore &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6786426#M7905</guid>
      <dc:creator>psaarloos</dc:creator>
      <dc:date>2017-01-05T23:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Vault 2017.0.2 update preventing api login - sometimes</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6788196#M7906</link>
      <description>&lt;P&gt;For those still looking, I have narrowed it down to one final issue.&amp;nbsp; The users of any custom program that utilizes the 2017 SDK dlls, MUST install the Microsoft Visual C++ Redistributable for 2015 (64bit in my environment) aka version "14".&amp;nbsp; This can be done by brute force:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=53840" target="_blank"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=53840&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or by visual studio's project properties / Publish tab / Prerequisites... button / Visual C++ "14" Runtime Libraries check boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you everybody for all your attentive help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 17:30:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-2017-0-2-update-preventing-api-login-sometimes/m-p/6788196#M7906</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2017-01-06T17:30:50Z</dc:date>
    </item>
  </channel>
</rss>

