我序列化了对象
var DataOfRoadSings = JSON.parse('@Html.Raw(JsonConvert.SerializeObject((IEnumerable<RoadSigns>)ViewBag.RoadSigns
, Formatting.None,
new JsonSerializerSettings() {
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
}))');
控制器中的
ViewBag.RoadSigns = db.RoadSigns.ToList();
我有错误“当前错误上下文错误与请求的错误不同。”任何想法?