deployment - ASP.Net MVC 3.0 "Error Executing Child Request" on Development Server but works fine on local machine -


here stack trace

      [nullreferenceexception: object reference not set instance of object.]        hrorx.controllers.leftnavlinkscontroller.leftnavservices() in c:\common\pro\hrorx\controllers\leftnavlinkscontroller.cs:30        lambda_method(closure , controllerbase , object[] ) +78        system.web.mvc.reflectedactiondescriptor.execute(controllercontext controllercontext, idictionary`2 parameters) +263        system.web.mvc.controlleractioninvoker.invokeactionmethod(controllercontext controllercontext, actiondescriptor actiondescriptor, idictionary`2 parameters) +38        system.web.mvc.c__displayclass15.b__12() +128        system.web.mvc.controlleractioninvoker.invokeactionmethodfilter(iactionfilter filter, actionexecutingcontext precontext, func`1 continuation) +826410        system.web.mvc.controlleractioninvoker.invokeactionmethodwithfilters(controllercontext controllercontext, ilist`1 filters, actiondescriptor actiondescriptor, idictionary`2 parameters) +314        system.web.mvc.controlleractioninvoker.invokeaction(controllercontext controllercontext, string actionname) +825632        system.web.mvc.controller.executecore() +159        system.web.mvc.controllerbase.execute(requestcontext requestcontext) +335        system.web.mvc.c__displayclassb.b__5() +62        system.web.mvc.async.c__displayclass1.b__0() +20        system.web.mvc.c__displayclasse.b__d() +54        system.web.mvc.c__displayclass4.b__3() +15        system.web.mvc.serverexecutehttphandlerwrapper.wrap(func`1 func) +41        system.web.httpserverutility.executeinternal(ihttphandler handler, textwriter writer, boolean preserveform, boolean setpreviouspage, virtualpath path, virtualpath filepath, string physpath, exception error, string querystringoverride) +1443      [httpexception (0x80004005): error executing child request 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) +2515        system.web.httpserverutility.execute(ihttphandler handler, textwriter writer, boolean preserveform, boolean setpreviouspage) +242        system.web.httpserverutilitywrapper.execute(ihttphandler handler, textwriter writer, boolean preserveform) +94        system.web.mvc.html.childactionextensions.actionhelper(htmlhelper htmlhelper, string actionname, string controllername, routevaluedictionary routevalues, textwriter textwriter) +834        system.web.mvc.html.childactionextensions.action(htmlhelper htmlhelper, string actionname, string controllername, routevaluedictionary routevalues) +123        asp._page_views_shared__leftnavlinks_cshtml.execute() in c:\server\web\rx\views\shared\_leftnavlinks.cshtml:2        system.web.webpages.webpagebase.executepagehierarchy() +280        system.web.mvc.webviewpage.executepagehierarchy() +104        system.web.webpages.webpagebase.executepagehierarchy(webpagecontext pagecontext, textwriter writer, webpagerenderingbase startpage) +173        system.web.mvc.html.partialextensions.partial(htmlhelper htmlhelper, string partialviewname, object model, viewdatadictionary viewdata) +158        asp._page_views_shared__layout_cshtml.execute() in c:\server\web\rx\views\shared\_layout.cshtml:54        system.web.webpages.webpagebase.executepagehierarchy() +280        system.web.mvc.webviewpage.executepagehierarchy() +104        system.web.webpages.webpagebase.executepagehierarchy(webpagecontext pagecontext, textwriter writer, webpagerenderingbase startpage) +173        system.web.webpages.webpagebase.write(helperresult result) +89        system.web.webpages.webpagebase.rendersurrounding(string partialviewname, action`1 body) +234        system.web.webpages.webpagebase.popcontext() +222        system.web.mvc.viewresultbase.executeresult(controllercontext context) +384        system.web.mvc.c__displayclass1c.b__19() +33        system.web.mvc.controlleractioninvoker.invokeactionresultfilter(iresultfilter filter, resultexecutingcontext precontext, func`1 continuation) +825604        system.web.mvc.controlleractioninvoker.invokeactionresultwithfilters(controllercontext controllercontext, ilist`1 filters, actionresult actionresult) +265        system.web.mvc.controlleractioninvoker.invokeaction(controllercontext controllercontext, string actionname) +825632        system.web.mvc.controller.executecore() +159        system.web.mvc.controllerbase.execute(requestcontext requestcontext) +335        system.web.mvc.c__displayclassb.b__5() +62        system.web.mvc.async.c__displayclass1.b__0() +20        system.web.mvc.c__displayclasse.b__d() +54        system.web.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute() +469        system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +375  

i can build , run application no issues on local machine
but when deploy development server, error.
appreciated.

the stack trace complaining line 30 of c:\common\pro\hrorx\controllers\leftnavlinkscontroller.cs. have null checked on line? is possible post happening on or around line?

also, using linq in controller method? ran similar error returning list contained null values table. data different between local database (had no nulls) , production environment (which had nulls).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -