Standalone app: clmloader.dll configuration for window-form applications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Vault 2017, licensing moved to the Clic framework.
I done a window-forms application that connect to Vault INDIPENDENTLY from the official Vault Professional Client.
This application works fine from 2015 to 2016. With 2017...i have some problem.
I'm not able to connect to the server - it fails immediatly with a 'Autodesk.Connectivity.WebServices.VaultLicenseException'.
I have checked ALL the dlls references, also the infamous clmloader.dll :-)....without any good news.
So, to avoid to lose more time, i tried the VaultList example - just to connect to the server....and i discovered that also it fails to connect.
After some tries, i finally discovered that the machine needs the client installed.
Here there is my code
Dim flags As VDF.Vault.Currency.Connections.AuthenticationFlags = VDF.Vault.Currency.Connections.AuthenticationFlags.Standard
Dim results As VDF.Vault.Results.LogInResult = VDF.Vault.Library.ConnectionManager.LogIn(server, vaultDB, user, password, flags, Nothing)
>>>> results.Success FAILS
Here the Exception
Autodesk.Connectivity.WebServices.VaultLicenseException non è stata gestita
Actor=""
ErrorCode=319
HResult=-2146233087
Lang=""
LicenseErrorCode=18
Message=Generata eccezione di tipo 'Autodesk.Connectivity.WebServices.VaultLicenseException'.
MessageId=""
Node=""
Role=""
Source=mscorlib
Stack=""
StackTrace:
Server stack trace:
in Autodesk.Connectivity.WebServices.ServiceBase`1.ServiceProxy`1.Invoke(MethodInfo methodInfo, Object[] args, TServiceInterface obj)
in Autodesk.Connectivity.WebServices.RealProxy`1.Invoke(IMethodCallMessage methodCallMsg, MethodInfo methodInfo, InvokeDelegate invokeFunc)
Exception rethrown at [0]:
in System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
in Autodesk.Connectivity.WebServices.IInformationService.GetSupportedProducts()
in Autodesk.Connectivity.WebServices.InformationServiceBase.GetSupportedProducts_()
in Autodesk.Connectivity.WebServices.InformationServiceBase.GetSupportedProducts()
in Autodesk.Connectivity.WebServicesTools.WebServiceManager.WebServiceCredentials_SignIn()
in Autodesk.Connectivity.WebServicesTools.WebServiceManager.SignIn()
in Autodesk.Connectivity.WebServicesTools.WebServiceManager..ctor(IWebServiceCredentials credentials, Boolean reSignIn, Boolean autoTransferOwnership, Int32 timeout)
in Autodesk.Connectivity.WebServicesTools.WebServiceManager..ctor(IWebServiceCredentials credentials)
in VaultList.Form1.button1_Click(Object sender, EventArgs e) in C:\Program Files (x86)\Autodesk\Autodesk Vault 2017 SDK\vs15\VB\VaultList\Form1.vb:riga 55
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
in VaultList.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:riga 81
Is there a way to avoid this problem? We have more than 50 pc that needs this small read-only application to speak with Vault - it's quite impossible to install the Vault Professional Client on ALL pc. If yes, so why the SDK has the LogIn commands anymore?
Maybe is enough to copy some specific DLLs?
Any help is really appreciated
Dave