RE: value cannot be null exception with vault 2.0

"Dan Schreiber" <[email protected]> Mon, 1 Mar 2004 20:29:44 -0600
Newsgroups gmane.comp.version-control.sourcegear-vault.user
Message-ID <[email protected]>
Any Clever Way To Unpin Many Files?Well, that's a new one. Had you ever
created any profiles?

Try logging in via the GUI client, and see if you get the same result.  If
you can successfully create profiles via the GUI client, they will be
available from the IDE as well.

To answer your underlying question:  To automatically connect to from the
IDE, create a profile, have it automatically connect to a repository, then
choose that profile to automatically connect.  If you can't create the
profiles, we'll have to figure out why.

-Dan
  -----Original Message-----
  From: [email protected]
[mailto:[email protected]]On Behalf Of dave wanta
  Sent: Monday, March 01, 2004 6:37 PM
  To: [email protected]
  Subject: [vault-list] value cannot be null exception with vault 2.0


  Hi All,

  I just upgraded to Vault 2.0. In my 1.1x version, I used to have it
automatically log on, when I opened a project in VS.NET, under source
control.

  Now, I get a dialog called "Connect To Server", which is fine.

  However, I want it to automatically log me on, but the checkbox is grayed
out. The "Select Profile" combo box is also empty. When I click "Edit
Profiles", I get the following exception:

  Any comments?  How can I get VS.NET to automatically log me in.

  Thanks,
  Dave


  See the end of this message for details on invoking
  just-in-time (JIT) debugging instead of this dialog box.

  ************** Exception Text **************
  System.ArgumentNullException: Value cannot be null.
  Parameter name: keys
     at System.Array.Sort(Array keys, Array items, Int32 index, Int32
length, IComparer comparer)
     at System.Windows.Forms.ListBox.Sort()
     at System.Windows.Forms.ListBox.EndUpdate()
     at VaultClientPresentationLib.FormEditProfiles..ctor(ClientInstance ci)
     at
VaultClientPresentationLib.FormConnect.buttonEditProfiles_Click(Object
sender, EventArgs e)
     at System.Windows.Forms.Control.OnClick(EventArgs e)
     at System.Windows.Forms.Button.OnClick(EventArgs e)
     at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
     at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
     at System.Windows.Forms.Control.WndProc(Message& m)
     at System.Windows.Forms.ButtonBase.WndProc(Message& m)
     at System.Windows.Forms.Button.WndProc(Message& m)
     at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
     at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


  ************** Loaded Assemblies **************
  mscorlib
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll
  ----------------------------------------
  VaultPresentationLib
      Assembly Version: 2.0.0.0
      Win32 Version: 2.0.0.0
      CodeBase:
file:///C:/Program%20Files/SourceGear/Vault_VS2002/VaultPresentationLib.DLL
  ----------------------------------------
  System
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
  ----------------------------------------
  VaultClientOperationsLib
      Assembly Version: 2.0.0.0
      Win32 Version: 2.0.0.0
      CodeBase:
file:///C:/Program%20Files/SourceGear/Vault_VS2002/VaultClientOperationsLib.
DLL
  ----------------------------------------
  VaultClientNetLib
      Assembly Version: 2.0.0.0
      Win32 Version: 2.0.0.0
      CodeBase:
file:///C:/Program%20Files/SourceGear/Vault_VS2002/VaultClientNetLib.DLL
  ----------------------------------------
  VaultClientUILib
      Assembly Version: 2.0.0.0
      Win32 Version: 2.0.0.0
      CodeBase:
file:///C:/Program%20Files/SourceGear/Vault_VS2002/VaultClientUILib.DLL
  ----------------------------------------
  System.Windows.Forms
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e
089/system.windows.forms.dll
  ----------------------------------------
  VaultLib
      Assembly Version: 2.0.0.0
      Win32 Version: 2.0.0.0
      CodeBase:
file:///C:/Program%20Files/SourceGear/Vault_VS2002/VaultLib.DLL
  ----------------------------------------
  System.Web.Services
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system.web.services/1.0.3300.0__b03f5f7f11d50a
3a/system.web.services.dll
  ----------------------------------------
  System.Drawing
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/sy
stem.drawing.dll
  ----------------------------------------
  System.Xml
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system
.xml.dll
  ----------------------------------------
  System.Web
      Assembly Version: 1.0.3300.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system.web/1.0.3300.0__b03f5f7f11d50a3a/system
.web.dll
  ----------------------------------------
  232oxl95
      Assembly Version: 0.0.0.0
      Win32 Version: 1.0.3705.288
      CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
  ----------------------------------------

  ************** JIT Debugging **************
  To enable just in time (JIT) debugging, the config file for this
  application or machine (machine.config) must have the
  jitDebugging value set in the system.windows.forms section.
  The application must also be compiled with debugging
  enabled.

  For example:

  <configuration>
      <system.windows.forms jitDebugging="true" />
  </configuration>

  When JIT debugging is enabled, any unhandled exception
  will be sent to the JIT debugger registered on the machine
  rather than being handled by this dialog.