Object reference error
We recently started seeing the below exception when trying to browse to our repo "http://internalrepo.com/dashboard" and it said to contact support.
System.NullReferenceException: Object reference not set to an
instance of an object.
at
ASP._Page_Views_Shared_Activities__RepositoryBundleCommitted_cshtml.Execute()
in
c:\Projects\hglab\src\HgLab\Views\Shared\Activities_RepositoryBundleCommitted.cshtml:line
9 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
pageContext, TextWriter writer, WebPageRenderingBase startPage) at
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext,
TextWriter writer, Object instance) at
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext
viewContext, TextWriter writer) at
System.Web.Mvc.HtmlHelper.RenderPartialInternal(String
partialViewName, ViewDataDictionary viewData, Object model,
TextWriter writer, ViewEngineCollection viewEngineCollection) at
System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper
htmlHelper, String partialViewName, Object model) at
ASP._Page_Areas_Dashboard_Views_Dashboard_Dashboard_cshtml.Execute()
in
c:\Projects\hglab\src\HgLab\Areas\Dashboard\Views\Dashboard\Dashboard.cshtml:line
50 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at
System.Web.WebPages.StartPage.RunPage() at
System.Web.WebPages.StartPage.ExecutePageHierarchy() at
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
pageContext, TextWriter writer, WebPageRenderingBase startPage) at
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext,
TextWriter writer, Object instance) at
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext
viewContext, TextWriter writer) at
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext
context) at
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext
controllerContext, ActionResult actionResult) at
System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.b__19()
at
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter
filter, ResultExecutingContext preContext, Func1
continuation) at
System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
at
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext
controllerContext, IList
1 filters, ActionResult
actionResult) at
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext
controllerContext, String actionName) at
System.Web.Mvc.Controller.ExecuteCore() at
System.Web.Mvc.ControllerBase.Execute(RequestContext
requestContext) at
HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext
requestContext) in
c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line
98 at
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext
requestContext) at
System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.b__5()
at
System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.b__0()
at
System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult
_) at
System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult
1.End()
at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.b__d() at
System.Web.Mvc.SecurityUtil.b__0(Action f) at
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action
action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult
asyncResult) at
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult
result) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Anton Gogolev on 17 Jun, 2014 05:20 AM
Jonathan,
This usually happens if there were changes made to the server-side repository without HgLab knowing it. Were there any
rebases
,strip
or something of the kind?2 Posted by Jonathan Sato on 17 Jun, 2014 01:16 PM
Hi Anton,
I believe there was a recent strip performed on that repo. Do you have any suggestions on how to resolve the issue?
Thanks,
Jonathan
Support Staff 3 Posted by Anton Gogolev on 17 Jun, 2014 06:48 PM
Sure, there's a way out.
Take a peek inside HgLab database and there will be a
PushlogEntryItem
table. From there, you'll need to delete all rows whereChangeset
equals to the Changeset ID of the changesets that were stripped.If you need more assistance, I'm always available for a TeamViewer session.
4 Posted by Jonathan Sato on 17 Jun, 2014 07:56 PM
Thanks Anton! That did the trick. After deleting the stripped changesets, the UI immediately started working again.
Anton Gogolev closed this discussion on 28 Jun, 2014 01:08 PM.