找回密码
 立即注册

QQ登录

只需一步,快速开始

奇遇之年

中级会员

37

主题

111

帖子

612

积分

中级会员

积分
612
奇遇之年
中级会员   /  发表于:2022-1-10 15:44  /   查看:1713  /  回复:5
1金币
导出表格时报错,错误代码如下,请大佬看看时什么问题?
  1. 在执行导出操作时,未知的异常出现。请再次尝试。
  2. {
  3.   "ClassName": "System.AggregateException",
  4.   "Message": "One or more errors occurred.",
  5.   "Data": null,
  6.   "InnerException": {
  7.     "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
  8.     "ClassName": "Newtonsoft.Json.JsonSerializationException",
  9.     "Message": "Error resolving type specified in JSON 'FilePreviewer.FilePreviewer, FilePreviewer'. Path 'AttachInfos.35,33.CellType.$type', line 918, position 61.",
  10.     "Data": null,
  11.     "InnerException": {
  12.       "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
  13.       "ClassName": "Newtonsoft.Json.JsonSerializationException",
  14.       "Message": "Could not find type 'FilePreviewer.FilePreviewer' in assembly 'FilePreviewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.",
  15.       "Data": null,
  16.       "InnerException": null,
  17.       "HelpURL": null,
  18.       "StackTraceString": "   at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeFromTypeNameKey(StructMultiKey`2 typeNameKey)
  19.    at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  20.    at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
  21.    at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeByName(StructMultiKey`2 typeNameKey)
  22.    at Newtonsoft.Json.Serialization.DefaultSerializationBinder.BindToType(String assemblyName, String typeName)
  23.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)",
  24.       "RemoteStackTraceString": null,
  25.       "RemoteStackIndex": 0,
  26.       "ExceptionMethod": null,
  27.       "HResult": -2146233088,
  28.       "Source": "Newtonsoft.Json",
  29.       "WatsonBuckets": null
  30.     },
  31.     "HelpURL": null,
  32.     "StackTraceString": "   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)
  33.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)
  34.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  35.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  36.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  37.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  38.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  39.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  40.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
  41.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  42.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  43.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  44.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  45.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  46.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  47.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
  48.    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
  49.    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
  50.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
  51.    at Forguncy.Server2.Controllers.Export.an.f[a](String A_0)",
  52.     "RemoteStackTraceString": null,
  53.     "RemoteStackIndex": 0,
  54.     "ExceptionMethod": null,
  55.     "HResult": -2146233088,
  56.     "Source": "Newtonsoft.Json",
  57.     "WatsonBuckets": null
  58.   },
  59.   "HelpURL": null,
  60.   "StackTraceString": "   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
  61.    at Forguncy.Server2.Controllers.Export.an..ctor(String A_0, String A_1)
  62.    at Forguncy.Server2.Controllers.a.d(String A_0)
  63.    at Forguncy.Server2.Controllers.a.n()
  64.    at Forguncy.Server2.Controllers.a.a(String A_0, List`1 A_1)
  65.    at Forguncy.Server2.Controllers.HomeController.a(Object A_0)",
  66.   "RemoteStackTraceString": null,
  67.   "RemoteStackIndex": 0,
  68.   "ExceptionMethod": null,
  69.   "HResult": -2146233088,
  70.   "Source": "System.Private.CoreLib",
  71.   "WatsonBuckets": null,
  72.   "InnerExceptions": {
  73.     "$type": "System.Exception[], System.Private.CoreLib",
  74.     "$values": [
  75.       {
  76.         "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
  77.         "ClassName": "Newtonsoft.Json.JsonSerializationException",
  78.         "Message": "Error resolving type specified in JSON 'FilePreviewer.FilePreviewer, FilePreviewer'. Path 'AttachInfos.35,33.CellType.$type', line 918, position 61.",
  79.         "Data": null,
  80.         "InnerException": {
  81.           "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
  82.           "ClassName": "Newtonsoft.Json.JsonSerializationException",
  83.           "Message": "Could not find type 'FilePreviewer.FilePreviewer' in assembly 'FilePreviewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.",
  84.           "Data": null,
  85.           "InnerException": null,
  86.           "HelpURL": null,
  87.           "StackTraceString": "   at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeFromTypeNameKey(StructMultiKey`2 typeNameKey)
  88.    at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
  89.    at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
  90.    at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeByName(StructMultiKey`2 typeNameKey)
  91.    at Newtonsoft.Json.Serialization.DefaultSerializationBinder.BindToType(String assemblyName, String typeName)
  92.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)",
  93.           "RemoteStackTraceString": null,
  94.           "RemoteStackIndex": 0,
  95.           "ExceptionMethod": null,
  96.           "HResult": -2146233088,
  97.           "Source": "Newtonsoft.Json",
  98.           "WatsonBuckets": null
  99.         },
  100.         "HelpURL": null,
  101.         "StackTraceString": "   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)
  102.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)
  103.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  104.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  105.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  106.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  107.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  108.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  109.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
  110.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  111.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  112.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  113.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  114.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  115.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  116.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
  117.    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
  118.    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
  119.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
  120.    at Forguncy.Server2.Controllers.Export.an.f[a](String A_0)",
  121.         "RemoteStackTraceString": null,
  122.         "RemoteStackIndex": 0,
  123.         "ExceptionMethod": null,
  124.         "HResult": -2146233088,
  125.         "Source": "Newtonsoft.Json",
  126.         "WatsonBuckets": null
  127.       }
  128.     ]
  129.   }
  130. }

  131. CurrentMethodName: ExportToExcelThread
复制代码


最佳答案

查看完整内容

您好,猜测有可能是FilePreviewer等插件版本的问题导致出现这个问题的,您可以先升级一下工程文件中使用的插件,检测一下是否是最新版的插件,您可以在这个链接中下载新版本的官方插件商品详情 (grapecity.com.cn),也可以在这个链接中下载新版本的个人插件商品详情 (grapecity.com.cn)。这个问题是偶尔出现的,还是可以稳定复现的呢?如果可以稳定复现的话,麻烦您提供一下出现这个问题的工程文件,便于我们分析和排查问题,希望 ...

5 个回复

倒序浏览
最佳答案
最佳答案
Howie.Sun讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-1-10 15:44:10
来自 2#
本帖最后由 Howie.Sun 于 2022-1-10 16:31 编辑

您好,猜测有可能是FilePreviewer等插件版本的问题导致出现这个问题的,您可以先升级一下工程文件中使用的插件,检测一下是否是最新版的插件,您可以在这个链接中下载新版本的官方插件商品详情 (grapecity.com.cn),也可以在这个链接中下载新版本的个人插件商品详情 (grapecity.com.cn)。这个问题是偶尔出现的,还是可以稳定复现的呢?如果可以稳定复现的话,麻烦您提供一下出现这个问题的工程文件,便于我们分析和排查问题,希望可以更好地帮助到您!

另外,您也可以尝试使用7.0.103版本的设计器看看有无此问题,因为新版本会修复一些旧版本出现的问题。
看完必恍然大悟的活字格内幕:四十、如何让多个版本的设计器共存 - 活字格专区 - 专题教程 - 葡萄城产品技术社区 (grapecity.com.cn)
回复 使用道具 举报
奇遇之年
中级会员   /  发表于:2022-1-10 23:01:47
3#
本帖最后由 奇遇之年 于 2022-1-10 23:09 编辑
Howie.Sun 发表于 2022-1-10 16:13
您好,猜测有可能是FilePreviewer等插件版本的问题导致出现这个问题的,您可以先升级一下工程文件中使用的 ...

大佬分析的很准确,确实FilePreviewer造成的问题。附件是工程文件,点击“提取文件”就会报错。删除FilePreviewer控件后,导出表格功能恢复正常。目前我用的插件就是最新的7.0.102.0










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
Howie.Sun讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-1-11 09:21:25
4#
奇遇之年 发表于 2022-1-10 23:01
大佬分析的很准确,确实是FilePreviewer造成的问题。附件是工程文件,点击“提取文件”就会报错。删除Fil ...

您好,经过测试在7.0.103版本的设计器中没有出现异常呢,建议您参考1L回复中多个版本的设计器共存里面的内容,安装一下7.0.103版本的设计器看看是否还存在此问题,因为新版本会修复一些旧版本出现的问题。
回复 使用道具 举报
奇遇之年
中级会员   /  发表于:2022-1-11 16:09:50
5#
Howie.Sun 发表于 2022-1-11 09:21
您好,经过测试在7.0.103版本的设计器中没有出现异常呢,建议您参考1L回复中多个版本的设计器共存里面的 ...

公司服务器无法连接外网,每次升级设计器和服务器都要做离线激活,比较麻烦。
先用普通的附件模块代替FilePreviewer吧,等升级到活字格8再解决这个问题。
回复 使用道具 举报
Howie.Sun讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-1-11 16:16:02
6#
奇遇之年 发表于 2022-1-11 16:09
公司服务器无法连接外网,每次升级设计器和服务器都要做离线激活,比较麻烦。
先用普通的附件模块代替Fi ...

好的,感谢您对活字格的支持。
后面有问题,欢迎继续发新帖交流
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部