我的问题很简单。我有一个第三方库,它假设它将在网站中使用(需要在web.config中的特殊配置部分)。我想在C#控制台应用程序中使用这个库。有可能吗?
我尝试过将所有内容复制到app.config中,但WebConfigurationManager.OpenWebConfiguration();不起作用。我收到的错误是一个说明An error occurred creating the configuration section handler for ...: Could not load type 'Configuration.RenderingSection' from