Hi,
Having recently had all my records imported I am going through the process of updating any that are shown as 'Unknown' type.
The following steps are followed.
I then see a Stack Trace, see below. If return to My Sightings the sightings have been updated. Any help would be appreciated.
Thanks,
rusty
*[NullReferenceException: Object reference not set to an instance of an object.]
PlaneLogger.Controllers.SightingController.Edit(Sighting sighting, HttpPostedFileBase[] files) in C:\Users\gavco\Documents\Projects\PlaneLogger\PlaneLogger\Controllers\SightingController.cs:179
lambda_method(Closure , ControllerBase , Object[] ) +170
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +254
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parameters) +34
System.Web.Mvc.<>c_DisplayClass13.b_10() +79
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +2179
System.Web.Mvc.Controller.ExecuteCore() +143
PlaneLogger.Controllers.BaseController.ExecuteCore() in C:\Users\gavco\Documents\Projects\PlaneLogger\PlaneLogger\Controllers\BaseController.cs:87
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
System.Web.Mvc.Async.<>c_DisplayClass1.b_0() +25
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.<>c_DisplayClass8.b_3(IAsyncResult asyncResult) +41
System.Web.Mvc.Async.<>c_DisplayClass4.b_3(IAsyncResult ar) +25
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +5833
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +221
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +6982*
Hi Rusty,
I'm sure Nighthawk would have the definitive answer on this but my guess would be that the manual update might not match with the database. You can update your personal record however you wish and it will show as such. But when first logging it's best to log it directly from the database. So if you have any showing as unknown then you can alternatively log it in the database then dedupe and remove the manual entry. I may be completely wrong but that's how I would do it!
Hi Dougie,
Thanks for your reply. I will give it a try and see if it any quicker than the way I mentioned above. With just over 7000 to update any improvement to the time it takes will be welcome.
Cheers,
Rusty
Hi Rusty,
I've just uploaded a change which should hopefully fix this error. Let me know if you still have issues.
Hi Nighthawk,
A works well now.
Thanks for fix,
Russell
You need to log in to post a reply to this topic.