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

RadEditor - WebConfig is missing!

5 Answers 116 Views
Editor
This is a migrated thread and some comments may be shown as answers.
FernandoMaziero
Top achievements
Rank 1
FernandoMaziero asked on 15 Oct 2012, 02:33 PM
Hello, I'm having one issue with RadEdtior, well,
I already did like 10-15 projects with RadEditor, but,
I already have that problem on 2 of my other projects, one of them i do not remember what i did, because it was long time ago, but i solved it, another one, i got problem with urlrewriter, i solved it also,
now, i'm having that problem again,

i Already did alot of things that i found in the forum, changed the .aspx to axd,
also, commented all my urlrewriter, and checked if it's the problem, checked the webconfig to see if are something different from others projects and there is nothing different.
now i don't know what to do because i didn't found something different.
and all i found is invalid for me! =(

This is one picture of error,
WebConfig Is Missing

if Someone help me i'm grateful.

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Oct 2012, 02:59 PM
Hello,

I was able to configure RadEditor's dialogs without registering their handlers in the web.config file by:
1) Creating a file named Telerik.Web.UI.DialogHandler.aspx in the root of the web site with the following content:
<%@ Page Language="C#" Inherits="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" %>

2) and setting the DialogHandlerUrl property to point to it "~/Telerik.Web.UI.DialogHandler.aspx", e.g.

<telerik:RadEditor ID="RadEditor1" runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx">
</telerik:RadEditor>

You can see my test in the following video: http://screencast.com/t/aUw1ds3f.

I have also attached my test project here.

Greetings,
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.
0
FernandoMaziero
Top achievements
Rank 1
answered on 15 Oct 2012, 04:30 PM
here is the some parts of my Web.Config
if You can tell me something, i did right what you have done in your project,
but now the button of upload imagem isnt working, i click but he do nothing :p


<httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <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 path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
 </httpModules>
 
<validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule"/>
      <remove name="RadCompression"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0"/>
    </modules>
    <handlers>
      <remove name="UrlRoutingHandler"/>
      <remove name="ChartImage_axd"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <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_aspx" 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>

0
Rumen
Telerik team
answered on 16 Oct 2012, 07:19 AM
Hi,

Did you test the provided project in my earlier post? It works as expected on my end and the Upload dialog pops up when clicking on the Upload button.

By the way were you able to fix the httphandler error?

Greetings,
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.
0
FernandoMaziero
Top achievements
Rank 1
answered on 16 Oct 2012, 11:51 AM
Yes, i did, and it does not work for me, i have a little time to done this project, and i do not know what to do, the only different thing i got on that project is that i'm using oracle DB, another things is same of other projects.
0
Rumen
Telerik team
answered on 16 Oct 2012, 03:38 PM
Hello,

Do you experience problem with the SpellChecker which also works with a handler?

If not try the following:
To fix the problem:
  1. open the web.config file and replace all Telerik.Web.UI.DialogHandler.aspx instances with Telerik.Web.UI.DialogHandler.axd
  2. and set the DialogHandlerUrl property of RadEditor to "~/Telerik.Web.UI.DialogHandler.axd"
  3. After that set location tag for the Telerik.Web.UI.DialogHandler.axd file:

    <locationpath="~/Telerik.Web.UI.DialogHandler.axd">
    <system.web>
    <authorization>
    <allow users="*"/>
    </authorization>
    </system.web>
    </location>
Do you have any nested web.config files in your application that could override the handler settings?

Can you please provide a live URL to the problematic page if you are unable to fix the issue?


Greetings,
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
FernandoMaziero
Top achievements
Rank 1
Answers by
Rumen
Telerik team
FernandoMaziero
Top achievements
Rank 1
Share this question
or