'Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TempDataSerializer' cannot serialize an object of type 原因:经过研究源码发现,目前Asp.Net Core MVC不支持复杂的数据类型 源码地址: Microsoft.AspNetCore.Mvc.ViewFeatures TempDataSerializer.cs CanSerializeType...
System.InvalidOperationException: The 'Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TempDataSerializer' cannot serialize an object of type 'App.AppClasses.MyTestClass'. at Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TempDataSerializer.EnsureObjectCanBeSerialized(Object item) at Microsoft.AspNetCore.Mvc....
The '[name of the property]' property with TempDataAttribute is invalid. The 'Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.TempDataSerializer' cannot serialize an object of type '[name of the property]'. If you want to use TempData to store complex types, you must serialize it to a string-...
"Object reference not set to an instance of an object." ??? "PostAsJsonAsync" is not invoking web api POST action method "System.Data.Entity.Internal.AppConfig" type initializer causes an exception "The given key was not present in the dictionary." when passing null non-Route paramater to ...
There are a LOAD of questions and proposed answers for this problem, but so far not one of them has done me any good. I'm trying to persist an object in TempData and pick it up after a RedirectToAction call to another controller. At first just the serialization was giving me fits, be...
A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond a local parame...