Bu hata nedir arkadaşlar
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 187: string btnNameP = "Btn" + item.Id; Line 188: <tr>Line 189: <td>@item.Department.Title</td>Line 190: <td>@item.ConfNumber</td> Line 191: <td>@item.UserTitle</td>Source File: D:vhostscvkgroups.comdigipos.cvkgroups.comViewsPay mentLinkIndex.cshtml Line: 189
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] ASP._Page_Views_PaymentLink_Index_cshtml.Execute() in D:vhostscvkgroups.comdigipos.cvkgroups.comViewsPay mentLinkIndex.cshtml:189 System.Web.WebPages.WebPageBase.ExecutePageHierarc hy() +198 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105 System.Web.WebPages.WebPageBase.ExecutePageHierarc hy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256 System.Web.Mvc.BuildManagerCompiledView.Render(Vie wContext viewContext, TextWriter writer) +107 System.Web.Mvc.ViewResultBase.ExecuteResult(Contro llerContext context) +291 System.Web.Mvc.ControllerActionInvoker.InvokeActio nResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.ControllerActionInvoker.InvokeActio nResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56 System.Web.Mvc.ControllerActionInvoker.InvokeActio nResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActio nResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52 System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginIn vokeAction>b__3() +198 System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginIn vokeAction>b__5(IAsyncResult asyncResult) +100 System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndD elegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End( ) +49 System.Web.Mvc.Async.AsyncControllerActionInvoker. EndInvokeAction(IAsyncResult asyncResult) +44 System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsy ncResult asyncResult, ExecuteCoreState innerState) +11 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDel egate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End( ) +49 System.Web.Mvc.Controller.EndExecuteCore(IAsyncRes ult asyncResult) +47 System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncRe sult asyncResult, Controller controller) +13 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDel egate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End( ) +49 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +28 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAs yncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IA syncResult asyncResult, ProcessRequestState innerState) +28 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDel egate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End( ) +49 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsync Result asyncResult) +28 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHan dler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +9748493 System.Web.HttpApplication.ExecuteStepImpl(IExecut ionStep step) +48 System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +159Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2558.0
ASP bilen arkadaşlar yardımınız gerekiyor! Ücretli veya ücretsiz!
3
●305
- 30-03-2019, 10:03:16Bu hata ASP.NET MVC ile ilgili gözüküyor. @item.Department veya @item objesi boş geliyor.