Failed to map the path '/'. error on v6.0

Last post 05-09-2007, 12:59 PM by handy. 4 replies.
Sort Posts: Previous Next
  •  05-08-2007, 4:58 PM 29387

    Failed to map the path '/'. error on v6.0

    I viewed several old posts re. this error, seems like it was already fixed in version 5.3. I'm running v6.0. Can you take a look? Thanks.
     

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    Editor1.SetSecurityTemplateGalleryPath(String.Format("{0}{1}\HTMLTemplate", ConfigurationManager.AppSettings("TemplatePath"), Session("ClientID")))

    End Sub

     
    Error source is on line 167 of InsertTemplate.aspx.
     
    fs.VirtualRoot=CuteEditor.EditorUtility.ProcessWebPath(Context,null,secset.TemplateGalleryPath).TrimEnd('/')+"/";
     
     
     
  •  05-08-2007, 10:18 PM 29401 in reply to 29387

    Re: Failed to map the path '/'. error on v6.0

    handy,
     
    Which version of Cute Editor are you using?
     
    What's the value of this setting in your web.config?
     
    ConfigurationManager.AppSettings("TemplatePath")
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-09-2007, 8:34 AM 29412 in reply to 29401

    Re: Failed to map the path '/'. error on v6.0

    Adam,
     
    It's .NET version 6.0, I just double-checked my bin directory.
     
    The templatepath is a physical path to a subdirectory in my development machine, which is "c:\data\template\". I also tried hardcoding the physical path, same result. 
     
    In debug mode secset.TemplateGalleryPath value is"C:\\data\\templates\\CCC\\HTMLTemplate". This subdirectory exists. Can you reproduce this problem?
  •  05-09-2007, 10:01 AM 29420 in reply to 29412

    Re: Failed to map the path '/'. error on v6.0

    handy,

    No. Can you create a folder under your project and set it directly? If it works for you, then do some modification.

    C# Example:

    //use the app-based path 

    Editor1.Setting["security:TemplateGalleryPath"]= "~/templates";
    //use the absolute path 
    Editor1.Setting["security:TemplateGalleryPath"]= "/templates";
    //use the physical path 
    Editor1.Setting["security:TemplateGalleryPath"]= @"c:\inetpub\wwwroot\templates";
    or
    //use the app-based path 

    Editor1.SetSecurityTemplateGalleryPath= "~/templates";
    //use the absolute path 
    Editor1.SetSecurityTemplateGalleryPath= "/templates";
    //use the physical path 
    Editor1.SetSecurityTemplateGalleryPath= @"c:\inetpub\wwwroot\templates";




    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-09-2007, 12:59 PM 29441 in reply to 29420

    Re: Failed to map the path '/'. error on v6.0

    Thanks for your quick response. Yes, I did just that and it works fine. 
     
    My template directory, however, is outside the project folder. I have machine asp.net account permissions added to the folder, still the same error. Does it mean the template directory must be located under project folder or there's something else that I'm missing?
View as RSS news feed in XML