Object reference not set to an instance of an object

广告:

环境:asp.net mvc2.0 asp.net 3.5 sp1

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:

An unhandled exception was generated during the execution of the current web request.

Information regarding the origin and location of the exception can be identified using the

exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

FeiShareLibrary.Data.get_Key() +824

FeiShareLibrary.Data.get_Bkname() +5

Mvcb2b.Controllers.MainController.Index() in E:\aspnet2.0\hao_elec_all_jia\mvc_elec_jia

\Mvcb2b\Controllers\MainController.cs:31

lambda_method(ExecutionScope , ControllerBase , Object[] ) +40

System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[]

parameters) +17

System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext,

IDictionary`2 parameters) +178

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext

controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +24

System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +52

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter,

ActionExecutingContext preContext, Func`1 continuation) +254

System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter,

ActionExecutingContext preContext, Func`1 continuation) +254

System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter,

ActionExecutingContext preContext, Func`1 continuation) +254

System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +19

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext

controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2

parameters) +192

System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext,

String actionName) +314

System.Web.Mvc.Controller.ExecuteCore() +105

System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +39

System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext

requestContext) +7

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34

System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21

System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12

System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59

System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +44

System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult

result) +7

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

+8771262

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

+155

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET

Version:2.0.50727.8001

解决方法:config/53bknet.config配置错误,可能是系列号SN节错误,请先替换原始备份文件再修改

广告:

编辑:Admin 时间:2015/7/31 14:34:49 阅览:512   返回    
instance
扫描关注53BK报刊官网
扫描关注阅速公司微信