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

Spell Check Server and JSON Errors

7 Answers 136 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kevin Andersen
Top achievements
Rank 1
Kevin Andersen asked on 24 Feb 2009, 09:31 PM
Hi,

I am using the Rad Editor version 2008.1.415.20 w/ VS 2005 and am having trouble implementing the Spell Check.  If there is no HTML entered into the editor and click on the spell check icon I get a 'Spell Check Handler Server Error: 12030'...I have been unable to find any info on this error at all.   If I enter something into the editor and attempt to spell check I get a JS error in the Resource.axd file.  The error is 'Sys.ArgumentException: Cannot Deserialize.  The data does not correspond to a valid JSON.  Parameter name:Data'

The page itself is pretty simple, just an Ajax Panel, the Editor and a couple of buttons.  It is derived from a Master Page but nothing overly fancy....see below for a sample...

Any thoughts/assistance would be appreciated!

K

<%

@ Page Language="VB" MasterPageFile="~/MasterPages/mainsite.master" AutoEventWireup="false" CodeFile="ContentTest.aspx.vb" Inherits="Test_ContentTest" title="" %>

 

<%

 

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

 

<

 

asp:content id="Content2" contentplaceholderid="c2" runat="server">

 

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

 

<script language="javascript" type="text/javascript">

 

 

 

 

</script 

 

</telerik:RadCodeBlock 

 

<div style="background-color: #191944; text-align: right" class="address_label_white"> Administration - Title Block&nbsp;&nbsp;  

 

</div 

 

<br />  

 

<br />  

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="true" LoadingPanelID="LoadingPanel1">  

 

<div class="container center" style="width: 90%; height: 325px;">  

 

<uc:Header ID="ucHeader" runat="server" pageTitle="" />  

 

<br />  

 

<table border="0" width="98%" cellpadding="3" cellspacing="3" style="text-align:left">  

 

<tr 

 

<td valign="top" align="center" width='45%'>  

 

<fieldset id="Fieldset1" runat=server>  

 

<legend>Set Content </legend 

 

<table border="0" cellspacing="3" cellpadding="3" width="98%" height='240px' bgcolor="#E5E7CC" >  

 

<tr 

 

<td valign='top' align='center' colspan='3' width=100%>  

 

<telerik:RadEditor runat='server' Skin='Vista' ID='radEdit1' AutoResizeHeight=false BackColor="White" ForeColor='green' height='310' Width='980' ToolsFile="../ToolsFiles/TitleEditor.xml"  

 

<CssFiles 

 

<telerik:EditorCssFile Value="~/EditorContentArea.css" />  

 

</CssFiles

 

</telerik:RadEditor 

 

</td 

 

</tr 

 

</table>

 

</fieldset> 

 

 

</td 

 

<td valign="top" align="center" width='45%'> &nbsp; </td>

 

 

</tr 

 

 

<tr
<td colspan='2'> 

 

<table border="0" cellspacing="7" cellpadding="0" width="100%">  

 

<tr 

 

<td align='right'width='50%'>  

 

<input type="button"  id="btnNext" class="buttonFace" value="Next" onclick="" />  

 

</td 

 

<td align='left'>  

 

 

<span class="arial_10px"> 

 

 

 

<input type="button"  id="btnCancel" class="buttonFace" value="Cancel" onclick="javascript: window.location='controlPanel.aspx';" />

 

 

 

</span>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</div>

 

 

 

</telerik:RadAjaxPanel>

 

 

 

<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" BackColor="window" IsSticky="true"

 

 

 

EnableViewState="false" Transparency="15" Style="position: absolute; left: 425px; top: 275px">

 

 

 

<uc:LoadingPanel ID="UCLoadingPanel1" runat="server" />

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 </

 

asp:Content>

 

 

 

 

 




 

7 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Feb 2009, 02:07 PM
Hello Kevin,

You are using a very old version of Telerik.Web.UI.dll. Could you please upgrade to the latest one 2008.3 1314  (Q3 SP2 2008) and see whether you still experience this error.

In case you are not able to solve the problem, please open a support ticket and send a sample working project that demonstrates the error. I will examine the project and provide a solution once I recreate the issue on my side.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pako
Top achievements
Rank 1
answered on 20 Mar 2014, 08:03 PM
Hello my name is Frank. 
I am getting 2 Issues.
 
1. Spell check handler server error 12031. I am working with framework 2.0 and we cant upgrade framework because our application is based on this version.
2. Second Issue is “Spell Check Handler Server Error: 500” Related with Invalid character in a Base-64 String

The miages are in the present attachment.
Thank you.
Regards.
0
Marin Bratanov
Telerik team
answered on 21 Mar 2014, 10:18 AM

Hi Frank,

These errors are quite uncommon and at this point I can offer the following suggestions:




