Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > FileExplorer can't show my files with WebApp

Answered FileExplorer can't show my files with WebApp

Feed from this thread
  • Israel avatar

    Posted on Jan 19, 2012 (permalink)

    Hi!

    I'm implementing the DBFileBrowserContentProvider class to access to a Sql Server data base. It works fine if I use a web site but if I use a web application when I try to show the file the handler doesn't work. Does anybody have an idea about what I'm doing wrong?

    The example I'm following is the next

    http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/connect-radfileexplorer-or-radeditor-to-a-sql-databse.aspx

    This example uses a web site but when I try to do the same in a web application, the hanlder file is never invoked and the file is never shown

    Thanks in advance

    Reply

  • Answer Dobromir Dobromir admin's avatar

    Posted on Jan 24, 2012 (permalink)

    Hi Israel,

    Could you please make sure that the path to the handler is correctly set in the web.config file?

    If the path is correct, could you please try to change the DBContentProvider's constructor to the following and see if the problem still exists:
    public DBContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)
        :
        base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)
    {
        _itemHandlerPath = ConfigurationManager.AppSettings["Telerik.WebControls.EditorExamples.ItemHandler"];
        if (_itemHandlerPath.StartsWith("~/"))
        {
            _itemHandlerPath = (context.CurrentHandler as Page).ResolveUrl(_itemHandlerPath);
        }
    }


    Kind regards,
    Dobromir
    the Telerik team
    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 their blog feed now

    Reply

  • Israel avatar

    Posted on Jan 24, 2012 (permalink)

    Hi Dobromir

    Thanks
    for the help! The file path was correct, I just had to change the constructor and everything works fine

    Best Regards

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > FileExplorer can't show my files with WebApp
Related resources for "FileExplorer can't show my files with WebApp"

ASP.NET FileExplorer Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]