The area you are attempting to access is forbidden

Last post 03-23-2009, 2:34 PM by [email protected]. 3 replies.
Sort Posts: Previous Next
  •  03-23-2009, 1:40 AM 50161

    The area you are attempting to access is forbidden

    I have the Editor and and the filemanager button on the same form.  I use the file button to upload an Attachment and the form for email text.   The Editor works fine I can upload images...extra.  The file manager button lists the above error message.
     
    Below is my code.
     
    Thanks
      

    <%
       Dim uPath :
       uPath = replace(replace(replace(session("uUser_id"), "{", ""), "}", ""), "-", "")
           Dim editor3
           Set editor3 = New CuteEditor
           Dim sAttachment : sAttachment = "sAttachment"
           editor3.ID = "sAttachment"
           editor3.FilesPath = "CuteEditor_Files"
           editor3.SecurityPolicyFile = "default.config"
           editor3.Text = ""
                       editor3.Width="1"
                       editor3.Height="1"
           editor3.FilesGalleryPath= "/districtapp/uploads/" + uPath
                       editor3.AutoConfigure="None"
                       editor3.ThemeType="Custom"
           editor3.URLType= "Absolute"
                       editor3.ShowBottomBar=false
           
           editor3.EditorWysiwygModeCss = "asp.css"
           editor3.Draw()
                            
           ' Request.Form(ID) access from other page
          %>
              <Script Language="javascript">
           function callInsertImage() 
           { 
            var editor4 = document.getElementById('<%=editor3.ClientID%>');
            editor4.FocusDocument(); 
            var editdoc4 = editor4.GetDocument(); 
            editor4.ExecCommand('new');
            editor4.ExecCommand('insertdocument');
            InputURL();
            document.getElementById("sAttachDesc").focus();
           }   
                      
           function InputURL()
           {
            var editor4 = document.getElementById('<%=editor3.ClientID%>');
            var editdoc4 = editor4.GetDocument(); 
            var links = editdoc4.getElementsByTagName("a");
           if(links.length>0&&links[links.length-1].href!="") 
            { 
            document.getElementById("sAttachDesc").value = links[links.length-1].href;
            } 
            else
            {
            setTimeout(InputURL,500);
            } 
           }      
          </script>
    <%
       dim tEmailMessageHTML_1
       tEmailMessageHTML_1 =  rsPub_BulkEmailMsg.Fields.Item("tEmailMessageHTML").Value    
      
       Dim editor
       Set editor = New CuteEditor  'Create a new editor class object     
         
       'Set the ID of this editor class
       editor.ID = "tEmailMessageHTML_1"
         
       'Set the initial HTML value of editor control
       editor.Text = tEmailMessageHTML_1
       editor.FilesPath = "CuteEditor_Files"
       
       'The toolbar items needed to be disabled going to this string. Example DisableItemList="Bold, New, Delete"
       editor.DisableItemList = "Save, New, Zoom, Print, ToFullPage, InsertAnchor, UniversalKeyboard, InsertLayer, InsertFieldSet, Links, Codes, Images, CssClass, CssStyle"
       editor.Width = 650
       editor.height = 500
       editor.URLType= "Absolute"
       editor.SecurityPolicyFile = "default.config"

       'editor.ThemeType="Office2003_BlueTheme"
       editor.ThemeType="Custom"
       editor.AutoConfigure = "Full_noform"
       editor.EditorWysiwygModeCss = "asp.css"
       
       'Set Image path
       'Dim uPath :
       uPath = replace(replace(replace(session("uUser_id"), "{", ""), "}", ""), "-", "")
       
       editor.ImageGalleryPath = "/districtapp/uploads/" + uPath
       editor.MediaGalleryPath= "/districtapp/uploads/" + uPath
       editor.FlashGalleryPath= "/districtapp/uploads/" + uPath
       editor.TemplateGalleryPath= "/districtapp/uploads/" + uPath
       editor.FilesGalleryPath= "/districtapp/uploads/" + uPath

       'editor.ImageGalleryPath = "/districtapp/uploads"
       editor.Draw()

    %>

     

    Filed under:
  •  03-23-2009, 1:35 PM 50193 in reply to 50161

    Re: The area you are attempting to access is forbidden

  •  03-23-2009, 2:10 PM 50198 in reply to 50193

    Re: The area you are attempting to access is forbidden

    Now I getting:
     
    Cookie: 1000|100000|1000|1000|1000|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|true|true|true|true|.jpg,.jpeg,.gif,.png,|.avi,.mpg,.mpeg,.mp3,.wmv,.wav,|.txt,.doc,.pdf,.zip,.rar,.avi,.mpg,.mpeg,.mp3,.wav,.swf,.jpg,.jpeg,.gif,.png,.htm,.xls,.html,.rtf,.wmv,|.txt,.rtf,.html,.htm,.xml,|en-en|false

    String: 1000|100000|1000|1000|1000|/districtapp/uploads|/districtapp/uploads|/districtapp/uploads|/districtapp/uploads/templates|/districtapp/uploads/F1229EAF6AAA4DFF92F5647544A99E4C|true|true|true|true|.jpg,.jpeg,.gif,.png,|.avi,.mpg,.mpeg,.mp3,.wmv,.wav,|.txt,.doc,.pdf,.zip,.rar,.avi,.mpg,.mpeg,.mp3,.wav,.swf,.jpg,.jpeg,.gif,.png,.htm,.xls,.html,.rtf,.wmv,|.txt,.rtf,.html,.htm,.xml,|en-en|false

    The area you are attempting to access is forbidden
  •  03-23-2009, 2:34 PM 50200 in reply to 50198

    Re: The area you are attempting to access is forbidden

    Looks like I have to define all of the paths:
     
    So I added to editor3 the following:
     
           editor3.ImageGalleryPath = "/districtapp/uploads/" + uPath
           editor3.MediaGalleryPath= "/districtapp/uploads/" + uPath
           editor3.FlashGalleryPath= "/districtapp/uploads/" + uPath
           editor3.TemplateGalleryPath= "/districtapp/uploads/" + uPath
     
    This fixed the problem; but i suspect a varible sharing problem when you have mutlipule editors.
     
          
View as RSS news feed in XML