Vault 2017 - clmloader.dll configuration for web-based customizations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Vault 2017, licensing moved to the Clic framework.
The SDK does a good job of describing how to configure your Windows forms - based application to support this new framework. I've been able to make this work in thick client applications without issue.
The SDK, however, doesn't mention how to address the problem in a web-based application. I've tried the following, but haven't had any success:
-added the configuration noted in the SDK to the web.config of my web application
-Compiled the web project in VS 2015 as x64; copied the x64 clmloader.dll to the bin folder
-Compiled the web project in VS 2015 as x32; copied the x632clmloader.dll to the bin folder
-Compiled the web project in VS 2015 as Any CPU; both scenarios (32 and 64 bit clmloader in the bin folder)
The code I'm using to create the Web Service Manager Object:
Autodesk.Connectivity.WebServices.ServerIdentities idty = new Autodesk.Connectivity.WebServices.ServerIdentities();
idty.DataServer = "localhost";
idty.FileServer = "localhost";
Autodesk.Connectivity.WebServicesTools.UserPasswordCredentials cred = new Autodesk.Connectivity.WebServicesTools.UserPasswordCredentials(idty, txtVaultName.Text, txtUserName.Text, txtUserPassword.Text);
//it fails here:
Autodesk.Connectivity.WebServicesTools.WebServiceManager webSvcMgr = new Autodesk.Connectivity.WebServicesTools.WebServiceManager(cred);
==========
The error that I get when trying to create a Web Service Manager object:
System.Runtime.InteropServices.SEHException was unhandled by user code
ErrorCode=-2147467259
HResult=-2147467259
Message=External component has thrown an exception.
Source=mscorlib
StackTrace:
Server stack trace:
at Autodesk.Connectivity.WebServices.ServiceBase`1.ServiceProxy`1.Invoke(MethodInfo methodInfo, Object[] args, TServiceInterface obj)
at Autodesk.Connectivity.WebServices.RealProxy`1.Invoke(IMethodCallMessage methodCallMsg, MethodInfo methodInfo, InvokeDelegate invokeFunc)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Autodesk.Connectivity.WebServices.IInformationService.GetSupportedProducts()
at Autodesk.Connectivity.WebServices.InformationServiceBase.GetSupportedProducts()
at Autodesk.Connectivity.WebServicesTools.WebServiceManager.WebServiceCredentials_SignIn()
at Autodesk.Connectivity.WebServicesTools.WebServiceManager.SignIn()
at Autodesk.Connectivity.WebServicesTools.WebServiceManager..ctor(IWebServiceCredentials credentials)
at Web_Test_Two.FirstPage.btnSearch_Click(Object sender, EventArgs e) in D:\Working Folder\Forge\Web Test Two\Web Test Two\FirstPage.aspx.cs:line 93
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Any ideas on how to configure a Visual Studio 2015 web project to consume the Web Service Manager?
Thanks in advance