Regards,

Marin Bratanov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Pako
Top achievements
Rank 1
answered on 21 Mar 2014, 04:12 PM
Hello Marin thanks for your quick response.
 
I followed the steps you suggested me and I could mitigated “Spell Check Handler Server Error: 500” Issue but still getting this “Spell Check handler Server Error 12031”.
 
The steps I couldn’t do were updates because Our application is running on Framework 2.0 and these updates represent a huge risk for us.
 
Let me know please if you can help me with this last Issue, will be very helpful for us.
 
Thank you so much.
Regards.
0
Marin Bratanov
Telerik team
answered on 24 Mar 2014, 04:39 PM

Hello Frank,

We do not support .NET 2.0 and old versions that run it. This exception has been reported rarely and we have not been able to reproduce it locally in order to investigate it. So far, considering our clients' reports, the steps I previously suggested should help.

I would still advise that you upgrade to the latest version of the controls because it is very likely that an improvement in a later version will also help in your case.

I do understand the risks of upgrading a production environment, yet I would suggest trying to install .NET 4 on a testing machine that mimics the production one in order to test the application and the RadSpel component.

I would also like to note that all modern browsers offer a built-in spellchecker that end users can utilize, so this may be also an option to consider.


Regards,

Marin Bratanov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Pako
Top achievements
Rank 1
answered on 24 Mar 2014, 06:54 PM
Hello,

I appreciate this value time of you, like I said Upgrade Controls or Framework is not an option even if these upgrades works in a different Server/PC we don't want to take this risk in Production Site.

What we are trying to do is implement the Microsoft Word Dictionary or other complete English dictionary, in order to fix Spell Check Errors.

As an implementing "Microsoft Word Dictionary" is not working for us, what other option could do you consider that can fit our solution?

Thank you.
Regards.
0
Marin Bratanov
Telerik team
answered on 25 Mar 2014, 11:54 AM
Hi,

As I have already explained, this scenario is not supported anymore, because support for .NET 2.0 was dropped three years ago by Microsoft and by us.

The 12031 error is a generic one and means that the server connection was reset. Thus, it is very likely that the problem stems from the general environment setup and not from our software. With this in mind, I can offer the following suggestions:

  • increase maxRequestLength and executionTimeout values under system.web in the web.config. It is possible that there is a limit imposed there that does not let the request go through. You can first try with very large values to confirm if this is the case. You can also try increasing the AsyncPostBack property of the ScriptManager on the concrete page to see if this helps.
  • make sure that access to the RadSpell handler is allowed for all users, regardless of authentication. This is usually done via a location tag in the web.config. For example:
    <configuration>
    ...
    <location path="Telerik.Web.UI.SpellCheckHandler.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>
    ...
    </configuration>
  • make sure that custom URL rewriting/redirecting does not affect the handler. Proxies or firewalls may also alter/break/block the request, so you can look into this too.
  • try removing any compression used, it is possible that two modules are enabled at the same time and double compression is performed. Make sure the RadCompression settings in the web.config are all removed.
  • make sure that the RadSpell dictionaries are added under ~/App_Data/RadSpell or that the control is configured to look for them in the custom folder they are placed in.
  • remove AJAX from the page to see if this is causing the issue
  • make sure that the user account the application pool is using has read/write permissions to the hard drive. I recall discussing such problems in another ticket and over the phone about installations. It is very likely that the environment has some custom changes applied that are causing this problem. I would advise comparing it with a standard setup that should work fine (e.g., a development machine).
  • try removing the MS Office provider. As discussed in your previous ticket, it is possible that it requires elevated privileges the AppPool account does not have. You can try using the OpenOffice provider or the default dictionaries that come with the control.
  • in case the other providers are used (e.g, the MS Office provider), make sure all needed assemblies are referenced.
  • check if the application is running under limited access, i.e., try making sure it runs under full trust.
  • if a live URL is available, please send it to us so we can have a look at the requests. Othewise, you can send us a FiddlerCap log so we can see what happens with the requests and whether they pass.
  • try changing the RadSpell handler in the web.config (and in its markup, of course), to use a different URL:
    <add path="Telerik.Web.UI.SpellCheckHandler.ashx" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
    for a standalone RadSpell change this setting:
    RadSpell1.AjaxUrl = "~/Telerik.Web.UI.SpellCheckHandler.ashx";

    for a RadEditor spellchecker use this:
    RadEditor1.SpellCheckSettings.AjaxUrl =  "~/Telerik.Web.UI.SpellCheckHandler.ashx";
If neither of these suggestions helps (including the OpenOffice provider and the built-in dictionaries), I am afraid that I cannot offer any other suggestions.

Regards,
Marin Bratanov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Editor
Asked by
Kevin Andersen
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Pako
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or