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

时间:2015-03-24 18:20:24

标签: .net configuration .net-assembly

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

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版 我缺少什么想法?

1 个答案:

答案 0 :(得分:1)

尝试更改为“Version = 2.0.0.0” - 您希望使用其底层运行时实际为2.0的.NET Framework 3.5!