Use on 2.0 W/3.5 Installed

  1. #1

    Use on 2.0 W/3.5 Installed

    I am trying to use a control ina 2.0 app and have 3.5 installed on the box - I added in the control references, dropped a script manager on the page and get this:
    
    <H2>Object reference not set to an instance of an object. </H2>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: 
    
    
    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>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.</CODE> </TD></TR></TBODY></TABLE>
    Stack Trace: 
    
    
    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>[NullReferenceException: Object reference not set to an instance of an object.]
       Coolite.Ext.Web.ScriptManager.get_StateProvider() +238
       Coolite.Ext.Web.ScriptManager.OnInit(EventArgs e) +104
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Control.InitRecursive(Control namingContainer) +210
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
    </PRE></CODE></TD></TR></TBODY></TABLE>
  2. #2

    RE: Use on 2.0 W/3.5 Installed

    Found on a nother post - someone replaced the SM with the following - what is the difference - in that, why does it work?
    
    
    
    
    
    <ext:ScriptManager ID="ScriptManager1" runat="server"
    
    
    
    
    IDMode="Inherit" ScriptAdapter="Ext" ScriptMode="Release"
    
    
    
    
    StateProvider="PostBack" RenderScripts="Embedded"
    
    
    
    
    Theme="Default" SourceFormatting="false" 
    
    
    
    
    RenderStyles="Embedded" CleanResourceUrl="false"
    
    
    
    
    QuickTips="true" AjaxEventUrl=""
    
    
    
    
    />
  3. #3

    RE: Use on 2.0 W/3.5 Installed

    I'm not 100% sure why this is happening, but it does appear to be a problem with the Global Configuration properties.*

    We will investigate.*


    Geoffrey McGill
    Founder
  4. #4

    RE: Use on 2.0 W/3.5 Installed



    simple controls, in 2.0 seem to work fine - however, when I drop a store in I get the below error:
    
    <H2>Object reference not set to an instance of an object. </H2>
    
    
    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: 
    
    
    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>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.</CODE> </TD></TR></TBODY></TABLE>
    Stack Trace: 
    
    
    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>[NullReferenceException: Object reference not set to an instance of an object.]
       Coolite.Ext.Web.ScriptManager.get_AjaxViewStateMode() +120
       Coolite.Ext.Web.BaseAjaxEvent.get_ViewStateMode() +144
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
       System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
       System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +53
       System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +20
       Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr, Object defaultValue) +62
       Coolite.Ext.Web.ClientConfig.Process(Object obj) +125
    
    [Exception: Error during ClientConfig initialization. ViewStateMode - Exception has been thrown by the target of an invocation.]
       Coolite.Ext.Web.ClientConfig.Process(Object obj) +230
       Coolite.Ext.Web.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization) +688
       Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr, Object defaultValue) +776
       Coolite.Ext.Web.ClientConfig.Process(Object obj) +125
    
    [Exception: Error during ClientConfig initialization. AjaxEventConfig - Error during ClientConfig initialization. ViewStateMode - Exception has been thrown by the target of an invocation.]
       Coolite.Ext.Web.ClientConfig.Process(Object obj) +230
       Coolite.Ext.Web.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization) +688
       Coolite.Ext.Web.WebControl.get_InitialConfig() +65
       Coolite.Ext.Web.WebControl.GetClientConstructor(Boolean instanceOnly, String body) +325
       Coolite.Ext.Web.WebControl.OnClientInit() +89
       Coolite.Ext.Web.Observable.OnClientInit() +22
       Coolite.Ext.Web.WebControl.SetResources() +50
       Coolite.Ext.Web.WebControl.PreRenderAction() +427
       Coolite.Ext.Web.StoreDataBound.OnPreRender(EventArgs e) +41
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    </PRE></CODE></TD></TR></TBODY></TABLE>
    
    <HR color=silver SIZE=1 width="100%">
    
    
    
    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 <!-- 
    [NullReferenceException]: Object reference not set to an instance of an object.
       at Coolite.Ext.Web.ScriptManager.get_AjaxViewStateMode()
       at Coolite.Ext.Web.BaseAjaxEvent.get_ViewStateMode()
    [TargetInvocationException]: Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
       at Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr, Object defaultValue)
       at Coolite.Ext.Web.ClientConfig.Process(Object obj)
    [Exception]: Error during ClientConfig initialization. ViewStateMode - Exception has been thrown by the target of an invocation.
       at Coolite.Ext.Web.ClientConfig.Process(Object obj)
       at Coolite.Ext.Web.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization)
       at Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr, Object defaultValue)
       at Coolite.Ext.Web.ClientConfig.Process(Object obj)
    [Exception]: Error during ClientConfig initialization. AjaxEventConfig - Error during ClientConfig initialization. ViewStateMode - Exception has been thrown by the target of an invocation.
       at Coolite.Ext.Web.ClientConfig.Process(Object obj)
       at Coolite.Ext.Web.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization)
       at Coolite.Ext.Web.WebControl.get_InitialConfig()
       at Coolite.Ext.Web.WebControl.GetClientConstructor(Boolean instanceOnly, String body)
       at Coolite.Ext.Web.WebControl.OnClientInit()
       at Coolite.Ext.Web.Observable.OnClientInit()
       at Coolite.Ext.Web.WebControl.SetResources()
       at Coolite.Ext.Web.WebControl.PreRenderAction()
       at Coolite.Ext.Web.StoreDataBound.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.cm_test_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\pde\455bcfd8\c4f294fc\App_Web_23q2ub0h.2.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    --><!-- 
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

Similar Threads

  1. Replies: 7
    Last Post: Apr 24, 2013, 5:51 PM
  2. Replies: 0
    Last Post: Jun 11, 2009, 10:48 PM

Posting Permissions