FineUI 官方论坛

标题: ” 未将对象引用设置到对象的实例“的问题,菜鸟求教 [打印本页]

作者: dzyhenry    时间: 2013-9-12 11:20
标题: ” 未将对象引用设置到对象的实例“的问题,菜鸟求教
刚刚新建一个工程,按照这上面做的(ExtAspNet秘密花园(二) — 一切从头开始)http://www.cnblogs.com/sanshi/archive/2012/02/12/2347789.html#commentform,但是运行的时候出现了下面这样的问题,请问是什么原因啊?求大神帮帮忙啊,急!
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.]   ExtAspNet.GlobalConfig.GetFormLabelSeparator() +21   ExtAspNet.PageManager.get_FormLabelSeparator() +86   ExtAspNet.Field.get_LabelSeparator() +70   ExtAspNet.Field.OnFirstPreRender() +537   ExtAspNet.TextField.OnFirstPreRender() +34   ExtAspNet.RealTextField.OnFirstPreRender() +18   ExtAspNet.TextBox.OnFirstPreRender() +16   ExtAspNet.ControlBase.OnPreRender(EventArgs e) +232   System.Web.UI.Control.PreRenderRecursiveInternal() +83   System.Web.UI.Control.PreRenderRecursiveInternal() +168   System.Web.UI.Control.PreRenderRecursiveInternal() +168   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974                  
            
            

            Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044              


作者: dzyhenry    时间: 2013-9-12 14:04
本帖最后由 dzyhenry 于 2013-9-12 14:05 编辑

后来在webconfig的<configuration>标签下面添加了这几行就行了:
  1. <configSections>
  2.     <section name="ExtAspNet" type="ExtAspNet.ConfigSection, ExtAspNet" requirePermission="false"/>
  3.   </configSections>
  4.   <ExtAspNet EnableBigFont="true" DebugMode="true" EnableAjax="true"></ExtAspNet>
复制代码





欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/) Powered by Discuz! X3.4