I have a trouble with creating VaultExplorer instance in my program.
First of all, I'm trying to create MS Project ribbon add-in to assign Vault objects to tasks by Id's. This way I'll be able to synchronize properties in both directions.
I took a VaultFileBrowser example from SDK, and placed it in add-in code. This caused several troubles:
VaultExplorer = ExplorerLoader.LoadExplorerUtil( loginInfo.ServerString, loginInfo.Vault, ServiceManager.SecurityService.SecurityHeader.User
Id, ServiceManager.SecurityService.SecurityHeader.Tick et);
I even tryed to use previous version (184.108.40.206) of Autodesk.Connectivity.Explorer.ExtensibilityTools. That cauced an error of redefinition in DownloadFile ( File file, string localPath ) function: VS enforced to use DownloadFile ( File file, Folder folder ) redefinition.
I'm connecting Vault Pro 2010 SP1. I need Explorer Util to open and preview Vault objects directly from Project.
Thanks in advance.
Solved! Go to Solution.
You mention that you are using Vault Pro 2010 SP1. Do you mean Vault Pro 2012? Autodesk.Connectivity.Explorer.ExtensibilityTools.
A null IExplorerUtil value sounds strange. Usually you get an Exception when something goes wrong.
There are various 32 and 64 bit issues you may run into with ExtensibilityTools. Is your OS 64 bit? Is MS Project running as 64 bit? Is your VS project set to compile to 32 or 64 bit?
For some more information see: http://justonesandzeros.typepad.com/blog/2010/09/6
Some things to try:
Right, I'm using Vault Pro 2012.
I have x64 OS, x32 MS Project and VS project set to compile at "Any CPU"?
Using the overloaded version of LoadExplorerUtil, loading the Vault Explorer DLLs helped.
Meanwhile a "SOAP exception 106" appeared. I tried to apply your "UserIdTicketCredentials and WebServiceCredentials bugfix", but how to:
Here is what you need to do to fix error 106:
My current code implements described by you algorithm exactly.
The fault was in my negligence. MS Project ribbon button directly after MainForn.Show() called serviceManager.Dispose().
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.