.netでコミットデータエラーが発生し、Nancy.にプロンプトが表示されます.RequestExecutionExceptionエラー

2213 ワード

問題説明:データエラーを提出して、開発環境VS 2017、実体クラスを変更して、フィールドを追加して、webserviceの中で整理して再生成した後に依然としてエラーを報告します.
解決方法:エンティティクラスCFInalを再参照する必要がある.Application.EntityとマッピングCFInal.Application.Mapping
エラーメッセージ:
{

"statusCode": 500,

"message": "Something went horribly, horribly wrong while servicing your request.",

"details": "Nancy.RequestExecutionException: Oh noes! ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: d. Path '', line 0, position 0.\r
Newtonsoft.Json.JsonTextReader.ParseValue()\r
Newtonsoft.Json.JsonTextReader.ReadInternal()\r
Newtonsoft.Json.JsonTextReader.Read()\r
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)\r
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r
Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r
Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\r
Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)\r
CFinal.Util.Json.ToObject[T](String Json) G:\\ \\ \\CYC\\CFinal.Util\\CFinal.Util\\Json.cs: 31\r
CFinal.Application.AppSerivce.BaseModule.GetModule[T]() G:\\ \\ \\CYC\\CFinal.WebApp\\CFinal.Application.AppSerivce\\BaseModule.cs: 116\r
CFinal.Application.AppSerivce.Modules.chuangyuan.MerchantModule.BusinessAddOrModify(Object d) G:\\ \\ \\CYC\\CFinal.WebApp\\CFinal.Application.AppSerivce\\Modules\\chuangyuan\\MerchantModule.cs: 387\r
CallSite.Target(Closure , CallSite , Func`2 , Object )\r
Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)\r
--- ---\r
Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)" }