Issues with the Vault 2012 API

There are a couple of issues that have already been found with the latest SDK.  I want to make sure everyone knows about them upfront.

UserIdTicketCredentials and WebServiceCredentials

 Please avoid using UserIdTicketCredentials and WebServiceCredentials in Autodesk.Connectivity.WebServicesTools.dll.  We found an issue where they log out of Vault incorrectly in certain cases.

If you don't know what these classes are, it's because they are new in Vault 2012.  The classes are used to provide login information to the new WebServiceManager class.

Workaround:  The links below contain fixed versions of the classes.  Basically the logout capability has been disabled so there is no danger for accidental logout.  To use, just add the .cs or .vb  to your project and use the UserIdTicketCredentials_bugfix or WebServiceCredentials_bugfix classes in place of the normal classes.

Click here for the C# fix
Click here for the VB.NET fix

 

 

Menu resets still needed for custom commands

I had this fixed.  I swear.  Unfortunately, something happened between my fix and the final release.  So when you deploy new Vault Explorer commands, you will need to reset the menus before you can see it in the menu bar.

The good news is that toolbars don't need a reset and menus are much more stable than they were in Vault 2011.  You should no longer see cases where the entire menu bar gets jumbled because a custom command was deployed or removed.

Workaround:  Do a menu reset after deploying a custom command.  The reset command can be found manually by right clicking on the menu bar and running the Customize command.  Programmatically, a reset can be done by deleting the menu.xml file in %AppData%\Autodesk[Vault Product]\Objects\Menu.xml.
It's the same as the Vault 2011 workaround.


Comments

6 responses to “Issues with the Vault 2012 API”

  1. Will this bugfix later on come as an servicepack?
    There is also a bug in Autodesk.Connectivity.Explorer.ExtensibilityTools.dll, i have reported it to adn: (We have logged Change Request number 1399765 with our development team as this issue requires a modification to our software) – maybe you should mention it here to.

  2. I’m not sure if I can comment on planned hotfixes or not. Let me put it this way, we will not be fixing the menu bar problem for Vault 2012.
    I’m aware of the issue you logged, but I have not had a chance yet to look at it closely. I’ll contact you directly if I have any questions.
    – Thanks

  3. Jose Castro Avatar
    Jose Castro

    Hi Doug. I have a problem with Vault 2012 .
    I get this error (this can happen when the web services are restarted, Error 300)
    How I can fix?
    thanks for your help

  4. There are a couple of ways to get error 300.
    If your services are working, then start getting 300 at random times, then it may be that the server logged you out.
    If your services are getting error 300 right from the start, then it’s probably that the security header was never set up properly on that service. If you use the WebServiceManager, it should set up the security header for you.

  5. Thiyagarajan Avatar
    Thiyagarajan

    Hi Doug Redmond,
    I’m a dotnet developer, and beginner to AutoDesk, for the past 2 months only I know about Autodesk. My task is to download the entire project(.dst) from Vault to Local path. and open it in AutoCAD. I got an old code from my higher officals but it is supported to Vault 2012. Now I’m working with Vault 2015. I made some research on some sites(including this), and found as Version Compatibility problem. And now I got some stuff(VDF) from this site and successfully downloaded too. But I can’t able to access the downloaded file. All It shows like encrypted characters. Why.? Is there any steps to access these. ?
    At present I’m thinking about to edit the previous code only. Is this a good idea.? or any easy steps are there.?I’m very blank idea in this, so please guide me. Any help would be needful. Thanks.

  6. Offhand, I don’t know of any “encrypted characters” issues. I suggest posing this issue to the Vault Customization group: http://forums.autodesk.com/t5/vault-customization/bd-p/301
    That way you can post screenshots and source code.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading