Using ASPNet_Regiis to encrypt custom configuration section – can you do it?

aspnet_regiis must be able to bind the assembly. The normal .net binding rules apply. I get around this by creating directory called aspnet_regiis_bin in the same directory as aspnet_regiis.exe and an aspnet_regiis.exe.config file with aspnet_regiis_bin as a private path like this: <configuration> <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <probing privatePath=”aspnet_regiis_bin”/> </assemblyBinding> </runtime> </configuration> I then copy the assemblies … Read more

How to Create a Configuration Section That Contains a Collection of Collections?

In your example config file, myConfig would be a class that inherits from ConfigurationSection with three properties named mySubConfig1, mySubConfig2 and mySubConfig3. The type of the mySubConfig1 property (as well as 2 and 3) would be a class that inherits from ConfigurationElementCollection, implements IEnumerable<ConfigElement> and is decorated with ConfigurationCollection (where the “AddItemName” property is set … Read more

tech