This is a migrated thread and some comments may be shown as answers.

[Solved] EnableLoadOnDemand - ComboBox not getting populated

5 Answers 280 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gerrie Villon
Top achievements
Rank 1
Gerrie Villon asked on 23 Jan 2009, 11:47 AM
I'm using version 2008.3.1105.35 of the RadControls and I've run into a peculiar problem with a RadComboBox. I have it setup using EnableLoadOnDemand and it all works fine on my local development machine. However when putting the web application into a test environment (running Win Server 2003 SP2) the combobox doesn't get populated with data, it just sits there saying "Loading..." forever!!

I used Sql Profiler to see if it was even trying to get the data and I can see that it is pulling the data out of the database it's just not rendering it in the combobox.

I have the ComboBox setup in almost exactly the way outlined in: http://demos.telerik.com/aspnet-ajax/ComboBox/Examples/PopulatingWithData/AutoCompleteSql/DefaultCS.aspx with the exception that I am using an ItemTemplate and databinding on the OnItemsRequested event instead of manually adding RadComboBoxItems.

Any ideas?

5 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 26 Jan 2009, 02:20 PM
Hi Gerrie Villon,

Since the control is working properly on your dev machine and not on the production one, most probably the cause of the issue is in the latter.

Please see this forum thread for more information.

Sincerely yours,
Simon
0
johnv
Top achievements
Rank 2
answered on 30 Jan 2009, 05:43 PM
Hi, I don't mean to hi-jack your thread Gerrie, but I have the same exact issue in a DNN module with a caveat that I have this same exact code (control definition and ItemsRequested Event) on another (non Settings) page that works perfectly.

So, my dev environment works perfectly on all pages, but my test server works on the edit page but not the settings page. The DNN error log looks like this:

AssemblyVersion: 04.07.00 
PortalID: 0 
PortalName: JSWAG 
UserID: 1 
UserName: host 
ActiveTabID: 61 
ActiveTabName: Executive Steering Committee 
RawURL: /ActionChits/ExecutiveSteeringCommittee/tabid/61/ctl/Module/ModuleId/384/Default.aspx 
AbsoluteURL: /Default.aspx 
AbsoluteURLReferrer: http://ijswag.paxrnet.com/ActionChits/ExecutiveSteeringCommittee/tabid/61/ctl/Module/ModuleId/384/Default.aspx 
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) 
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider 
ExceptionGUID: 4e834325-def1-4474-9c33-e5d0a5f50cae 
InnerException: Unhandled Error:  
FileName:  
FileLineNumber: 0 
FileColumnNumber: 0 
Method: System.Web.HttpResponse.Redirect 
StackTrace:  
Message: System.Exception: Unhandled Error: ---> System.ApplicationException: Response.Redirect cannot be called in a Page callback. at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) at System.Web.UI.TemplateControl.OnError(EventArgs e) 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.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace --- 
Source:  
Server Name: WEBMASTER 
 

A log entry is generated on each RadComboBox callback event. (Ex: as I type, if I pause long enough to activate the AJAX callback, a log entry is created.)

This is puzzling to me since the code works in my dev environment on both the Edit and Settings pages.

Simon - Can you help me understand what is going on here?

Thanks!

John




0
Simon
Telerik team
answered on 04 Feb 2009, 10:40 AM
Hi johnv,

The exception says that there has been a server-side Redirect which happens during the Items Request intiiated by the ComboBox.

Could you please verify whether this is true?

In any case, I suggest you compare the 'Edit' and 'Settings' pages in order to find what is different and might be causing the error in the latter.

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
johnv
Top achievements
Rank 2
answered on 25 Mar 2009, 05:13 PM
Sorry for the long delay. I just wanted everyone to know that I upgraded DNN on my test server to the same version as my dev environment and all is well.

My Local machine is running DNN 4.8.2 and my server was running 4.7.0. I looked through the change logs but didn't see anything that looked like it may have fixed my issue...

Thanks!
0
Kaunteya
Top achievements
Rank 1
answered on 02 Oct 2009, 04:30 AM
Hello,

I do have same problem like John. I am using Radcomboboxes casceding in my DNN module. I followed  http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx  demo for this. 
This  works fine on my dev machine, also work on production machine but only for Host login and not for registered user accounts. When I login with registered user on production and select item from first combo second combo shows only Loading.... and nothing happens. But it works on dev machine with registered user. By this scenario one can guess its access issue but I am getting the same errors as noted above. Its really fussy problem as I believe Telerik component is nothing to do with what role one is having when login into site. I have same version at server and on my dev machine, i.e. 05.01.01, also I have put AjaxControlToolkit.dll into my bin folder at production. Production Sevrer is installed with Windows Server 2003 OS.

Please help we are going live very soon....
Thanks,
Kaunteya Chougule

I am geting follwing error in order when I select

AssemblyVersion: 5.1.1
PortalID: 0
PortalName: FILE2PRINT
UserID: 11
UserName: dickmalard
ActiveTabID: 105
ActiveTabName: Console
RawURL: /Gateway/Console.aspx?RadUrid=d587e610-df3d-490a-b8da-32782a4b5633
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.prismaflow.com/Gateway/Console.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0be3ddc4-0f73-4761-b443-5fd9a63e1995
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.HttpResponse.Redirect
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.ApplicationException: Response.Redirect cannot be called in a Page callback. at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.OnError(EventArgs e) 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.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: MONSOON
  10/1/2009 10:12:21 AM   Page Load Exception   dickmalard     AssemblyVersion: 5.1.1; PortalID: 0; PortalName< ...  ...
AssemblyVersion: 5.1.1
PortalID: 0
PortalName: FILE2PRINT
UserID: 11
UserName: dickmalard
ActiveTabID: 105
ActiveTabName: Console
RawURL: /Gateway/Console.aspx?RadUrid=d587e610-df3d-490a-b8da-32782a4b5633
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.prismaflow.com/Gateway/Console.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f5d567ef-db18-4ddc-baec-2266dedae9ef
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid JSON primitive: . at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- 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.MethodBase.Invoke(Object obj, Object[] parameters) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Page objPage, String strVar, String strValue, Boolean blnOverwrite) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DNNStuff.Aggregator.Aggregator.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: MONSOON
  10/1/2009 10:12:20 AM   General Exception   dickmalard     AssemblyVersion: 5.1.1; PortalID: 0; PortalName< ...  ...
AssemblyVersion: 5.1.1
PortalID: 0
PortalName: FILE2PRINT
UserID: 11
UserName: dickmalard
ActiveTabID: 105
ActiveTabName: Console
RawURL: /Gateway/Console.aspx?RadUrid=d587e610-df3d-490a-b8da-32782a4b5633
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.prismaflow.com/Gateway/Console.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 742f15e8-b33c-4483-bf13-01b18cffbe04
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject
StackTrace:
Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid JSON primitive: . at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- 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.MethodBase.Invoke(Object obj, Object[] parameters) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Page objPage, String strVar, String strValue, Boolean blnOverwrite) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.DNNClientAPI.AddBodyOnloadEventHandler(Page objPage, String strJSFunction) at DNNStuff.Aggregator.Aggregator.RenderLayout(Template t) at DNNStuff.Aggregator.Aggregator.RenderTabs() at DNNStuff.Aggregator.Aggregator.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: MONSOON
Tags
ComboBox
Asked by
Gerrie Villon
Top achievements
Rank 1
Answers by
Simon
Telerik team
johnv
Top achievements
Rank 2
Kaunteya
Top achievements
Rank 1
Share this question
or