This project is read-only.

Web.config of module

Topics: Customizing Orchard, General, Installing Orchard, Troubleshooting, Writing modules
Aug 4, 2011 at 4: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.

Aug 4, 2011 at 7: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.