This is a migrated thread and some comments may be shown as answers.

RadEditor image manager upload disabled

16 Answers 368 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Harry
Top achievements
Rank 1
Harry asked on 09 Dec 2009, 10:03 AM
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

16 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Dec 2009, 01:41 PM
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.
0
Harry
Top achievements
Rank 1
answered on 10 Dec 2009, 04:08 AM
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
0
Harry
Top achievements
Rank 1
answered on 10 Dec 2009, 04:54 AM
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
0
Harry
Top achievements
Rank 1
answered on 11 Dec 2009, 04:14 AM
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
0
Rumen
Telerik team
answered on 14 Dec 2009, 03:31 PM
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.
0
venkat
Top achievements
Rank 1
answered on 21 Jan 2014, 08:00 AM
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
0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 19 Apr 2021, 01:24 PM

Hi Rumen,

Tried with changes but still upload , Refresh are disabled ,Can anyone help on this?

0
Rumen
Telerik team
answered on 19 Apr 2021, 01:55 PM

Hi Kumar,

It looks like that the path set in the ViewPaths property actually works since the folders are loaded in the Image and Docs manager. Check out whether the same path is set for the Upload and DeletePaths and that they have full NETWORK SERVICE account permissions.

The ViewPaths, UploadPaths and DeletePaths properties should point to a folder that is:

  • a subdirectory of your web application
  • a directory placed in the root of IIS - you can set this folder by using the / forward slash symbol, e.g. ViewPaths = " /Files ";
  • a virtual directory of your web application that has a physical path pointing outside of your web application.

See this article for more info: Enforcing Roles.

You can also check the applied permissions programmatically with the sample at https://docs.telerik.com/devtools/aspnet-ajax/controls/fileexplorer/troubleshooting/common-issues#an-error-like--because-the-application-did-not-have-enough-permissions-occurs-only-in-a-production-environment-how-to-debug-the-issue

Regards,
Rumen
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 19 Apr 2021, 02:20 PM

Checked the permissions as well and given access to users but still issue exists.

 <ImageManager 
        ViewPaths="~/files/Uploads/Images" 
        UploadPaths="~/files/Uploads/Images" 
        DeletePaths="~/files/Uploads/Images"
MaxUploadFileSize="5242880"
        SearchPatterns="*.gif,*.jpg,*.jpeg,*.png,*.bmp" 
        ViewMode="Grid" />
    <DocumentManager 
        ViewPaths="~/files/Uploads/Documents" 
        UploadPaths="~/files/Uploads/Documents" 
        DeletePaths="~/files/Uploads/Documents"
MaxUploadFileSize="51200000"
        SearchPatterns="*.doc,*.docx,*.xls,*.xlsx,*.ppt,*.pptx,*.pdf,*.zip,*.ics,*.vcf" />

0
Rumen
Telerik team
answered on 19 Apr 2021, 02:28 PM

Hi,

Your configuration looks perfect.

Check for any JS errors in the console.

Also test the latest version of the control R1 2021 SP2 and in a brand new project to see if it is not due to the configuration of the current project.

Regards,
Rumen
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 19 Apr 2021, 03:34 PM

Hi While clicking those Image manager and Document Manager,getting this issues in Console.

 

0
Rumen
Telerik team
answered on 19 Apr 2021, 04:10 PM

Since these errors do not look Telerik related (the ScriptResource.axd handler is from the WebForms framework, but not Telerik) please resolve them and once resolved test the dialogs. 

Also check whether you are using the  ASP.NET AJAX Control Toolkit Script Manager, which is not supported by the Telerik controls.

 

Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 20 Apr 2021, 01:39 PM

Hi Rumen,

I have tried to resolve, Tested with document mode IE7,issue resides. When we change document mode to IE8 in Internet Explorer ,then all the tabs are enabled both in Image , Document manager.

Currently we are using 2020.3.915.45 with .NetFramework 4.8.

Is there any compatibility issue with .Net framework4.8 for this issue?

 

0
Rumen
Telerik team
answered on 20 Apr 2021, 03:46 PM

Hi Kumar,

This is a good catch!

The compat mode of IE is not supported as noted at the Browser Support page as well as in these articles:


Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
answered on 20 Apr 2021, 04:36 PM

Thanks for the help.

1.We are using trail hotfix to test the application, and trail is expired, will it be the issue for tabs not working?

2.Is Document mode IE7  not compatible with Telerik R3 2020.3.915.45?

3..Is the Telerik version 2020.3.915 compatible with .Netframework 4.8 or .Netframework 3.5?

4.Can I get any article related to compatibility upto latest Telerik version?

Can you please help me to know about information.

0
Rumen
Telerik team
answered on 20 Apr 2021, 04:49 PM

Hello,

Straight to the questions:

  1. The trial version is fully functional and the only difference with the registered developer's one is that it throws random license errors in the browser. The trial version will continue to work even after the trial gets expired, but you will not be eligible for free support.
  2. IE7 and IE Compatibility Mode, which triggers IE7 emulation are not supported as of R3 2015. This means that R3 2020.3.915.45 does not support it too.
  3. Yes, R3 2020.3.915.45 supports both .NET 3.5 and .NET 4.8. See more at https://www.telerik.com/aspnet-ajax/tech-sheets/net-support
  4. Along with the page provided in point 3, you can also check this one: https://docs.telerik.com/devtools/aspnet-ajax/licensing/old-versions-support-policy

Best Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Editor
Asked by
Harry
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Harry
Top achievements
Rank 1
venkat
Top achievements
Rank 1
Sachita
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or