私のAsp.Net MVC 4プロジェクトでは、ビュー<MvcBuildViews>true</MvcBuildViews>
をビルドするために.csprojファイルを設定しました。allowDefinition = 'MachineToApplication'エラー設定<MvcBuildViews> true</ MvcBuildViews>
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
私がobjフォルダが、エラーキープ調達を削除しようとしました:問題は、私はエラーを得たプロジェクトをビルドするということです。エラーは、問題が認証タグの行であることを指定します。
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
多くの場合、私はアプリを構築して、再度実行した後、(私はエラーを得た)アプリケーションを実行して、アプリケーションを実行することができますよ。
確認:http://stackoverflow.com/questions/4725387/mvcbuildviews-not-working-correctly –