Scott Hanselmen、Phil Haack、およびProfessional ASP.NET 3.5 MVCの第13章に従ってASP.net 4 WebフォームプロジェクトをAsp.net MVC4に変換しました。 Rob Conery、Wiley Publishing、Inc.(ISBN:978-0-470-38461-9)により発行されている。私もこれに続いたblog。これで、コントローラ、ビューなどを追加できます。すべての参照が適切に設定されています。ビルドエラーはありません。しかし、変換されたプロジェクトを起動すると、コンパイルエラーが発生しました。私はmvc3を同じマシンにインストールしています。私はそれへの言及を変更しました。それはまだ不平を言う。手伝ってくれる?ありがとう。CS0234:MvcはSystem.Webネームスペースに存在しません
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: CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Source Error:
Line 109: <namespaces>
Line 110: <add namespace="System.Web.Helpers"/>
Line 111: <add namespace="System.Web.Mvc"/>
Line 112: <add namespace="System.Web.Mvc.Ajax"/>
Line 113: <add namespace="System.Web.Mvc.Html"/>
Source File: c:\Users\Jon\Documents\Visual Studio 2012\Projects\CMT\Apps\Branches\3.0\Web.config Line: 111
記事を読まずに、idは知りたいのですが、mvc dllの参照を追加しましたか? –