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

RadFileExplorer / Custom FileBrowswerContentProvider / EC2

1 Answer 20 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
ChrisH
Top achievements
Rank 1
ChrisH asked on 20 Sep 2013, 07:32 PM
I'm getting an odd situation here. I am using a Custom FileBrowserContentProvider (the DB provider that was given as a sample). Everything works great in development and on our staging servers. But on our EC2 server (Windows 2008 Datacenter sp2), whenever you attempt to browse to the FileExplorer, the CPU shoots up to 100% and stays there. It looks like it is when it is requesting the Dialog aspx page that this is occuring. I have to kill the process in order to recover.

I can't figure out why this would only happen on that server. We are using the 2012.3.1308.35 build of the controls.

Has anyone ever heard of this occurring? I can't find any reference to it in my searches.

This is the factory class we use to get the contentProviderTypeName:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.Web.UI.Widgets;
 
namespace NovusAgenda.Storage.ImageLibrary
{
    /// <summary>
    /// Used to determine which image library this client is using
    /// </summary>
    public class ImageLibraryFactory
    {
        /// <summary>
        /// Returns the Reflection path to the appropriate provider.
        /// This is meant to be passed to RadEditor.ImageManager.ContentProviderTypeName
        /// </summary>
        /// <returns></returns>
        public static string GetImageLibraryCustomProviderTypeName()
        {
            if (SystemSettings.UseCustomImageHandler)
            {
                return "NovusAgenda.Storage.ImageLibrary.DatabaseImageLibraryContentProvider, NovusAgenda";
                //return SystemSettings.CustomImageHandlerStore;
            }
            else
            {
                return null;
            }
        }
        //public FileBrowserContentProvider GetImageLibraryCustomProvider()
        //{
        //    return new Storage.ImageLibrary.DatabaseImageLibraryContentProvider();
        //}
    }
}

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 24 Sep 2013, 03:15 PM
Hello Chris,

I have just answered your support ticket on the subject, for convenience I am pasting my answer here as well:

I am afraid that the provided information is not enough for us to determine what is causing the issue on your side. I would suggest you to debug the provider, especially the methods called in the initial loading of the control - you can see the order of calling different methods on the provider's common operations in the end of this help article: Using custom FileBrowserContentProvider

For example, you could try setting breakpoint here:
this.dataServer = NovusAgenda.GetDatabase();
or here:
DirectoryItem directory = dataServer.GetImageLibraryDirectoryItem(path, true);


Regards,
Veselina Raykova
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
FileExplorer
Asked by
ChrisH
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or