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

Ajax spinner, RadFileExplorer, ASP.Net Development Server and Form Authentication combo problem....

1 Answer 73 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
David Apelt
Top achievements
Rank 1
David Apelt asked on 20 Oct 2010, 11:42 AM

I discovered this problem today and believe it may be of benefit to the community...

I have a RadFileExplorer and have implemented my own FileBrowserContentProvider that bounces off our database.

Very often when I click on a folder the ajax loading doughnut appears and does not go away.  If I repeatedly click on another folder and then back to the original the doughnut will disappear and the directory listing will appear successfully.


The problem never occurs on a folder with no subfolders or files. But it does occur if the folder has a single subfolder or file.

When it stops working it is associated with an exception appearing in the Visual Studio output window....


A first chance exception of type 'System.Runtime.Serialization.SerializationException' occurred in WebDev.WebHost.dll

I enabled exception breaking on this exception and the stack trace showed....

 WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Request.ReadEntityBody(byte[] buffer = {byte[8192]}, int size = 1957) + 0x57 bytes 
  System.Web.dll!System.Web.HttpRequest.GetEntireRawContent() + 0x2c7 bytes 
  System.Web.dll!System.Web.HttpRequest.FillInFormCollection() + 0x13f bytes 
  System.Web.dll!System.Web.HttpRequest.Form.get() + 0x45 bytes 
  System.Web.dll!System.Web.HttpRequest.this[string].get(string key = "HTTP_X_MICROSOFTAJAX") + 0x28 bytes 
  Telerik.Web.UI.dll!Telerik.Web.UI.RadCompression.IsAjaxRequest() + 0x3c bytes 
  Telerik.Web.UI.dll!Telerik.Web.UI.RadCompression.Compress(System.Web.HttpApplication application = {ASP.global_asax}) + 0x348 bytes 
  Telerik.Web.UI.dll!Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(object sender = {ASP.global_asax}, System.EventArgs e = {System.EventArgs}) + 0x4d bytes 
  System.Web.dll!System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x45 bytes 
  System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.SyncEventExecutionStep}, ref bool completedSynchronously = true) + 0x4c bytes 
  System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x133 bytes 
  System.Web.dll!System.Web.HttpApplication.ResumeStepsFromThreadPoolThread(System.Exception error) + 0x25 bytes 
  System.Web.dll!System.Web.HttpApplication.AsyncEventExecutionStep.ResumeStepsWithAssert(System.Exception error) + 0x28 bytes 
  System.Web.dll!System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(System.IAsyncResult ar) + 0x84 bytes 
  System.Web.dll!System.Web.HttpAsyncResult.Complete(bool synchronous, object result, System.Exception error, System.Web.RequestNotificationStatus status) + 0x3e bytes 
  System.Web.dll!System.Web.SessionState.SessionStateModule.PollLockedSessionCallback(object state) + 0x1af bytes 
  mscorlib.dll!System.Threading._TimerCallback.TimerCallback_Context(object state) + 0x2f bytes 
  mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes 
  [Native to Managed Transition] 
  [Managed to Native Transition] 
  mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x67 bytes 
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x45 bytes 
  mscorlib.dll!System.Threading._TimerCallback.PerformTimerCallback(object state) + 0x6b bytes 
  [Appdomain Transition] 

I have discovered what it is though. It is unrelated to Telerik. I am running against ASP.NET development server and we have forms authentication.  Often we receive the exception...

Type 'Signmanager.Security.Security' in assembly 'Signmanager.Security.Bec, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
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.

[SerializationException: Type 'Signmanager.Security.Security' in assembly 'Signmanager.Security.Bec, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]
   Microsoft.VisualStudio.WebHost.Server.GetProcessToken() +0
   Microsoft.VisualStudio.WebHost.Host.GetProcessToken() +87
   Microsoft.VisualStudio.WebHost.Request.GetUserToken() +35
   Microsoft.VisualStudio.WebHost.Request.GetServerVariable(String name) +202
   System.Web.HttpRequest.AddServerVariableToCollection(String name) +25
   System.Web.HttpRequest.FillInServerVariablesCollection() +188
   System.Web.HttpServerVarsCollection.Populate() +34
   System.Web.HttpServerVarsCollection.Get(String name) +8637927
   System.Collections.Specialized.NameValueCollection.get_Item(String name) +7
   System.Web.HttpRequest.get_Item(String key) +105
   System.Web.UI.Page.get_LastFocusedControl() +59
   System.Web.UI.Page.BeginFormRender(HtmlTextWriter writer, String formUniqueID) +8704633
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +54
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   Signmanager.Web.UI2.PageBase.Render(HtmlTextWriter writer) in C:\Fast Data\SMWeb20\Signmanager.Web.UI2\PageBase.cs:1507
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +699
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   Signmanager.Web.UI2.PageBase.Render(HtmlTextWriter writer) in C:\Fast Data\SMWeb20\Signmanager.Web.UI2\PageBase.cs:1542
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 
This is a well known short coming of ASP.NET development server running against forms authentication.


It appears that this same problem is responsible for the problems with RadFileExplorer.


When I turned off forms authentication RadFileExplorer started working perfectly.

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 20 Oct 2010, 12:06 PM
Hi David,

Thank you for sharing your experience. Your Telerik points were updated.

Best wishes,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
FileExplorer
Asked by
David Apelt
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or