gpt4 book ai didi

.net - "You must add a reference to assembly ' 系统.Data.Services.Client,版本=3.5.0.0 '"

转载 作者:行者123 更新时间:2023-11-30 23:59:47 25 4
gpt4 key购买 nike

我正在使用 Windows Azure Table 构建一个应用程序。我将对表服务的所有调用封装到其自己的程序集中。此程序集使用 .NET 4.0 Framework 并包含对 System.Data.Service.Client (4.0) 的引用。我可以在测试项目中使用这个程序集,没有任何问题。

当我添加此项目作为对 MVC2 Web 应用程序的引用时(再次针对 .NET 4.0 框架),我收到上述错误。我向 Web 项目添加了相同的 DLL (v.4.0),但问题仍然存在。

这是怎么回事?为什么我需要使用 MVC 项目中的 3.5 DLL?

最佳答案

我将以下内容添加到我的 web.config 文件中,一切都是 copacet。

<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</assemblies>
</compilation>
</system.web>

关于.net - "You must add a reference to assembly ' 系统.Data.Services.Client,版本=3.5.0.0 '",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3463366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com