Image Manager Errors

4 posts, 0 answers
  1. Chris Trina
    Chris Trina avatar
    87 posts
    Member since:
    Mar 2006

    Posted 06 Jun 2016 Link to this post

    I think I'm missing something obvious, but I surrender.  I have an editor with the image manager tool enabled.  Below is my code behind code setting it all up, you can see that I create the directory if it is not there.  The image uploads successfully and is in the right directory.  However I am getting these three errors

    • After an upload – You are trying to navigate to a non-existing folder or you do not have proper permissions…
    • After I try the Image Edit - ImageEditor_Common_MessageCannotWriteToFolder
    • After I try to Delete – The selected file could not be deleted because the application did not have enough permissions.

     Any hints would be greatly appreciated.

    'set imagemanager paths
    Dim sImage As String = SSG.BYOC.Shared.Resource.GetClassroomSaveToFilePath(AppConfig.ClassroomFileUploadRoot, ClassID)
    Dim sImagePath As String = Server.MapPath(sImage)
    Dim imagePath As String() = New String() {sImage}
    ' Dim imageFilters As String() = New String() {"gif", "jpg", "jpeg", "png"}
    If Directory.Exists(sImagePath) = False Then
    End If
    'ctlDescription.ImageManager.SearchPatterns = imageFilters
    ctlDescription.ImageManager.ViewPaths = imagePath
    ctlDescription.ImageManager.UploadPaths = imagePath
    ctlDescription.ImageManager.DeletePaths = imagePath

  2. Chris Trina
    Chris Trina avatar
    87 posts
    Member since:
    Mar 2006

    Posted 07 Jun 2016 in reply to Chris Trina Link to this post

    Please ignore this posting, I solve it.  

    We were using a .net Path.Combine command to build the image path.  This is supposed to produce a cross platform friendly URL.  Unfortunately it was inserting a \ instead of a / which was causing the errors.  Some of the image manager functioned fine with the \, however other areas obviously were not.



  3. Moon
    Moon avatar
    250 posts
    Member since:
    Apr 2008

    Posted 13 Feb Link to this post

    Thank you so much Chris Trina for this answer! I have been having this problem for years and Telerik always tells me it's my permissions. All I did was swap the \ with the / and now it works!!

    Hopefully Telerik reads this so they can inform people who ask next time!


  4. Vessy
    Vessy avatar
    1660 posts

    Posted 14 Feb Link to this post

    Hi guys,

    We do read this and will have this scenario in mind should any other users face the same problem. Thank you for sharing the solution with us!

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top