Command Line Null Reference Exception
Moderator: SourceGear
Command Line Null Reference Exception
I'm attempting a command line get for the first time and am accessing a server which resides in another state via IP address. I'm getting a Common Language Runtime Debugging Services error popup saying "Application has generated an exception that could not be handled." When I acknowledge that popup, I get the following:
Unhandled Exception: System.NullReferenceException": Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
I'm using Version 3.1.5.3546.
I can connect successfully using the GUI.
I do not see any errors in the logs.
The exact command I'm using is:
"s:\program files\SourceGear\Vault Client\vault.exe" get -user "xxxx" -password "xxxx" -host xx.xx.xx.xx -repository "AS BASE POS" -destpath "s:\Base2" $/Base
Can anyone help, please?
Unhandled Exception: System.NullReferenceException": Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
I'm using Version 3.1.5.3546.
I can connect successfully using the GUI.
I do not see any errors in the logs.
The exact command I'm using is:
"s:\program files\SourceGear\Vault Client\vault.exe" get -user "xxxx" -password "xxxx" -host xx.xx.xx.xx -repository "AS BASE POS" -destpath "s:\Base2" $/Base
Can anyone help, please?
The command line client does support specifying an IP address. When you connect via the GUI client, do you use the same IP address?
You might try turning on client logging (see the knowledge base) and seeing whether it outputs an error that is more useful.
Additionally, the source code for the command line client is available if you have the aptitude to run it through a debugger on your end to see exactly the error is happening.
You might try turning on client logging (see the knowledge base) and seeing whether it outputs an error that is more useful.
Additionally, the source code for the command line client is available if you have the aptitude to run it through a debugger on your end to see exactly the error is happening.
command line logging
In Knowledge Base, I see information on turning on logging for Windows Forms Client, Shadow Folder, Visual Studio .NET, Visual C++ 6 amd VB 6. Which config file applies for command line clients?
log attached
The resulting log is attached. It doesn't tell me anything new. Does it you?
By the way, when I connect via the GUI, I do use the IP address, just as I do in the command line.
Thank you. I appreciate your quick responses.
By the way, when I connect via the GUI, I do use the IP address, just as I do in the command line.
Thank you. I appreciate your quick responses.
- Attachments
-
- SVclient.txt
- (0 Bytes) Downloaded 657 times
The attachment
Hopefully this attachment will work...
- Attachments
-
- SVclient.txt
- (1.54 KiB) Downloaded 780 times
ip address
We are not using a proxy in the GUI.
I am making an assumption that the IP should work in the command line if it works in the GUI, which it does. I am now trying to get the exact URL and will try that to confirm. Would you expect such a difference possible between the GUI and the command line?
I am making an assumption that the IP should work in the command line if it works in the GUI, which it does. I am now trying to get the exact URL and will try that to confirm. Would you expect such a difference possible between the GUI and the command line?
Demo mode?
I have the same problem ... just upgraded to 3.1 and getting null reference when using the command line client.
I am in "demo" mode ... no serial number entered yet ... should the command line client work in demo mode?
David
I am in "demo" mode ... no serial number entered yet ... should the command line client work in demo mode?
David
failing on Vault LISTUSERS
The command i tried was:
vault LISTUSERS -host xxx -user xyz -password abc
and I get
Unhandled Exception: System.NullReferenceException": Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
just like the prior poster ...
David
(and like the other stephn, i can connect with gui client to same host no problem)
vault LISTUSERS -host xxx -user xyz -password abc
and I get
Unhandled Exception: System.NullReferenceException": Object reference not set to an instance of an object.
at VaultClientNetLib.VaultConnection.Logout()
at VaultClientOperationsLib.ClientInstance.Logout()
at VaultCmdLineClient.VaultCmdLineClient.Logout(Boolean bForceLogout)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
just like the prior poster ...
David
(and like the other stephn, i can connect with gui client to same host no problem)
resolution?
If you have some resolution to the problem, please post it. I'm making no progress here.
Thank you.
Thank you.
working
We downloaded (with jeremy help) and built the Client API which will create a command line client ... after it was built, it works, so the presumtion is the shipped command line client that came with the latest build may be corrupted somehow.
david
david