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

URL rewrite module incompatibility (solved)

3 Answers 296 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 2
Igor asked on 07 Feb 2014, 02:59 PM
Hello, a new post just to share an issue I have solved and that gave me an headache.
All RadEditor dialogs returned me the error
"Cannot deserialize dialog parameters. Please refresh the editor page."

The problem had nothing with encryption (as suggested in other threads).
The problem was an incompatibility with a URL rewriting rule in web.config, a rule that is suggested on Microsoft MSDN.
<!--Redirect HTML with query parameters to lowercase URLs-->
<rule name="ForcePagesWithParametersLowercase" stopProcessing="false">
  <match url=".*[A-Z].*\.(aspx|htm|html)" ignoreCase="false" />
  <conditions>
    <add input="{QUERY_STRING}" pattern=".*[A-Z].*" />
  </conditions>
  <action type="Redirect" redirectType="Permanent" url="{ToLower:{R:0}}?{ToLower:{QUERY_STRING}}" appendQueryString="false" />
</rule>


The SEO rule forces a permanent redirect on lower case URLs... but it is also responsible of the RadEditor problem.
What's the solution if you don't want to remove the rule?
Change it with the following one
<!--Redirect HTML with query parameters to lowercase URLs-->
<rule name="ForcePagesWithParametersLowercase" stopProcessing="false">
  <match url=".*[A-Z].*\.(aspx|htm|html)" ignoreCase="false" />
  <conditions>
    <add input="{QUERY_STRING}" pattern=".*[A-Z].*" />
    <add input="{REQUEST_FILENAME}" pattern=".*Telerik\.Web\.UI\.DialogHandler.*" negate="true"/>
  </conditions>
  <action type="Redirect" redirectType="Permanent" url="{ToLower:{R:0}}?{ToLower:{QUERY_STRING}}" appendQueryString="false" />
</rule>


3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 07 Feb 2014, 04:38 PM
Hi Igor,

The information provided for your approach to resolve the issue is very helpful and we decided to include it in our online documentation. Thank you for sharing knowledge with the Telerik community. Such actions are highly appreciated and as a token of gratitude I am updating your Telerik points.

Some more information for other interested on this matter:

This issue is known when the application on a 64x OS. You can check this help article, in which is explained how to resolve the issue. 

Additionally, when an URL rewriter module is used, you should modify the DialogHandler.aspx to DialogHandler.axd and set the RadEditor's DialogHandlerUrl property to "~/Telerik.Web.UI.DialogHandler.axd". You can find more information and another approaches on this matter in this KB article.

Regards,
Ianko
Telerik
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Igor
Top achievements
Rank 2
answered on 07 Feb 2014, 04:43 PM
Thanks, but I already solved it in the easier way described above.
0
Ianko
Telerik team
answered on 07 Feb 2014, 04:59 PM
Hi Igor,

I updated the information of my message after review second time your post. The provided approach is indeed very helpful and your Telerik points should be already updated for this.

Continue being proactive among the Telerik community, such deeds will be always highly appreciated. 

Regards,
Ianko
Telerik
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Igor
Top achievements
Rank 2
Answers by
Ianko
Telerik team
Igor
Top achievements
Rank 2
Share this question
or