【问题标题】:App.Config file - Referencing an Assembly ErrorApp.Config 文件 - 引用程序集错误
【发布时间】:2015-05-28 04:51:13
【问题描述】:

我有一个 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 版 有什么我想念的想法吗?

【问题讨论】:

标签: .net configuration .net-assembly


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2011-04-03
    • 2013-06-21
    • 2012-07-16
    • 1970-01-01
    • 2017-05-30
    • 1970-01-01
    • 1970-01-01
    • 2022-01-03
    • 1970-01-01
    相关资源
    最近更新 更多