我一直在使用Extjs 6處理MVC,當我在Visual Studio 2015上運行時完美工作,但是當我將它部署到Windows 2012 R2中的IIS 8.5時,我得到空引用異常。該錯誤立即發生,儘快在登錄後以及頁面嘗試加載時發生。 信息: Versiónde Microsoft .NET Framework:4.0.30319;版本ASP.NET:4.6.1055.0 裝配=「System.Web.Mvc,版本= 5.2.3.0 在Windows 2012 R2 IIS:8.5在IIS中的NullReferenceException但不在VS 2015
謝謝
[NullReferenceException異常:Referencia一objeto沒有establecida como的instancia德未objeto。] HiplotTM.Controllers.HomeController.Login(USUARIOS objUsuario)739 lambda_method(封閉,ControllerBase,對象[])138 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext ,IDictionary
2 parameters) +228 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parameters)+34 Syst em.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult的asyncResult,ActionInvocation innerInvokeState)38 System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +41 System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +71 System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +386 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +38 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +186 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult的asyncResult)67 System.Web.Mvc.Controller.EndExecuteCore (IAsyncResult的asyncResult)53 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +36 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult的asyncResult)67 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult的asyncResult)38 System.Web.CallHandlerExecutionStep.System .Web.HttpApplication.IExecutionStep.Execute()+399 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,布爾型& completedSynchronously)+137
根據我的觀點是,在DataContext不實例化的問題:HiplotTMdbConexion的DataContext =新HiplotTMdbConexion當項目部署在IIS中時。一些想法?謝謝。 – IcebergDelphi