我有一个库项目,程序集名称:ConfigAssembly 有一个类SiteConfigurationSection。
我想使用它作为ConfigurationSection处理程序。ConfigurationSection处理程序在不同的程序集中
在web.config中:
<section name="SF2" type="SiteConfigurationSection,ConfigAssembly,Version=3.5.0.1, Culture=neutral, PublicKeyToken=null"/>
当我运行它,我得到一个错误:
An error occurred creating the configuration section handler for SF2: Could not load type 'SiteConfigurationSection' from assembly 'ConfigAssembly,Version=3.5.0.1, Culture=neutral, PublicKeyToken=null'.