无法将汇编引用添加到项目

编程入门 行业动态 更新时间:2024-10-25 04:19:20
本文介绍了无法将汇编引用添加到项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Framework 4.5.1上有一个网站。 编译时,缺少System.Data.DataExtensions的程序集引用错误。

I have a web site on Framework 4.5.1. When I compile I have a missing assembly reference error for System.Data.DataExtensions.

所以我要添加引用,在对话框关闭的框内打钩,重新编译。相同的程序集再次丢失。返回参考,程序集不再被打勾。它确实将其添加到web.config中,但引用始终消失。

So I go to add a reference tick the box close the dialog , recompile. Same assembly is missing again. Go back to references and the assembly is no longer ticked. It does add it the the web.config but the reference always disappears.

我遇到了此链接类似问题 但是解决方案仅使用System.Data而不是System.Data.DataExtensions。但是我的using语句已经仅仅是System.Data。

I came across this link similar issue but the solution was only having using System.Data instead of using System.Data.DataExtensions. But my using statement are already only System.Data.

任何人都可以提供帮助吗?

Can anyone assist ?

推荐答案

好,看来当项目迁移到4.5.1框架时,Web配置文件并未更新,并且仍然包含对3.0框架的引用。 这就是阻止添加程序集引用的原因。

Ok it seems that when the project was migrated to 4.5.1 framework the web config file wasn't update and still contains a reference to the 3.0 framework. That is what was is preventing the assembly reference being added.

升级框架似乎不会使用所做的更改来更新Web配置。

Upgrading the framework seems not to update the web config with the changes.

更多推荐

无法将汇编引用添加到项目

本文发布于:2023-11-26 03:16:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1632412.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!