c# - 如何解决在 Asp.NET 中找不到指定模块的错误?

标签 c# asp.net asp.net-mvc database

我正在使用 Microsoft Visual Studio 2010 并创建 ASP.NET MVC 2 Web 应用程序。 在这里我添加了 SQL Server 数据库,之后我想创建新表,那时出现“找不到指定的模块”错误。我不知道如何解决。

enter image description here

请帮帮我。提前致谢。

最佳答案

这似乎是由于更新,有人这样写:

The problem seems to be with the Visual Database Tools DLL.

This DLL file is installed by the VS 2010 installation, but during a SQL Server 2012 installation, it will be upgraded to the SQL 2012 version of the tools. Thereafter, uninstalling and reinstalling SQL or VS will not remove this newer DLL in order to allow the older version to be installed, and hence leave this annoying issue. How I fixed it was I set up a clean virtual machine and installed VS 2010, then took this original DLL from my virtual machine and overwrote the DLL on my live machine. Simple as that.

I would assume though that deleting this DLL file and then doing a VS 2010 repair or uninstall/reinstall would also fix the problem.

The directory and file name of the DLL (on an X64 machine) is: C:\Program Files (x86)\Common Files\microsoft shared\Visual Database Tools\dsref80.dll

查看整个 thread了解更多信息

关于c# - 如何解决在 Asp.NET 中找不到指定模块的错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19905177/

相关文章:

C# MVC 文件上传问题

c# - 将 specflow 表转换为字典

asp.net - LINQ to SQL - 您的 DataContext 位于哪里?

c# - 如何获取 Hotmail 联系人电子邮件地址?

c# - 检查当前Row是否为数据行

asp.net-mvc - Kendo UI - 获取 Treeview 节点的文本

登录 Asp.Net MVC 上的 Sql 错误用户 ID、角色 ID 无效列名

c# - 了解 Lambda 表达式和委托(delegate)

c# - 如何编写模拟不同用户的测试?

c# - 在 BetterCms 中批量发布页面