App.Config 文件 - 引用程序集错误

App.Config file - Referencing an Assembly Error

我在 WinForms 应用程序中有一个 .net 程序集 (UserAppDetails) 被另一个 .net 程序集 (ClientDetails) 引用。

WinForms 应用程序调用 ClientDetails,后者又调用 UserAppDetails。

但是,我收到以下错误。

An error occurred creating the configuration section handler for applicationSettings/UserAppDetails.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

在 app.config 中,我已将以下内容添加到 ClientDetails app.config 和 WinForm app.config...

<section name="UserAppDetails.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>

所有程序集和 WinForm 应用都是 3.5 版 有什么想法我想念的吗?

尝试更改为 "Version=2.0.0.0" - 您想要使用底层运行时实际上是 2.0 的 .NET Framework 3.5!