Re: value cannot be null exception with vault 2.0

"dave wanta" <[email protected]> Mon, 1 Mar 2004 22:41:24 -0500
Newsgroups gmane.comp.version-control.sourcegear-vault.user
Message-ID <062a01c40008$3d0d80d0$0201a8c0@test67>
Any Clever Way To Unpin Many Files?Awesome!

That did the trick. I created a profile from the GUI client, and then everything worked from VS.NET.

Thanks a bunch.

Cheers!
Dave
  ----- Original Message ----- 
  From: Dan Schreiber 
  To: dave wanta ; [email protected] 
  Sent: Monday, March 01, 2004 9:29 PM
  Subject: RE: [vault-list] value cannot be null exception with vault 2.0


  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__b77a5c561934e089/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__b03f5f7f11d50a3a/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/system.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.