2012-04-28 119 views
1

僅嘗試使用MVC4單頁應用程序的示例。 BigShelf項目是hereASP.NET MVC4 BigShelf示例SPA解決方案中的編譯錯誤

但是,當我嘗試運行這個,我登錄後得到以下錯誤。我不知道什麼是錯的。

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:

Line 22: Line 23: $(function() { Line 24:
upshot.metadata(@(Html.Metadata())); Line 25: Line 26: ko.applyBindings(new BigShelf.CatalogViewModel({

Source File: d:\Visual Studio Projects\ASP.NET Single Page Application (SPA) BigShelf\C#\BigShelf\Views\Home\Index.cshtml Line: 24

回答

0

刪除EntityFramework引用和引用最新的(4.3.1)解決了我的問題。