最近、MVC2からMVC3にアップグレードしました。以前はSparkビューエンジンを使用していましたが、Razorへの移行を開始しようとしています。これまでのところ、MVC3へのアップグレードは成功しました。必要だったので、Sparkビューエンジンもアップグレードしました。
問題は、SparkビューとRazorビューの両方を正常にレンダリングできることですが、何らかの理由で、MVCはある場所でSparkファイルを探し、別の場所でRazorを探しています。Razorが私の領域を適切に考慮していないようですが、Sparkは考慮しています。
出力:
<pre>
The view 'index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Areas/Live/Views/multimedia/index.aspx
~/Areas/Live/Views/multimedia/index.ascx
~/Areas/Live/Views/Shared/index.aspx
~/Areas/Live/Views/Shared/index.ascx
~/Views/multimedia/index.aspx
~/Views/multimedia/index.ascx
~/Views/Shared/index.aspx
~/Views/Shared/index.ascx
~/Areas/Live/Views/multimedia/index.cshtml
~/Areas/Live/Views/multimedia/index.vbhtml
~/Areas/Live/Views/Shared/index.cshtml
~/Areas/Live/Views/Shared/index.vbhtml
~/Views/multimedia/index.cshtml
~/Views/multimedia/index.vbhtml
~/Views/Shared/index.cshtml
~/Views/Shared/index.vbhtml
Live\~\Areas\Live\Views\multimedia\index.spark
Live\~\Areas\Live\Views\Shared\index.spark
Live\multimedia\index.spark
Live\Shared\index.spark
Live\~\Areas\Live\Views\multimedia\index.shade
Live\~\Areas\Live\Views\Shared\index.shade
Live\multimedia\index.shade
Live\Shared\index.shade
~\Areas\Live\Views\multimedia\index.spark
~\Areas\Live\Views\Shared\index.spark
multimedia\index.spark
Shared\index.spark
~\Areas\Live\Views\multimedia\index.shade
~\Areas\Live\Views\Shared\index.shade
multimedia\index.shade
Shared\index.shade
</pre>
.cshtmlファイルをMVCが望む場所に移動すると、それは機能しますが、それはそれをカットしません。2つのエンジンがわずかに異なる場所を探しているのはなぜですか?