Object reference not set to an instance of an object.

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

Moderator: SourceGear

Post Reply
DarrenMRH
Posts: 3
Joined: Thu Dec 08, 2011 7:02 am

Object reference not set to an instance of an object.

Post by DarrenMRH » Thu Dec 08, 2011 7:15 am

I'm getting the dreaded "Object reference not set to an instance of an object." in both the client and the web admin. I've cleared the client caches, but the problem still remains (obviously, since the admin isn't working either). It doesn't look like there's anything of use in sgvault.log...it just shows my failed login attempts:

Code: Select all

----12/8/2011 8:37:21 AM     Admin--mymachine.mydomain.net(10.150.7.128)--SSL Enabled	System.NullReferenceException: Object reference not set to an instance of an object.
   at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strLogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHashPwd, Int32& nAttempts)
   at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& nValidUserAttempts)
   at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAttempts)
   at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken)
   at VaultService.VaultWeb.Login.DoLoginStuff(String strLogin, String strPassword, LoginToken lt)
   at VaultService.VaultWeb.Login.ButtonLogin_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    at VaultServiceSQL.VaultSqlSystem.GetLoginInfo(VaultSqlConn conn, String strLogin, String strHostname, String strSessionID, VaultUser vu, String& strDbHashPwd, Int32& nAttempts)
   at VaultServiceAPILib.VaultServiceAPI.AuthenticateAndLogin(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, VaultUser vu, Guid& gSessionGUID, Int32& nValidUserAttempts)
   at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String& strToken, VaultUser& vu, Int32& nValidUserAttempts)
   at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken)
   at VaultService.VaultWeb.Login.DoLoginStuff(String strLogin, String strPassword, LoginToken lt)
   at VaultService.VaultWeb.Login.ButtonLogin_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I've performed multiple iisresets, and have even restarted the entire server, but nothing has changed. Please help!

Thank you,
Darren

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Object reference not set to an instance of an object.

Post by lbauer » Thu Dec 08, 2011 10:24 am

We'd like to see a copy of the Vault Server log. Send the log to support at sourcegear.com, Attn: Linda. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

DarrenMRH
Posts: 3
Joined: Thu Dec 08, 2011 7:02 am

Re: Object reference not set to an instance of an object.

Post by DarrenMRH » Thu Dec 08, 2011 1:14 pm

Sent, thanks!

DarrenMRH
Posts: 3
Joined: Thu Dec 08, 2011 7:02 am

Re: Object reference not set to an instance of an object.

Post by DarrenMRH » Thu Dec 08, 2011 2:50 pm

Thank you Linda for the prompt reply, and for your assistance in resolving this. Note to self: make sure that both sgmaster and sgvault are Online and not set to standby/read-only.

--Darren

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Object reference not set to an instance of an object.

Post by lbauer » Thu Dec 08, 2011 4:17 pm

You're welcome. Glad you're able to work again. :D
Linda Bauer
SourceGear
Technical Support Manager

Post Reply