CustomDictionarySourceTypeName

2 posts, 0 answers
  1. Lion
    Lion avatar
    23 posts
    Member since:
    Aug 2012

    Posted 13 Jan 2010 Link to this post

    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
  2. Lion
    Lion avatar
    23 posts
    Member since:
    Aug 2012

    Posted 15 Jan 2010 Link to this post

    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

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top