Virtual Directory

9 posts, 0 answers
  1. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 31 Mar 2010 Link to this post

    I have set the ImageManager view, upload and delete paths to a virtual directory and followed the info on this page and this page

    The virtual directory is running under a specific domain account, with full control given to the folder and the share. IIS is serving the images, and I can navigate through the directory structure of the virtual directory in IIS.  I am also able to save, rename and delete files in the folder while connected as the domain account.

    When I open the image manager dialog, the images in the folder are not being populated in the dialog, nor is the upload button enabled.

    I tested with a folder on my hard-drive and was able to create, modify and delete images via the image manager.

    Any help would be appreciated!






  2. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 31 Mar 2010 Link to this post

    Hi Neil,

    If this virtual folder points to a physical folder located on another PC then see these articles:

    Uploading images and files to a Shared Drive
    and
    Using RadFileExplorer with physical and shared folder's paths.

    Kind regards,
    Rumen
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 31 Mar 2010 Link to this post

    Thanks for the reply Rumen.  I read, and followed the info on both knowledge base documents with out success.

    I have attached a screenshot that shows how the virtual directory is set up.  The account that the virtual directory is running under has full control.

    Thanks!
  5. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 31 Mar 2010 Link to this post

    File attached
  6. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 01 Apr 2010 Link to this post

    Hi Neil,

    Can you please set full permissions for the everyone user for the Images folder?

    You can also see whether the files in the ~/files/_global/images/htmlLibrary folder are accessible in the web page with the following C# code:

    protected void Page_Load(object sender, EventArgs e)
        {
            string resolvedPath = Server.MapPath("~/Images");
            Response.Write("The images folder resolves to: " + resolvedPath);
            foreach (string file in Directory.GetFiles(resolvedPath))
            {
                Response.Write("<br/>File: " + file);
            }
        }


    For your convenience I have attached a video which demonstrates how to map a virtual folder that points to a shared drive and load its files in the Image manager of RadEditor Classic.

    Kind regards,
    Rumen
    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.
  7. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 01 Apr 2010 Link to this post

    Adding everyone did not work, but after some Googling we found a blog post by Rick Strahl which fixed the problem.  To determine the account that the application in running under we used <%= Environment.UserName %> - this returned ASPNET (IIS 5.1 - does not have appPools)

    We then added a username and password to the machine.config so the app would run under an account that we specified and not the ASPNET account

    C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG

    <processModel userName="domain\account" password="password" />

    Hope this helps someone!
  8. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 02 Apr 2010 Link to this post

    Hi Neil,

    Thank you for sharing this solution with the community. We do appreciate your help and I updated your Telerik points.

    All the best,
    Rumen
    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.
  9. Rinken
    Rinken avatar
    1 posts
    Member since:
    Jul 2010

    Posted 27 Jul 2010 Link to this post

    Rumen,
    I am struggling with similar issue where RadEditor.ImageManager version 6.6.3.0 is not able to recognize Sub Application Virtual Directory pointing to Remote Share. I had tried the function you provided that reads Directory and Files under VD and with impersonation enabled for the location that houses RadEditor,  I was successfully able to see the files.

    Is there a solution to this problem other than changing processModel that is done at application level and not location based. This would be a big security issue (not that it works on my end either).

    I confirmed the VD setup and that works perfect. Also verified the same by embedding image that is pointing to a file in Sub Application Virtual Directory.
  10. Rumen
    Admin
    Rumen avatar
    12848 posts

    Posted 30 Jul 2010 Link to this post

    Hi Rinken,

    I am not sure whether this will solve the problem on our side, but impersonation could be enabled through the <identity> element in the web.config:
    http://msdn.microsoft.com/en-us/library/xh507fc5%28VS.71%29.aspx

    You can set it in your web application's web.config file, instead of globally in your machine.config file.

    Best regards,
    Rumen
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017