System.Configuration.ConfigurationSection is not available in class library
I am migrating some of the functionality from my App_Code directory to a separate project that is going to create a class library that my web application will reference. One of my classes in the App_Code part inherits the System.Configuration.ConfigurationSection form, for example:
Imports System.Configuration
Imports System.Web.Configuration
Imports Microsoft.VisualBasic
Namespace P10.WebStore
#Region "WebStore Section"
Public Class WebStoreSection
Inherits ConfigurationSection
I absolutely cannot get the project to recognize the ConfigurationSection as a class. Nothing on google about this class mentions the need to do anything special in order to use it. Is it because it is a class library and not an .exe or somethign? I'm stumped.
a source to share
The type ConfigurationSection
is in the assembly System.Configuration
. Have you added a reference to this assembly to your class library project?
a source to share