Server Error in '/' Application.: Object Reference Not Set To An Instance of An Object
Server Error in '/' Application.: Object Reference Not Set To An Instance of An Object
Server Error in '/' Application.: Object Reference Not Set To An Instance of An Object
Source Error:
Stack Trace:
[NullReferenceException: Object
reference not set to an instance of
an object.]
BillingManagementSystem.Controllers
.OrdersController.Invoice(Int32 id)
in D:\Raja
Sekhar\Projects\BillingManagementSy
stem\BillingManagementSystemSolutio
n\BillingManagementSystem\Controlle
rs\OrdersController.cs:122
lambda_method(Closure ,
ControllerBase , Object[] ) +97
System.Web.Mvc.ActionMethodDispatch
er.Execute(ControllerBase
controller, Object[] parameters)
+14
System.Web.Mvc.ReflectedActionDescr
iptor.Execute(ControllerContext
controllerContext, IDictionary`2
parameters) +157
System.Web.Mvc.ControllerActionInvo
ker.InvokeActionMethod(ControllerCo
ntext controllerContext,
ActionDescriptor actionDescriptor,
IDictionary`2 parameters) +27
System.Web.Mvc.Async.<>c.
<BeginInvokeSynchronousActionMethod
>b__9_0(IAsyncResult asyncResult,
ActionInvocation innerInvokeState)
+22
System.Web.Mvc.Async.WrappedAsyncRe
sult`2.CallEndDelegate(IAsyncResult
asyncResult) +29
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.Async.AsyncControlle
rActionInvoker.EndInvokeActionMetho
d(IAsyncResult asyncResult) +32
System.Web.Mvc.Async.
<>c__DisplayClass11_0.
<InvokeActionMethodFilterAsynchrono
uslyRecursive>b__0() +58
System.Web.Mvc.Async.
<>c__DisplayClass11_2.
<InvokeActionMethodFilterAsynchrono
uslyRecursive>b__2() +228
System.Web.Mvc.Async.
<>c__DisplayClass7_0.
<BeginInvokeActionMethodWithFilters
>b__1(IAsyncResult asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncRe
sult`1.CallEndDelegate(IAsyncResult
asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.Async.AsyncControlle
rActionInvoker.EndInvokeActionMetho
dWithFilters(IAsyncResult
asyncResult) +34
System.Web.Mvc.Async.
<>c__DisplayClass3_6.
<BeginInvokeAction>b__4() +35
System.Web.Mvc.Async.
<>c__DisplayClass3_1.
<BeginInvokeAction>b__1(IAsyncResul
t asyncResult) +100
System.Web.Mvc.Async.WrappedAsyncRe
sult`1.CallEndDelegate(IAsyncResult
asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.Async.AsyncControlle
rActionInvoker.EndInvokeAction(IAsy
ncResult asyncResult) +27
System.Web.Mvc.<>c.
<BeginExecuteCore>b__152_1(IAsyncRe
sult asyncResult, ExecuteCoreState
innerState) +11
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +29
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.Controller.EndExecut
eCore(IAsyncResult asyncResult) +45
System.Web.Mvc.<>c.
<BeginExecute>b__151_2(IAsyncResult
asyncResult, Controller controller)
+13
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +22
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.Controller.EndExecut
e(IAsyncResult asyncResult) +26
System.Web.Mvc.Controller.System.We
b.Mvc.Async.IAsyncController.EndExe
cute(IAsyncResult asyncResult) +10
System.Web.Mvc.<>c.
<BeginProcessRequest>b__20_1(IAsync
Result asyncResult,
ProcessRequestState innerState) +28
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +29
System.Web.Mvc.Async.WrappedAsyncRe
sultBase`1.End() +49
System.Web.Mvc.MvcHandler.EndProces
sRequest(IAsyncResult asyncResult)
+28
System.Web.Mvc.MvcHandler.System.We
b.IHttpAsyncHandler.EndProcessReque
st(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep
.System.Web.HttpApplication.IExecut
ionStep.Execute() +9836613
System.Web.HttpApplication.ExecuteS
tepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteS
tep(IExecutionStep step, Boolean&
completedSynchronously) +163