最近用mvc+ef做了个小站,买了个空间,但空间好像碰到了问题,在我本地运行正确,在服务器空间上“增改”操作却不成功,
不知道是什么原因,是不是服务器要打.net 3.5 sp1补丁还是什么,网址:http://www.codersky.net/Home/Article/1
提交评论 出现以下错误:未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +806[CustomAttributeFormatException: 未找到指定的“IsReference”属性。]
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +1197
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +258
System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +63
System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +262
System.ComponentModel.ReflectedTypeData.GetAttributes() +36
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +50
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +81
System.ComponentModel.CustomTypeDescriptor.GetAttributes() +16
System.Web.Mvc._AssociatedMetadataTypeTypeDescriptor.GetAttributes() +10
System.Web.Mvc.ModelBinderDictionary.GetBinder(Type modelType, IModelBinder fallbackBinder) +121
System.Web.Mvc.ModelBinderDictionary.GetBinder(Type modelType, Boolean fallbackToDefault) +62
System.Web.Mvc.ControllerActionInvoker.GetModelBinder(ParameterDescriptor parameterDescriptor) +65
System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +36
System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +97
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +279
System.Web.Mvc.Controller.ExecuteCore() +114
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +33
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +4
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +37
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() +69
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +26
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +13
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +183
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
不知道是什么原因,是不是服务器要打.net 3.5 sp1补丁还是什么,网址:http://www.codersky.net/Home/Article/1
提交评论 出现以下错误:未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +806[CustomAttributeFormatException: 未找到指定的“IsReference”属性。]
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +1197
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +258
System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +63
System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +262
System.ComponentModel.ReflectedTypeData.GetAttributes() +36
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +50
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +81
System.ComponentModel.CustomTypeDescriptor.GetAttributes() +16
System.Web.Mvc._AssociatedMetadataTypeTypeDescriptor.GetAttributes() +10
System.Web.Mvc.ModelBinderDictionary.GetBinder(Type modelType, IModelBinder fallbackBinder) +121
System.Web.Mvc.ModelBinderDictionary.GetBinder(Type modelType, Boolean fallbackToDefault) +62
System.Web.Mvc.ControllerActionInvoker.GetModelBinder(ParameterDescriptor parameterDescriptor) +65
System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +36
System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +97
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +279
System.Web.Mvc.Controller.ExecuteCore() +114
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +33
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +4
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +37
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() +69
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +26
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +13
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +183
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
解决方案 »
- GridView 无数据显示表头及固定行并且行双击时能编辑
- 求解!
- robots 不起作用,后台被抓取,怎么办???
- 能否动态添加链接<a href="aa.aspx?id=<%=x%>" > aa[1].aspx
- ASP.NET 水晶报表打印设置问题。
- Response.Write不能输出变量??
- 谁帮我解释下这个JavaScript文件呀,我要赋一个参数过去,但是不怎么怎么样!!
- 请问产品演示到底该演示些什么东西?
- 请问哪位有没有搞过"在 Internet Explorer 5.5 中创建可编辑的 Web 页"问题
- 请假一个选项卡替换效果//
- 用asp.net调用excel模板把数据填充了但是打开的excel却是在服务器??
- 请问大家如何学排版的呀,刚学,好晕呀~
楼主还是检查配置吧.
网址:http://www.codersky.net
结贴了。