FileName、string という DB フィールドがあります。相対編集項目ビューをロードすると、このフィールドへの参照によりエラーが発生します。
<div class="editor-field">
@Html.EditorFor(model => model.FileName)
@Html.ValidationMessageFor(model => model.FileName)
</div>
行を削除すると、@Html.EditorFor(model => model.FileName)
すべて問題ありません。
フィールド名は正しく、テーブルに存在します。エラーは次のとおりです。
Format exception unhandled by user code
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
フィールドは文字列 100 文字で、文字列 30 文字が含まれており、どこでもデータ型を変更しようとはしていません。アイデアはありますか?