Hi. It could be just temporary fault - Umbraco RTE actually has no own spellchecker and relies on the Google spellchecking service (so that as the latter is unavailable the RTE spellchecker doesn't work as well).
Error response: Index and length must refer to a location within the string. Parameter name: length
Server Error in '/' Application.
Index and length must refer to a location within the string. Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Index and length must refer to a location within the string. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +12681861 umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker.CheckWords(String language, String[] words) +469 umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker.ProcessRequest(HttpContext context) +247 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
IIRC there is a bug if you have single quotes (') in your content. I think it's an issue with javascript not escaping them properly when sending your content to google. Here is the bug report: http://umbraco.codeplex.com/workitem/30215
Probably wouldn't be that hard to fix, maybe if I get some time I'll take a stab :)
Had to fix this for a client, believe the problem is that the data sent to google for spellchecking is urlencoded, but when processing the result the data isn't so is a differing length, so just re-encoded the data before performing the substring, seems to work fine.
Beware this is just a quick fix and not extensively tested.
Thanks Mark, just that to help other dummies (like me): it requires the following "using"s
using System;
using System.Web;
using umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker;
using System.Xml;
using System.IO;
using System.Web.Script.Serialization;
using System.Net;
using System.Text;
4.7.1.1 - spell check in RTE
One of our users reported that the spell check function in the Rich Text Editor isn't working.
Hi. It could be just temporary fault - Umbraco RTE actually has no own spellchecker and relies on the Google spellchecking service (so that as the latter is unavailable the RTE spellchecker doesn't work as well).
It's returning this:
Error response:
Index and length must refer to a location within the string.
Parameter name: length
Server Error in '/' Application.
Index and length must refer to a location within the string.
Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Hi Jennifer,
IIRC there is a bug if you have single quotes (') in your content. I think it's an issue with javascript not escaping them properly when sending your content to google. Here is the bug report: http://umbraco.codeplex.com/workitem/30215
Probably wouldn't be that hard to fix, maybe if I get some time I'll take a stab :)
-Tom
Had to fix this for a client, believe the problem is that the data sent to google for spellchecking is urlencoded, but when processing the result the data isn't so is a differing length, so just re-encoded the data before performing the substring, seems to work fine.
Beware this is just a quick fix and not extensively tested.
modify - /config/tinyMceConfig.config
create - /umbraco/GSpellChecker.ashx
Thanks Mark, just that to help other dummies (like me): it requires the following "using"s
The Google spellchecker service this relies on (https://www.google.com/tbproxy/spell) may have been turned off for good.
An alternative is the HunSpellChecker plugin
is working on a reply...