Welcome Guest Search | Active Topics | Sign In | Register

When using danish language, Spellchecker throw exception: Index was outside the bounds of the array. Options
Jan Rygh
Posted: Monday, May 11, 2009 5:04:09 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
Hi.

I'm using danish the language files in Spellchecker:
http://www.stavekontrolden.dk/main/sspinputfiles/da_DK.aff
http://www.stavekontrolden.dk/main/sspinputfiles/da_DK.dic

Norwegian, swedish and us language files works OK. I have treid different versions of the dansish language files, but get the same exception.

Are you able to help me make them work?


Code: XML
Index was outside the bounds of the array. 
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.IndexOutOfRangeException: Index was outside the bounds of the array.

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: 


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   EO.Web.Internal.ju.a(String A_0) +597
   EO.Web.Internal.ju..ctor(String A_0, String A_1, String A_2) +145
   EO.Web.Internal.c6.a(Boolean A_0, bk& A_1, MatchCollection A_2) +731
   EO.Web.Internal.c6.c(String A_0) +507
   EO.Web.Internal.c6..ctor(String A_0) +779
   EO.Web.Internal.c6.a(String A_0, String A_1) +119
   EO.Web.Internal.f4.a(ao A_0, HttpResponse A_1, Object A_2) +693
   EO.Web.Internal.dy.a(ao A_0) +799
   EO.Web.Internal.dy.a(HttpApplication A_0) +112
   EO.Web.Internal.d4.a(HttpContext A_0) +47
   EO.Web.Runtime.ProcessRequest(HttpContext context) +45
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
eo_support
Posted: Monday, May 11, 2009 9:18:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We looked into it and it appears that the danish dictionary file has some rules that uses non-ASCII characters. We will look further to see if we can have a permanent solution for this, but in the mean time you can delete the following block from your .aff file to get around this issue:

PFX 699 Æ Nordæ/55 Æ
PFX 699 Æ Sydæ/55 Æ
PFX 699 Æ Vestæ/55 Æ
PFX 699 Æ Østæ/55 Æ
PFX 699 Æ Nordvestæ/55 Æ
PFX 699 Æ Nordøstæ/55 Æ
PFX 699 Æ Sydvestæ/55 Æ
PFX 699 Æ Sydøstæ/55 Æ
PFX 699 Æ Midtæ/55 Æ
PFX 699 Ø Nordø/55 Ø
PFX 699 Ø Sydø/55 Ø
PFX 699 Ø Vestø/55 Ø
PFX 699 Ø Østø/55 Ø
PFX 699 Ø Nordvestø/55 Ø
PFX 699 Ø Nordøstø/55 Ø
PFX 699 Ø Sydvestø/55 Ø
PFX 699 Ø Sydøstø/55 Ø
PFX 699 Ø Midtø/55 Ø
PFX 699 Å Nordå/55 Å
PFX 699 Å Sydå/55 Å
PFX 699 Å Vestå/55 Å
PFX 699 Å Østå/55 Å
PFX 699 Å Nordvestå/55 Å
PFX 699 Å Nordøstå/55 Å
PFX 699 Å Sydvestå/55 Å
PFX 699 Å Sydøstå/55 Å
PFX 699 Å Midtå/55 Å

Thanks!
Jan Rygh
Posted: Monday, May 11, 2009 10:35:40 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
Top. That solved the problem!
eo_support
Posted: Monday, May 11, 2009 10:38:33 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great to hear it works for you!
Jan Rygh
Posted: Tuesday, September 22, 2009 10:25:53 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
I have a related problem, when I add a different alphabethic letter, like the greec one, I get the same exception. E.g. enter "Hey you! Εσύ που έσιεις έσιεις την πατερημήν τζιαι κρέμμεται που το καθρεφτούιν σου " in spellcheck for danish language throws the exception Index was outside the bounds of the array

Is there a way to trap this exception? I tried with ClientSideOnError attribute and EO.Web.Runtime.DebugLevel = Consts.DebugLevel_Off; without success.
eo_support
Posted: Tuesday, September 22, 2009 11:45:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Unfortunately you will not be able to trap this message. We will look into it and see what we can do. Hopefully we can change code to ignore such errors because the dictionary is not able to identify or make suggestions for such input anyway.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.