2014-09-03 185 views
0

我試過以下,但它並不能幫助實體框架錯誤

http://stackoverflow.com/questions/1012252/using-fuslogvw-exe-on-a-machine-with-no-visual-studio-installed 

說明:在當前Web請求的執行過程中發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。

異常詳細信息:System.BadImageFormatException:無法加載文件或程序集「EntityFramework.SqlServer」或其某個依賴項。預計該模塊將包含程序集清單。

源錯誤:

在當前web請求的執行過程中生成未處理的異常。關於異常的來源和位置的信息可以使用下面的異常堆棧跟蹤來標識。

Stack Trace: 
[BadImageFormatException: Could not load file or assembly 'EntityFramework.SqlServer' or one of its dependencies. The module was expected to contain an assembly manifest.] System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder.... 
+0

[嘗試運行項目時出現錯誤:該模塊應包含程序集清單]的可能重複項(http://stackoverflow.com/questions/12135925/error-while-trying-to-run-projectthe -module-was-expected-to-contain-an-assembly) – Kami 2014-09-03 11:03:56

+0

@ Kami-No its not!我已經在帖子中提出瞭解決方案並沒有幫助我出去... – 2014-09-03 11:07:42

回答

0

看來你錯過了一些Nugget包...(從你的錯誤描述)。

您可以從Nuget包中添加EntityFramework.SqlServerCompact,然後重建項目,然後自動添加EntityFramework.SqlServer dll

讓我知道它是否有幫助。

祝你好運! Shimi

+0

非常感謝! – 2014-09-03 11:56:22