【错误信息】 错误CS0012,类型“Object”在未引用的程序集中定义。必须添加对程序集“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”的引用。

【解决步骤】

  • 检查 NEST 6.5.0 版本对应的是 NETFramework 4.6.1
  • 在Visual Studio 2015 中 : 当前项目 ---->右键---->属性---->应用程序---->目标框架:勾选4.6.1版本即可。
必须添加对程序集“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”的引用 错误信息:错误CS0012类型“Object”在未引用的程序集中定义。必须添加对程序集“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”的引用.............检查NEST 6.5.0 版本对应的是 NETFramework 4.6.1。在Visual Studio 2015 中 当前项目---->右键---->属性---->应用程序... 关键点 1.安装 (.NET Framework 4.7) 从这个网址下载了一个.NET Framework 4.7 Developer Pack and Language Packs https://www.microsoft.com/en-us/download/details.aspx?id=55168 这个...
"System.Xaml, Version =4. 0.0 .0, Cultu re= neutral , Public Key Token =b77a5c561934e089"或它的某一个依赖项。系统找不到指定的文件。 成功解决 只要打开 离成功更近一步 花了很久才成功的解决这个问题
sembly 'Microsoft.ReportViewer.WinForms, Version =1 0.0 . 0.0 , Cultu re= neutral , Public Key Token =b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。 File name: 'Microsoft.ReportViewer.WinForms, Version =1 0.0 . 0.0 , Cultu re= neutral , Public Key Token =b03f5f7f11d50a3a' at SupSystem.fr_Print..ctor()
我在.NET Framework 4.7的项目中引入了NET Standard 2.1 编译后 的Dll 然后 就出现了如下错误: 未能加载文件或 程序 netstandard , Version =2.1. 0.0 , Cultu re= neutral , Public Key Token = cc7b13ffcd 2d dd51 ”或它的某一个依赖项。 通过访问微软提供的 框架https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getd...
"response_error:Code(-2147467259);{\"InnerExWrapper\":{\"IsEmpty\":false,\"Data\":{},\"HelpLink\":null,\"Message\":\"调 用的目标发生了异常。\",\"Source\":null,\"StackTrace\":\" 在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\\r\\n 在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\\r\\n 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, Cultu reInfo cultu re)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)\",\"TargetSite\":null,\"ExceptionType\":\"System.Reflection.TargetInvocationException, mscorlib, Version =4. 0.0 .0, Cultu re= neutral , Public Key Token =b77a5c561934e089\",\"InnerException\":{\"IsEmpty\":false,\"Data\":{},\"HelpLink\":null,\"Message\":\"Unexpected character encountered while parsing value: U. Line 1, position 1.\",\"Source\":null,\"StackTrace\":\" 在 Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar)\\r\\n 在 Newtonsoft.Json.JsonTextReader.ReadInternal()\\r\\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, Type t, JsonConverter propertyConverter)\\r\\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType)\\r\\n 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\\r\\n 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\\r\\n 在 WebApi.CustomApi.Demo.ExcuteSql(Context ctx, String parameters) 位置 D:\\\\LocalhostProject\\\\Test\\\\WebApi\\\\WebApi\\\\CustomApi\\\\Demo.cs:行号 66\\r\\n 在 WebApi.CustomApi.Demo.GetAutoCreateView(String parameters) 位置 D:\\\\LocalhostProject\\\\Test\\\\WebApi\\\\WebApi\\\\CustomApi\\\\Demo.cs:行号 60\",\"TargetSite\":null,\"ExceptionType\":\"Newtonsoft.Json.JsonReaderException, Newtonsoft.Json, Version =4. 0.0 .0, Cultu re= neutral , Public Key Token =null\",\"InnerException\":null}},\"ClassName\":\"Kingdee.BOS.ServiceFacade.ServiceException\",\"Message\":\"Unexpected character encountered while parsing value: U. Line 1, position 1.\",\"Data\":null,\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\" 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.<>c__DisplayClass1.<Execute>b__0()\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.DealWithExceptoin(Context ctx, ServiceType svcType, Exception ex, Func`1 callback)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor.Execute(KDServiceContext context, ServiceType svcType, String[] paraValues, SerializerProxy serializeProxy, ServiceType beginMethod)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ExecuteServiceModule.OnProcess(KDServiceContext context)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.ModulePipeline.ExcuteRequest(KDServiceContext context)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.BeginRquest(RequestExtractor requestExtractor, WebContext webCtx)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.RequestExcuteRuntime.StartRequest(RequestExtractor requestExtractor, WebContext context)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ExecuteRequest(WebContext ctx, RequestExtractor requestExtractor)\\r\\n 在 Kingdee.BOS.ServiceFacade.KDServiceFx.KDSVCHandler.ProcessRequestInternal(WebContext webCtx, RequestExtractor requestExtractor)\",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":\"8\\n<Execute>b__0\\nKingdee.BOS.ServiceFacade.KDServiceFx, Version =8.0.144.1, Cultu re= neutral , Public Key Token =null\\nKingdee.BOS.ServiceFacade.KDServiceFx.ServiceExecutor+<>c__DisplayClass1\\nSystem.String <Execute>b__0()\",\"HResult\":-2147467259,\"Source\":\"Kingdee.BOS.ServiceFacade.KDServiceFx\",\"WatsonBuckets\":null,\"_httpCode\":500}"
必须添加对程序集“netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”的引用 我将4.5.2更改为4.7.2 之后 解决问题