Web.config of module

Topics: Customizing Orchard, General, Installing Orchard, Troubleshooting, Writing modules
Aug 4, 2011 at 3:06 PM

Is it possible keep settings of module in web.config of that module and how to read? Looks like ConfigurationManager trying read data from global web.config of site.

Coordinator
Aug 4, 2011 at 6:27 PM

You can, exactly like you can do it in any ASP.NET MVC application, but it's not recommended. There are better ways of exposing config in Orchard, in a way that work with multi-tenancy and is accessible from the Admin. There are plenty of examples from the various modules that expose config settings.