Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net System.Configuration.ConfigurationSection在类库下不可用_Asp.net_Vb.net_Configurationsection - Fatal编程技术网

Asp.net System.Configuration.ConfigurationSection在类库下不可用

Asp.net System.Configuration.ConfigurationSection在类库下不可用,asp.net,vb.net,configurationsection,Asp.net,Vb.net,Configurationsection,我正在将一部分功能从我的App_代码目录迁移到一个单独的项目,该项目将构建一个类库,供我的web应用程序引用。我在App_代码段中的一个类继承了System.Configuration.ConfigurationSection表单,如下所示: Imports System.Configuration Imports System.Web.Configuration Imports Microsoft.VisualBasic Namespace P10.WebStore #Region "We

我正在将一部分功能从我的App_代码目录迁移到一个单独的项目,该项目将构建一个类库,供我的web应用程序引用。我在App_代码段中的一个类继承了System.Configuration.ConfigurationSection表单,如下所示:

Imports System.Configuration
Imports System.Web.Configuration
Imports Microsoft.VisualBasic

Namespace P10.WebStore

#Region "WebStore Section"
    Public Class WebStoreSection
        Inherits ConfigurationSection

我绝对无法让项目将ConfigurationSection识别为类。关于这个类,我在谷歌上没有提到必须做任何特殊的事情才能使用它。是不是因为这是一个类库而不是.exe或其他什么东西?我被难住了

该类型可在程序集
系统配置中找到。您是否在类库项目中添加了对该程序集的引用?

Geez,就是这样。谢谢我可能添加了十几个参考资料来尝试镜像它来自的项目,但这不是其中之一。我不知道为什么我不想检查那个。哦,等等,是的,我是个白痴。谢谢@我刚刚遇到了完全相同的问题,通过发现这个问题解决了它,所以你的“愚蠢”帮了我的忙!我不会想到这样一个普通的功能需要手动添加一个程序集引用。