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

RadEditor Image Manager Upload Button and others Disabled - Windows Authentication

4 Answers 300 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 02 Sep 2011, 04:59 PM
This is a very common issue that I have seen addressed in threads..  However, none of the solutions are working for me.  I have tried the following threads just to list a few:

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-image-manager-buttons-disabled.aspx
http://www.telerik.com/support/kb/aspnet-ajax/editor/error-sys-is-not-defined.aspx
http://www.telerik.com/support/kb/aspnet-ajax/editor/uploading-images-to-the-server-upload-tab-is-disabled.aspx

I think that covers the majority of proposed solutions I've seen -- but not mine.  Here are my specifics:

[Code Block 0] - My .aspx code for the editor

When a user accesses RADEditor's Image Manager from outside of the network for which the website resides on, subdirectories are listed, but buttons are disabled and filenames are hidden.  This is happening both within the admin section (Windows Authentication) and at the root level of the web site (no authentication required).  Essentially, when I or anyone else is at work or over our VPN, Image Manager works.  Otherwise, Image Manager is disabled.  Like I said, I have attempted the following:

  • Gave "Network Service" account full control of the directory for which images reside.
  • Set <location path> as suggested in both the base web.config and the web.config in the "admin" directory (simultaneously, and independently) as well as tried pointing the location to both root level and admin level [Code Block 1].
  • Placed the dll/xml files in a bin directory within the "admin" directory 
  • Verified that my handlers and everything was setup correctly in web.config as well as tried placing them in the "admin" directory web.config [Code Block 2]

Telerik Product version: 2010.3.1317.35
Site Authentication: Windows
Site FX: 3.5

[Code Block 0]
<telerik:RadEditor DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" ID="edtHomePageContent"
            runat="server" Width="100%" ImageManager-ViewPaths="~/assets/img" ImageManager-UploadPaths="~/assets/img"
            ImageManager-DeletePaths="~/assets/img" DocumentManager-DeletePaths="~/assets/files"
            DocumentManager-UploadPaths="~/assets/files" DocumentManager-ViewPaths="~/assets/files"
            FlashManager-DeletePaths="~/assets/videos" FlashManager-UploadPaths="~/assets/videos"
            FlashManager-ViewPaths="~/assets/videos" MediaManager-DeletePaths="~/assets/files"
            MediaManager-UploadPaths="~/assets/files" MediaManager-ViewPaths="~/assets/files"
            TemplateManager-DeletePaths="~/assets/templates" TemplateManager-UploadPaths="~/assets/templates"
            TemplateManager-ViewPaths="~/assets/templates">
            <CssFiles>
                <telerik:EditorCssFile Value="~/style.css" />
            </CssFiles>
        </telerik:RadEditor>

[Code Block 1] - Note: I have to use .axd for the dialog handler as I have a url rewriter that conflicts with .aspx
<location path="admin/Telerik.Web.UI.DialogHandler.axd">
    <system.web>
      <authorization>
        <allow users="?"/>
      </authorization>
    </system.web>
  </location>
  <location path="admin/Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>
      <authorization>
        <allow users="?"/>
      </authorization>
    </system.web>
  </location>
<location path="Telerik.Web.UI.DialogHandler.axd">
    <system.web>
      <authorization>
        <allow users="?"/>
      </authorization>
    </system.web>
  </location>
  <location path="Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>
      <authorization>
        <allow users="?"/>
      </authorization>
    </system.web>
  </location>

[Code Block 2] Note: For kicks, this is what my admin level web.config looked like.  The handlers are set like this in the root level web.config currently.
<system.web>
<authorization>
      <allow users="user1" />
</authorization>
<httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpModules>
</system.web>
<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ScriptModule"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_axd" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_DialogHandler_axd" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
  </system.webServer>

4 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 06 Sep 2011, 08:08 PM
Anyone have any suggestions??
0
Rumen
Telerik team
answered on 07 Sep 2011, 10:58 AM
Hello Dan,

Please, try the suggested code in the :
An error like "... because the application did not have enough permissions..." occurs only in a production environment. How to debug the issue? point in the Troubleshooting section of RadFileExplorer.

Kind regards,
Rumen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Joe
Top achievements
Rank 1
answered on 31 Jan 2012, 10:38 PM
Hi, Did you ever get this resolved. I am running into the same exact issue and have tried everything. I even ran their code to verify that the permissions are set correctly. 

Thank you!
0
Rumen
Telerik team
answered on 01 Feb 2012, 03:44 PM
Hi,

You can see the following forum thread on the subject: Cannot get Upload/Delete to show.
You can also check the permissions using the code in the following article: Troubleshooting.

In case, you load the images from a shared folder use the solution provided in this code library: Use RadFileExplorer with physical and shared folder's paths.

Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Rumen
Telerik team
Joe
Top achievements
Rank 1
Share this question
or