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

CustomDictionarySourceTypeName

1 Answer 46 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 14 Jan 2010, 12:38 AM
Hi,
I am following the instructions from this article to implement database-based custom dictionary.
http://www.telerik.com/support/kb/aspnet-ajax/spell/changing-the-custom-dictionary-files-location.aspx

I am having a problem setting CustomDictionarySourceTypeName property. The example has custom dictionary file in app_code folder, but since I am using ASP.NET MVC App there is no app_code folder. I created a custom dictionary file and placed it under Models
directory. I tried something like this:

CustomDictionarySourceTypeName

 

="typeof(MvcApplication5.Models.MyDictionary).AssemblyQualifiedName"

 

and few other tries but I keep getting  "Can't find the custom dictionary source type." error.

Sorry this is more of a .net fundamental question, but any help is appreciated. Thanks!
Kate

1 Answer, 1 is accepted

Sort by
0
Ram
Top achievements
Rank 1
answered on 16 Jan 2010, 01:20 AM
Hi, I figured it out. Posting it here for anyone who ran into the same issue:

Instantiate your custom dictionary object and print out AssemblyQualifiedName, like this:

MvcApplication5.Models.My

Dictionary dict = new MvcApplication5.Models.MyDictionary();

 

Response.Write(dict.GetType().AssemblyQualifiedName);

Run your app, copy & paste onto CustomDictionarySourceTypeName. Mine looked like this

 

MvcApplication5.Models.MyDictionary, MvcApplication5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Tags
Spell
Asked by
Ram
Top achievements
Rank 1
Answers by
Ram
Top achievements
Rank 1
Share this question
or