找回密码
 立即注册

QQ登录

只需一步,快速开始

phoben 讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 00:32  /   查看:1529  /  回复:9
10金币


不知道哪儿出了问题,服务端命令无法执行了
哪怕是新建一个空的服务端命令,也是一样



报错说让看日志,日志如下:


Tid:19 2021/10/12 0:29:09: Assembly: Forguncy.Server2, Version=6.0.104.0, Culture=neutral, PublicKeyToken=967100671921c115 -----------
{
  "ClassName": "Newtonsoft.Json.JsonSerializationException",
  "Message": "Error resolving type specified in JSON 'JSONFromObject.JSONFromObject, JSONFromObject'. Path '[19].Commands[2].$type', line 1, position 56300.",
  "Data": null,
  "InnerException": {
    "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
    "ClassName": "Newtonsoft.Json.JsonSerializationException",
    "Message": "Could not find type 'JSONFromObject.JSONFromObject' in assembly 'JSONFromObject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.",
    "Data": null,
    "InnerException": null,
    "HelpURL": null,
    "StackTraceString": "   at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeFromTypeNameKey(StructMultiKey`2 typeNameKey)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at CommonUtilities.OpenSaveDataTypeBinder.BindToType(String assemblyName, String typeName)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)",
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": -2146233088,
    "Source": "Newtonsoft.Json",
    "WatsonBuckets": null
  },
  "HelpURL": null,
  "StackTraceString": "   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at CommonUtilities.JsonUtilities.FromJsonStringWithTypeNameHandlingAuto[T](String string_0)
   at Forguncy.Server2.ForguncyServer.c()
   at Forguncy.Server2.ForguncyServer.get_ServerCommands()
   at Forguncy.Server2.Common.ForguncyCommandServerExecutor.ExecuteForguncyServerCommandAction(String commandName, Boolean isServerCommand, IServerCommandExecuteContext executeContext, Boolean canInvokePrivateServerCommands)
   at Forguncy.KatanaMiddleware.ServerCommandExecutor.a(String A_0, Boolean A_1, HttpContext A_2, Dictionary`2 A_3)
   at Forguncy.KatanaMiddleware.ServerCommandExecutor.ExecuteCommand(String commandName, Boolean isServerCommand, HttpContext context)
   at Forguncy.KatanaMiddleware.ServerCommandMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.KatanaMiddleware.CustomApiMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.KatanaMiddleware.ConcurrentControllMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.StartPageMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.KatanaMiddleware.OpenIdMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.HttpHeaderMiddleware.InvokeAsync(HttpContext context)
   at Forguncy.KatanaMiddleware.ExceptionTraceMiddleware.InvokeAsync(HttpContext context)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233088,
  "Source": "Newtonsoft.Json",
  "WatsonBuckets": null
}

CurrentMethodName: HandleExceptionAsync




请大佬帮忙看看,这会不会由某个插件引起?或者服务端DLL问题?
附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

最佳答案

查看完整内容

建议大佬检查下是否是工程中某个插件搞的鬼,比如说引用的包冲突等。

9 个回复

倒序浏览
最佳答案
最佳答案
David.Zhong讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 00:32:49
来自 4#
phoben 发表于 2021-10-12 09:51
新应用发上去,服务端命令是可以执行的

建议大佬检查下是否是工程中某个插件搞的鬼,比如说引用的包冲突等。
回复 使用道具 举报
David.Zhong讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 09:25:28
2#
大佬,你试试看新建一个工程发布上去,看服务端命令能执行不?
回复 使用道具 举报
phoben讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 09:51:12
3#
David.Zhong 发表于 2021-10-12 09:25
大佬,你试试看新建一个工程发布上去,看服务端命令能执行不?

新应用发上去,服务端命令是可以执行的
回复 使用道具 举报
phoben讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 10:03:51
5#
David.Zhong 发表于 2021-10-12 09:53
建议大佬检查下是否是工程中某个插件搞的鬼,比如说引用的包冲突等。

好的,我检查一下
回复 使用道具 举报
David.Zhong讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 10:23:24
6#
加油~
回复 使用道具 举报
phoben讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 17:23:47
7#

检查了一下,重新引入官方DLL后正常,我电脑上有6个版本的设计器,这个确实很容易出错
回复 使用道具 举报
David.Zhong讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2021-10-12 17:40:37
8#
phoben 发表于 2021-10-12 17:23
检查了一下,重新引入官方DLL后正常,我电脑上有6个版本的设计器,这个确实很容易出错

回复 使用道具 举报
sz_xd
金牌服务用户   /  发表于:2022-9-20 08:57:53
9#

这个估计也是插件问题所导致 系统不能运行的,这个现我也碰到类似问题了,其实活字格官方能在发布时加入自检一下所有插件的起码版本时这就可以解决!

【所有版本】发现存在安装插件明显不符时,未有在发布时自检提出错误
https://gcdn.grapecity.com.cn/fo ... 89&fromuid=9683
(出处: 葡萄城产品技术社区)
回复 使用道具 举报
David.Zhong讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-9-20 09:34:03
10#
这个事情我很早就提过了,不过如何排查出出错的插件时候比较困难的意见事情,因为活字格足够开放,大家能够自定义插件并安装,通过程序去检测大家的插件是否会导致其他问题一键比较困难的事情。

我看大佬的帖子,其实大佬这个问题,核心在于是如何把8.0.100.0的插件安装到7.1版本上的,活字格本身是不允许在活字格设计器上安装比插件依赖设计器版本高的插件的。

对于大佬的问题,我唯一能想到的答案是,手动修改了工程文件的版本号,然后用低版本设计器打开......未经验证哈
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部