Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

Last post 02-19-2009, 10:36 PM by cutechat. 4 replies.
Sort Posts: Previous Next
  •  02-11-2009, 2:49 AM 48599

    Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

    Hi there, I recently upgraded CuteEditor to 6.2 (from 6.0) and I now cannot create a new template file by from the Insert Templates dialogue.  It shows a list of existing templates, and when I click Make Template, it asks for a filename (test.htm in this example) and then crashes.
     
    The error I'm getting is:
     
     System.Exception: file is not in directory!/applicationDirectory/ui/images/oxf/test.htm:~/ui/images/oxf/
       at CuteEditor.Impl.SecuritySetting.VerifyInDirectory(String filename, String indir)
       at ASP.outereditorfull_aspx.Page_Load(Object sender, EventArgs e) in http://localhost/applicationDirectory/CuteSoft_Client/CuteEditor/Dialogs/OuterEditorFull.aspx:line 81
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain()
     
    I'm setting the directory using:  .SetSecurityTemplateGalleryPath("C:\Inetpub\wwwroot\applicationDirectory\ui\images\oxf\")

    This used to work fine in 6.0, but now it doesn't - can you please tell me how to fix it asap?
     
    Many thanks
     
    Chris
  •  02-11-2009, 7:00 AM 48608 in reply to 48599

    Re: Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

    Hi chrisD,
     
    Please try relative path, forexample:
     
    .SetSecurityTemplateGalleryPath("~\ui\images\oxf\")
     
    Regards,
     
    Ken
  •  02-17-2009, 5:55 AM 48904 in reply to 48608

    Re: Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

    Thanks Ken, but now I get the error...
     
    Could not find a part of the path "c:\inetpub\wwwoot\applicationDirectoy\CuteSoft_Client\CuteEditor\Dialogs\~\ui\images\oxf\".
     
    ...as soon as I press the 'Insert Templates' button from the main editor window.  I've typed it exactly as you have done above.
  •  02-19-2009, 2:29 AM 48989 in reply to 48904

    Re: Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

    Can I get an answer on this please?
     
    It's absolutely insane that a feature that worked perfectly fine is now broken in a newer version. If it helps, here's the parameters I'm setting on the control.
              
    With editoContol               
    .AllowPasteHtml = Tue               
    .EnableStipStyleTagsCodeInjection = False               
    .EnableStipSciptTags = False               
    .AutoConfigue = CuteEdito.AutoConfigue.Simple               
    .CustomCultue = sessLanguage.CuteEditoId               
    .ShowHtmlMode = Tue               
    .ShowPeviewMode = False               
    .ShowTagSelecto = False               
    .EditCompleteDocument = Tue               
    .UsePhysicalFomattingTags = Tue               
    .BeakElement = CuteEdito.BeakElement.P               
    .ThemeType = CuteEdito.ThemeType.OfficeXP               
    .SetSecuityImageGalleyPath("~\ui\images\oxf\")
    .SetSecuityFilesGalleyPath("~\ui\images\oxf\")
    .SetSecuityTemplateGalleyPath("~\ui\images\oxf\")               
    .URLType = CuteEdito.URLType.Absolute               
    .EnableAntiSpamEmailEncode = False           
    End With
     
    Also, as you'll notice above, why when I paste code into your editor window here, does it remove all instances of the letter 'r' from the text!?!?!
  •  02-19-2009, 10:36 PM 49031 in reply to 48989

    Re: Error trying to create a template - worked fine before I upgraded 6.0 to 6.2

    Hi,
     
    Please do not use ~\...\...\
     
    Please use ~/.../.../
     
    Regards,
    Terry
     
     
View as RSS news feed in XML