[SecurityException: That assembly does not allow partially trusted callers.] Global.Application_Start(Object sender, EventArgs e) +0
void Application_Start(object sender, EventArgs e) { // Code that runs on application startup try { string dictionaryPath = Server.MapPath("Bin") + "\\"; Hunspell.NativeDllPath = dictionaryPath; spellEngine = new SpellEngine(); LanguageConfig enConfig = new LanguageConfig(); enConfig.LanguageCode = "en"; enConfig.HunspellAffFile = dictionaryPath + "en_us.aff"; enConfig.HunspellDictFile = dictionaryPath + "en_us.dic"; enConfig.HunspellKey = ""; spellEngine.AddLanguage(enConfig); } catch (Exception ex) { if (spellEngine != null) spellEngine.Dispose(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)