Tip: vault.exe on Linux with System.Windows.Forms error

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
tomt84
Posts: 109
Joined: Tue Dec 20, 2005 4:44 am
Location: Manchester

Tip: vault.exe on Linux with System.Windows.Forms error

Post by tomt84 » Sun Apr 22, 2007 8:41 pm

This was originally going to be a support request but I fixed it myself, so here's a tip.

If you get this error:

Code: Select all

<vault>
<error>
The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Could not load file or assembly 'System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
</error>
<exception>
System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Could not load file or assembly 'System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
  at VaultCmdLineClient.VaultCmdLineClient.Login (Boolean bAllowAuto, Boolean bSaveSession) [0x00000] 
  at VaultCmdLineClient.VaultCmdLineClient.Login () [0x00000] 
  at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandListRepositories () [0x00000] 
  at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand (VaultCmdLineClient.Args curArg) [0x00000] 
</exception>
<result success="no" />
</vault>
then install the libmono-system-web1.0-cil package (on Ubuntu - similar idea for other distros, possibly different name).

I'd only installed the .NET 2.0 Winforms stuff because that's what I target with my own development, but vault.exe targets version 1 assemblies.
Tom Fanning

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Mon Apr 23, 2007 7:23 am

Thanks a bunch for the additional information. :-)

Locked