「ユーザー」が存在するプライマリ ビューから RenderPartial を呼び出しています。
@{Html.RenderPartial("DisplayTemplates/uInfo", user);}
私の開発マシンでは動作しますが、本番サーバーはそのランタイムエラーを投げています:
部分ビュー 'DisplayTemplates/uInfo' が見つからないか、検索された場所をサポートするビュー エンジンがありません。次の場所が検索されました: ...
次の場所が検索されました。
~/Views/Account/DisplayTemplates/uInfo.aspx
~/Views/Account/DisplayTemplates/uInfo.ascx
~/Views/Shared/DisplayTemplates/uInfo.aspx
~/Views/Shared/DisplayTemplates/uInfo.ascx
~/Views/Account/DisplayTemplates/uInfo.cshtml
~/Views/Account/DisplayTemplates/uInfo.vbhtml
~/Views/Shared/DisplayTemplates/uInfo.cshtml
~/Views/Shared/DisplayTemplates/uInfo.vbhtml
私のファイルはリストされています - Shared/DisplayTemplates/uInfo.cshtml で、ローカルで動作します。
関連する場合に備えて、Razor ビューと従来の .aspx ビューを自由に切り替えています。最初は、この 2 つが混在することによる合併症の可能性を心配していましたが、この時点まで、私が試したことはすべてうまくいきました。
どうも