Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 遇到DLL问题,在其他计算机上工作正常_Asp.net Mvc_Entity Framework 6 - Fatal编程技术网

Asp.net mvc 遇到DLL问题,在其他计算机上工作正常

Asp.net mvc 遇到DLL问题,在其他计算机上工作正常,asp.net-mvc,entity-framework-6,Asp.net Mvc,Entity Framework 6,我在运行应用程序时遇到问题,它在计算机上编译良好,运行良好,但在另一台计算机上,它在运行时出现以下错误: An exception of type 'System.MissingMethodException' occurred in WikiDoctor.Front.dll but was not handled in user code Additional information: Method not found: 'System.String WikiDoctor.MySQLDAL.

我在运行应用程序时遇到问题,它在计算机上编译良好,运行良好,但在另一台计算机上,它在运行时出现以下错误:

An exception of type 'System.MissingMethodException' occurred in WikiDoctor.Front.dll but was not handled in user code

Additional information: Method not found: 'System.String WikiDoctor.MySQLDAL.User.get_use_telephone()'.
基本上,代码假定首先使用EF database edmx来获取表的详细信息。但不能在我的笔记本电脑上运行

我有这个问题3天了,四处搜索但没有成功,相同的代码在两台不同的计算机上运行良好,但在我的计算机上没有。这真的很奇怪,我试图将框架从4.5改为4.5.2,重新安装VS,清理项目,将EF更新到6.1.3…仍然不起作用

我快没主意了

希望你能帮忙


干杯

也许您有多个程序集(.dll)的名称相同(WikiDoctor.something.dll),但您无意中使用了错误的程序集?我建议在整个磁盘上搜索应该定义get_use_telephone()方法的程序集的多个实例。我删除了所有.dll,检查了引用,它指向了write one,实际上,工作的笔记本电脑没有这个WikiDoctor.MySQLDAL.User.get_use_telephone()。同样,如果工作的笔记本电脑没有这个方法,而程序仍然在工作,这意味着没有调用这个方法。我终于把整个项目结构从另一台正在运行的笔记本电脑复制到了我的笔记本电脑上。谢谢,我很高兴你能成功:-)