How can I use vault library to get a file in vault????

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
haughtycool
Posts: 6
Joined: Wed Aug 31, 2005 12:22 am
Contact:

How can I use vault library to get a file in vault????

Post by haughtycool » Tue Sep 06, 2005 3:27 am

I use vaultlib.dll to get file in vaul server, but when my program login

m_ClientInstance.Login(strUrl, strUser, strPassword);

I receive a error: An unhandled exception of type 'System.Exception' occurred in vaultlibrary.dll

Additional information: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Invalid URI: The format of the URI could not be determined.

How can I fix this bug???
PS: I can use command line to get file in vault server

Thanks
Regards,
haughtycool

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Sep 06, 2005 7:07 am

It may be that you need to pass it a URL of the form "http://server/VaultService".

However, the best way to see examples of how to use the API is the command line client source code, which you can get from http://www.sourcegear.com/vault/downloads.html (the client API installer or ZIP)

haughtycool
Posts: 6
Joined: Wed Aug 31, 2005 12:22 am
Contact:

Thank you very much

Post by haughtycool » Tue Sep 06, 2005 6:47 pm

Oh, Thanks Dan
It worked perfectly :)
Regards,
haughtycool

Post Reply