Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 19:                 Dim obj2 = "A-2".GetOne(match:=Function(x) x.FormmDataId = EquipmentId)
Line 20: 
Line 21:                 Dim Obj20 = "CRK-20".GetOne(match:=Function(x) x.getVal(Of String)("P55") = obj2.FormmDataId AndAlso x.getVal(Of String)("P57") = "SALE")
Line 22: 
Line 23:                 Dim SaleRate = 0

Source File: C:\Inetpub\vhosts\curika.com\httpdocs\Views\Shared\CURIKA\F17.vbhtml    Line: 21

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Closure$__37._Lambda$__90(Class_formmdata x) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Shared\CURIKA\F17.vbhtml:21
   System.Collections.Generic.List`1.FindAll(Predicate`1 match) +131
   Models3G.ClassStatic.ClassStatic.GetListformmdata(String FormmId, Boolean WithOutClone, Predicate`1 match, String FormmDataId, HashSet`1 HashFormmDataId) +1863
   Models3G.Module1.GetOne(String FormmId, Boolean WithOutClone, Boolean FILTER, List`1& ListObj, Predicate`1 match, String FormmDataId) +284
   ASP._Page_Views_Shared_CURIKA_F17_vbhtml.Execute() in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Shared\CURIKA\F17.vbhtml:21
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +146
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +85
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +374
   Models3G._3G_CMS.FormmDataController.Index(String id, String reportids, String query, Boolean TableOnly, String ReportFormId, String DisplayProp, String AggrStatement, Boolean ReturnJson, Boolean MultiForm, String QueryArr, String ParentId, Boolean ShowCS, Object ObjParam, String FDIds, Boolean ShowEditDelete, String FormGroupHide, Boolean ShowAddNew, String AddNewQS, String FormGroup, String Sufix, Boolean ShowHistory, String FdIdHistory, Boolean ShowEdit, Boolean ShowDelete, Boolean ShowAdd, Boolean ShowSno, String ToText, Boolean ShowView, Boolean ExportExcel, Boolean LiveSearchOnly, Boolean ViewOnly, Boolean ShowPrintButton, String CustomAction, Boolean Blank, Boolean CheckRight, Boolean TextCol, Boolean LoadDataTable, Boolean ShowTable, String TempDataKey, Boolean NonTabular, Boolean BeforeTable, Boolean AutoFilter, Boolean DataTableDelay, Boolean MobIndex, String MobIndexBG, String Scrolly, Boolean ReturnTable, String FinalPage, String EF, String Groupby, Boolean SearchDataTable, Boolean SortDataTable, Boolean InfoDatatable, String IndexTitle, String TempListPropKey, String TempBucketKey, String ReportButtonId, String DynamoTheme, String TempObjFormm, String DoubleFormat, Boolean RedirectedFromIndexFilter, String MenuId, String TempObjFormmData, Boolean FilterForApproval, String Id201, String id203, Boolean ShowChart, String CustomActionIF, String RedirectFormmIdIF) +19557
   lambda_method(Closure , ControllerBase , Object[] ) +10102
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +279
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +34
   System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +32
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +41
   System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +79
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +387
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +387
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +32
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +187
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +27
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +41
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +18
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +29
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1345

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2320
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +131
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +33
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +573
   System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +56
   ASP._Closure$__2._Lambda$__2(TextWriter __razor_helper_writer) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:600
   System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +23
   ASP._Closure$__1._Lambda$__1(TextWriter __razor_helper_writer) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:557
   System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +23
   ASP._Closure$__2._Lambda$__2(TextWriter __razor_helper_writer) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:614
   System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +23
   ASP._Closure$__1._Lambda$__1(TextWriter __razor_helper_writer) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:557
   System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +23
   ASP._Closure$__2._Lambda$__2(TextWriter __razor_helper_writer) in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:614
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +108
   ASP._Page_Views_Category_Details_vbhtml.Execute() in C:\Inetpub\vhosts\curika.com\httpdocs\Views\Category\Details.vbhtml:630
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +187
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +27
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +41
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0