- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I have created a Windows Service, which must connect to Vault as a Vault user to search and change some descriptions. It does this on specific days and times.
If I run it "by hand" there is no problem. I log in to Vault on the specific day and time and the process is carried out correctly.
But if I try to do the same from the Service, it gets stuck making the connection to Vault.
I have tried to log in both ways (WebServiceManager and ConnectionManager.Login)
new Autodesk.Connectivity.WebServicesTools.WebServiceManager(mCred)
VDF.Vault.Library.ConnectionManager.LogIn(server, database, user, password, AuthenticationFlags.Standard, null);
ServerIdentities mServerId = new ServerIdentities();
mServerId.DataServer = server; //replace Description by command line args[i]
mServerId.FileServer = server;
string mVaultName = database;
string mUserName = user;
string mPassword = password;
LicensingAgent mLicAgent = LicensingAgent.Client;
** LicensignAgent.Client (For read/write access) to Vault.
** This works fine if I call it from the desktop, process, etc. But it fails if I do it from a service.
Could someone please provide a clear explanation of:
- How to configure the service: LocalService, NetWorkService, LocalSystem or User (And how to set Username and Password when starting the service from C# code or from InstallUtils)
- How to configure the connection to Vault as a Vault user or Windows user, Autodesk user or ID.
- To make it compatible with the scheduled service. I can't get the service to start from the installer as a domain user, which I think is necessary, or how to have the correct code and combination of the Service and the Vault connection.
Thanks.
Solved! Go to Solution.