Welcome Guest Search | Active Topics | Sign In | Register

SpellChecker <add key="eo_DictLocation" in child folder Web.config problem Options
DH
Posted: Friday, December 4, 2009 7:31:44 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
Hi,

If I put

Code: HTML/ASPX
<appSettings>
    <add key="eo_DictLocation" value="~/Admin/Support/eo_dict"></add>
</appSettings>


in ~/Admin/Web.config the dictionary will not load. The code looks in the web root.

If I put the key in the root Web.config it works as expected.

The similar eo_ScriptLocation app key does work in the child folder Web.config.

Code: HTML/ASPX
<add key="eo_ScriptLocation" value="~/Admin/Support/eo_script" />
eo_support
Posted: Monday, December 7, 2009 9:17:59 AM
Rank: Administration
Groups: Administration

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

I believe this is normal. Web.config files are handled by ASP.NET and it has nothing to do with our controls. You may want to refer to MS documentation about of the scope web.config file.

Thanks!
DH
Posted: Monday, December 7, 2009 8:43:09 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
Is it possible to set the dictionary location using C#?
eo_support
Posted: Monday, December 7, 2009 10:34:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
DH wrote:
Is it possible to set the dictionary location using C#?


No. There isn't. The spell checker uses ConfigurationManager.AppSettings["eo_DictLocation"] to get the location. The rest is handled by ASP.NET config file mechanism. So if you run into problem with that, the config file is what you need to troubleshoot.


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.