开发者

System.Configuration.ConfigurationSection not available under a class library

开发者 https://www.devze.com 2022-12-28 23:41 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消