Hi,
I would like to use ASP.NET's ability to encrypt any section in web.config to encrypt nlog settings. To do it, I've placed in web.config:
...
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
...
</configSections>
<nlog>
...
</nlog>
...
It works - logs everything as required. But when I try to encrypt the nlog section:
aspnet_regiis -pe "nlog" -app "/MyWebApp"
I get a message that NLog assembly (or one of its dependants) cannot be loaded. The application is prepared to be encrypted; any other section can encrypted but this one - not.
NLog.dll is placed in the bin directory of my webapp; this dll is dated 18.09.2006; its version is: 1.0.0.505.
Should it be registered in some special way?
Best regards
tml