Quantcast
Channel: Blog posts by Henrik Fransas
Viewing all articles
Browse latest Browse all 70

Using AppSettings instead of ConfigSections for Episerver Find

$
0
0

In the documentation for Episerver Find it says that you should write like this in your app.config or web.config file:

<configuration><configSections><section
            name="episerver.find"
            type="EPiServer.Find.Configuration, EPiServer.Find" requirePermission="false"/></configSections><episerver.find
            serviceUrl="http://..."
        defaultIndex="myindex"/></configuration>

There also exist another way to set this up that are a little hidden, and that are to go through the appsettings in the config file. So instead of writing like the above you can write like this:

<appSettings><add key="episerver:FindServiceUrl" value="http://..." /><add key="episerver:FindDefaultIndex" value="myindex" /></appSettings>

Depending on how you have set up you deployment pipeline this could be a nice way since it is easier to implement config transformation for this I think.


Viewing all articles
Browse latest Browse all 70

Trending Articles