System.Configuration.ConfigurationSection not available under a class library
I'm migrating a piece of functionality from my App_Code di开发者_如何学JAVArectory to a separate project that's going to build a class library to be referenced by my web app. One of my classes in the App_Code piece inherits form System.Configuration.ConfigurationSection, like so:
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 ConfigurationSection as a class. Nothing I google about this class mentions having to do anything special to use it. Is it because this is a class library and not an .exe or somethign? I'm stumped.
The type ConfigurationSection
is found in the assembly System.Configuration
. Did you add a reference to that assembly in your class library project?
精彩评论