Autodesk Vault Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Is a message on failed login possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is it possible to get a message on a failed login, such as
- license limit has been reached
- Vault database not found
- username and password not found
Thanks
Mike
PS I am using the WebServiceManager in Vault Professional 2013.
Solved! Go to Solution.
Re: Is a message on failed login possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If something goes wrong with the login, you will get an exception when creating the WebServiceManager object. Errors from the Vault server will have an error code.
http://justonesandzeros.typepad.com/blog/2011/11/g
If you want a human readable message, you will have to convert the error code to a human readable string. You can provide you own messages or copy them from the SDK documentation.
http://justonesandzeros.typepad.com/blog/2012/01/b
Re: Is a message on failed login possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
So for login errors, am I on the right path with something like:
try
{
m_serviceManager =
new WebServiceManager(newUserPasswordCredentials(
server, vault, username, password, true));
}
catch (Exception ex)
{
string errorCode;
List<string> restrictionCodes;
GetErrorAndRestrictionCodesString(ex, out errorCode, out restrictionCodes);
}
Re: Is a message on failed login possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yes, that should work. You can test it out pretty easliy. Just log in with a bad password.

