Getting Error Failed to Mapp the path '/'

Last post 04-17-2008, 11:10 PM by nareshdusi. 2 replies.
Sort Posts: Previous Next
  •  04-17-2008, 2:39 AM 39379

    Getting Error Failed to Mapp the path '/'

    Hi
                  i am trying to set template galary path to  path as below
     
      Editor1.Setting("security:TemplateGalleryPath") =@"d:\Companyfiles\1h\1master\Templates\";
      but i am getting an error when it calles the function
      fs.VirtualRoot = CuteEditor.EditorUtility.ProcessWebPath(Context, null, secset.TemplateGalleryPath).TrimEnd('/')  + "/";
    it given me error failed to map the path '/' .how can i set to physical path.
     
     
     
    looking for help?
     
    Thanks
  •  04-17-2008, 11:17 AM 39412 in reply to 39379

    Re: Getting Error Failed to Mapp the path '/'

    If the physical path is not inside the web application's directory, you will get this error.
     
    In the following code example, the physical path "c:\inetpub\wwwroot\uploads" is part of web application's directory.


    C# Example:
    //use the app-based path 

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

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

    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

  •  04-17-2008, 11:10 PM 39430 in reply to 39379

    Re: Getting Error Failed to Mapp the path '/'

    Hi
               yes, i was able to resolve this,  what i did as my  physical directory in on d drive so i have createad the virtual directory called CompanyFiles inside my web application which was pointing to my physical directory at d drive and than i have set the
    Editor1.Setting("security:TemplateGalleryPath") ="~/CompanyFiles". and another mistake i was doing when i have created this virtual path, is that i was not resetting my IIS after resetting it, it just works fine.
    and it has worked out.
     
    Thanks!
     
View as RSS news feed in XML