c# - Accessing ConfigurationManager from Orchard view -


i'm trying access appsettings key/value in web.config orchard theme view. this:

@system.configuration.configurationmanager.appsettings["accountid"] 

i'm getting following exception when try so:

the type or namespace name 'configurationmanager' not exist in namespace 'system.configuration' (are missing assembly reference?) 

i checked , system.configuration assembly referenced both orchard.web project , custom theme's project.

what doing wrong here?


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -