Rad File Explorer With UNC Share Drive

7 posts, 0 answers
  1. Rizwan Ansari
    Rizwan Ansari avatar
    26 posts
    Member since:
    Nov 2009

    Posted 06 Feb 2014 Link to this post

    Dear Telerik Team,

    i am looking to integrate RadFileExplorer with unc share drive, i try to see this link http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx but seems the link is broken.

    Could you please guide for my requirements.

    Thanks
  2. Vessy
    Admin
    Vessy avatar
    1383 posts

    Posted 06 Feb 2014 Link to this post

    Hi Rizwan,

    The right link, where you can access the FileExplorer's content provider for UNC paths is as follows:
    http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths

    In addition, could you let us know where you found the broken one so we can edit it, if it is within our domain?

    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rizwan Ansari
    Rizwan Ansari avatar
    26 posts
    Member since:
    Nov 2009

    Posted 08 Feb 2014 in reply to Vessy Link to this post

    Dear Veselina,

    Thanks for the link, it help me to browse unc shared folder.
    i need some more help from you, actually i am doing sharepoint webpart to display unc shared folder, if you have sample or steps please advice.
    Also i want to pass user credentials in the sample you provided above, where exactly i have to set domain\username and password?

    Please help.

    Thanks.
  5. Vessy
    Admin
    Vessy avatar
    1383 posts

    Posted 12 Feb 2014 Link to this post

    Hello Rizwan,

    Information on how to configure FileExplorer in a SharePoint webpart, along with providers on how to connect the SharePoint libraries, could be found here:
    Using the RadFileExplorer for ASP.NET AJAX in a MOSS web application
    Using the RadFileExplorer for ASP.NET AJAX in SharePoint 2010 web parts

    Regarding your second question, you can use a standard authentication set with ASP.NET Impersonation enabled. Note that when using RadFileExplorer with impersonation you need to apply impersonation to the  Telerik.Web.UI.WebResource handler and the handler used by the control (if any), e.g.:
    web.config
    <
    location path="FileSystemHandler.ashx" allowOverride="true">
        <system.web>
           <authorization>
                <allow roles="*"/>
            </authorization>
        </system.web>
    </location>
    <location path="Telerik.Web.UI.WebResource.axd" allowOverride="true">
       <system.web>
         <identity impersonate="true" userName="HostingServer\userName" password="userPassword"/>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>

    I hope this information will be helpful for you.

    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  6. Mahmoud
    Mahmoud avatar
    25 posts
    Member since:
    Sep 2012

    Posted 03 Dec 2014 in reply to Vessy Link to this post

    Hi Vessy,
    Thanks for that valuable information. very helpful.

    but, impersonation will allow me to access My folder with a specific username. for all other users!
    How can I use Windows Authentication with my FileExplorer . so every user can access the Folder with assigned permissions to him
    in the NTFS folder security permissions (whether it's Read/write...etc).
    simply after the user put his (domain\username and password) through windows authentication . FileExplorer should read windows identity. But not impersonating one user.

    have in mind that I tried the following :
    <location path="Telerik.Web.UI.WebResource.axd" allowOverride="true">
        <system.web>
            <authentication mode="Windows"></authentication>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>

    But still getting (access denied error)

    I've been looking for this requirements for days, but ended up with nothing!

    any help, appreciated
  7. Mahmoud
    Mahmoud avatar
    25 posts
    Member since:
    Sep 2012

    Posted 04 Dec 2014 in reply to Vessy Link to this post

    Any Help please !
  8. Vessy
    Admin
    Vessy avatar
    1383 posts

    Posted 08 Dec 2014 Link to this post

    Hello Mahmoud,

    In order to grant each user with the proper permissions you will need to give full permissions not only to the Telerik.Web.UI.WebResource.axd handler, but also the one used by your content provider(I assume that you are using such as you are writing in this thread).

    On a side note, I would suggest that you make the permission tests from this help article and see whether the permissions to the current user are assigned properly and she can access the content of the target folders. Only if the user have permissions to these folders, FileExplorer will be able to list their content.

    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017