RadEditor image manager upload disabled

7 posts, 0 answers
  1. Harry
    Harry avatar
    5 posts
    Member since:
    May 2009

    Posted 09 Dec 2009 Link to this post

    Hey Gents,

    I am having a problem getting the Image Manager dialog to work. All buttons are disabled on Image Manager dialog except Refresh button works. my code below:
                                    <rad:RadEditor ID="ctl_txt_Body" runat="server" Width="500px" Height="400px" SkinID="DefaultSetOfTools" 
                                        EditModes="Design, Html"
                                        <Tools> 
                                            <rad:EditorToolGroup Tag="MainToolbar"
                                                <rad:EditorTool Name="AjaxSpellCheck" /> 
                                                <rad:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" /> 
                                                <rad:EditorSeparator /> 
                                                <rad:EditorTool Name="Undo" ShortCut="CTRL+Z" /> 
                                                <rad:EditorTool Name="Redo" ShortCut="CTRL+Y" /> 
                                            </rad:EditorToolGroup> 
                                            <rad:EditorToolGroup Tag="FileManagers"
                                                <rad:EditorTool Name="ImageManager" /> 
                                            </rad:EditorToolGroup> 
                                            <rad:EditorToolGroup> 
                                                <rad:EditorTool Name="Bold" /> 
                                                <rad:EditorTool Name="Italic" /> 
                                                <rad:EditorTool Name="Underline" /> 
                                                <rad:EditorSeparator /> 
                                                <rad:EditorTool Name="ForeColor" /> 
                                                <rad:EditorTool Name="BackColor" /> 
                                                <rad:EditorSeparator /> 
                                                <rad:EditorTool Name="FontName" /> 
                                                <rad:EditorTool Name="RealFontSize" /> 
                                            </rad:EditorToolGroup> 
                                        </Tools> 
                                        <ImageManager ViewPaths="~/Img" UploadPaths="~/Img" DeletePaths="~/Img" /> 
                                    </rad:RadEditor> 


    I am using this version assembly: Telerik.Web.UI.dll Product version is 2008.03.1125.35
        <handlers> 
          <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
          <add name="Telerik.Web.UI.DialogHandler.axd_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
          <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/> 
          <add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0"/> 
          <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0"/> 
        </handlers> 


    The environment is Win 2008 + IIS 7 + .NET 3.5, Managed Pipeline Mode is Classic. I gave the write permission to Network Service. It doesn't work for me when tried many post about image manager disabled in the forums. Could you tell me what I am doing wrong please?

    Looking forward to hear from you soon.

    Thanks,
    Harry

  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 09 Dec 2009 Link to this post

    Hi Harry,

    If you have tried all the instructions provided in this KB article: Uploading images to the server (upload tab is disabled) and you are still unable to enable the Image manager, then please open a support ticket and send a sample working project along with screenshot showing your project structure in IIS.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Harry
    Harry avatar
    5 posts
    Member since:
    May 2009

    Posted 09 Dec 2009 Link to this post

    Hi Rumen,

    Thank you for your answer. I attached the screenshot first. got the js errors in IE8. does these useful for you to figure it out?

    Best Regards,
    Harry
  4. Harry
    Harry avatar
    5 posts
    Member since:
    May 2009

    Posted 09 Dec 2009 Link to this post

    Hi Rumen,

    This is js errors in IE 8. And The buttons of Image Manager are disabled in FireFox 3.5.5 and IE8 Compatibility View/IE7 though doesn't raise any js error.

    i'm going to try 2009.1 402 build for IE 8 issue.

    Could you tell me why i got this error after upgrating to the latest version?

    Version: 2009.3 1208


    Server Error in '/' Application.  
    --------------------------------------------------------------------------------  
     
    Security Exception   
    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.   
     
    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutralPublicKeyToken=b77a5c561934e089' failed.  
     


    Thanks,
    Harry
  5. Harry
    Harry avatar
    5 posts
    Member since:
    May 2009

    Posted 10 Dec 2009 Link to this post

    Hi Rumen,

    I just found that it doesn't work on page with form Authentication, but the buttons enabled on public page without any Authentication.

    any ideas?

    Thanks,
    Harry
  6. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 14 Dec 2009 Link to this post

    Hi Harry,

    In form authentication scenario a non logged user is redirected to the login page. When a non user load some dialog then the code tried to load the login screen in the dialog, but the dialog expects other content and throws the reported error.

    The DialogHandler must be always accessible and to fix the problem you should add the following two <location> entries to the web.config:

    <location path="Telerik.Web.UI.DialogHandler.aspx">
        <system.web>
            <authorization>
                <allow roles="TestUser"/>
            </authorization>
        </system.web>
    </location>
    <location path="Telerik.Web.UI.SpellCheckHandler.axd">
        <system.web>
            <authorization>
                <allow roles="TestUser"/>
            </authorization>
        </system.web>
    </location>


    All the best,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. venkat
    venkat avatar
    3 posts
    Member since:
    May 2013

    Posted 21 Jan 2014 Link to this post

    Hi Harry

    I also have Same Problem......
    i read almost all articles finally i find the solution analyzing them.
    i.e We need to add  AllowScripts="True" in radeditor Markup.
    Example:
    <telerik:RadEditor ID="BodyText" SkinID="BasicSetOfTools" runat="server" Height="400" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" 
                            Width="860px" EnableResize="true" AllowScripts="True">
    <ImageManager UploadPaths="~/img" ViewPaths="~/img" MaxUploadFileSize="10240000"  SearchPatterns="*.gif, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif,*.bmp"/>
    </telerik:RadEditor>

    **Very Important
    don't forgot to add handler file in web.config file
    <httpHandlers>
                <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            </httpHandlers>
    and
    <system.webServer>
        <!--<modules runAllManagedModulesForAllRequests="true"/>-->
        <validation validateIntegratedModeConfiguration="false"/>
        <handlers>
            <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
            <add name="Telerik_Web_UI_DialogHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler"/>
        </handlers>
    </system.webServer>
    This Code Solve My Problem.
    Now I can Add Image through Image Manager.
     
    Thanks and Regard
    Venkat
    Application Programer
Back to Top