We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在教务系统demo那个里面,点击添加学生报错了。错误信息如下:
System.NullReferenceException: 未将对象引用设置到对象的实例。 在 System.Object.GetType() 在 NewLife.Cube.HtmlExtensions.ForEnum(HtmlHelper Html, String name, Object value, String label) 位置 D:\X\NewLife.Cube\NewLife.Cube\Common\HtmlExtensions.cs:行号 431 在 NewLife.Cube.HtmlExtensions.ForEditor(HtmlHelper Html, String name, Object value, Type type, String format, Object htmlAttributes) 位置 D:\X\NewLife.Cube\NewLife.Cube\Common\HtmlExtensions.cs:行号 53 在 NewLife.Cube.HtmlExtensions.ForEditor(HtmlHelper Html, FieldItem field, IEntity entity) 位置 D:\X\NewLife.Cube\NewLife.Cube\Common\HtmlExtensions.cs:行号 107 在 ASP._Views_Shared__Form_Item_cshtml.Execute() 位置 D:\X\NewLife.Cube\NewLife.Cube\Views\Shared\_Form_Item.cshtml:行号 33 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() 在 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) 在 System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) 在 ASP._Views_Shared__Form_Group_cshtml.Execute() 位置 D:\X\NewLife.Cube\NewLife.Cube\Views\Shared\_Form_Group.cshtml:行号 14 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() 在 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) 在 System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) 在 ASP._Views_Shared__Form_Body_cshtml.Execute() 位置 D:\X\NewLife.Cube\NewLife.Cube\Views\Shared\_Form_Body.cshtml:行号 12 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() 在 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) 在 System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) 在 ASP._Views_Shared_Form_cshtml.Execute() 位置 D:\X\NewLife.Cube\NewLife.Cube\Views\Shared\Form.cshtml:行号 21 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() 在 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() 在 System.Web.WebPages.StartPage.ExecutePageHierarchy() 在 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) 在 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) 在 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult)
The text was updated successfully, but these errors were encountered:
这是由于XCode最近一次更新所致,为了优化反射性能,错误注释了一些代码,今天在nuget发布新版会解决这个问题。同时,NewLife.Cube也会加第二次保护,避免出现类似错误
Sorry, something went wrong.
No branches or pull requests
在教务系统demo那个里面,点击添加学生报错了。错误信息如下:
The text was updated successfully, but these errors were encountered: