Nustache를 사용하여 클라이언트 및 서버 콧수염 템플릿을 공유하려고하지만 Nustache가 내 앱과 잘 어울리지 않습니다. 소스 코드에서 MVC 애플리케이션 예제를 직접 사용했지만 뷰 엔진을 설정하거나 추가하려고 할 때마다 오류가 발생했습니다. 여기에 코드입니다 (작업 방법에서, 나는 또한 Global.asax에 세계적으로보기 엔진을 추가하는 시도와 같은 오류 했어) :Nustache View Engine ArrayTypeMismatchException
[ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.]
System.Collections.Generic.List`1.Insert(Int32 index, T item) +62
MyController.Index() in C:\src\projects\myproject\myproject.Web\Controllers\MyController.cs:83
lambda_method(Closure , ControllerBase , Object[]) +79
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +264
...
어떻게 수정 했습니까? –
이것은 답변이 아닙니다 ... –