请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

梦想去旅行
金牌服务用户   /  发表于:2022-6-23 18:54  /   查看:38  /  回复:3

在页面执行打印按钮命令之后,页面地址显示异常内容如下:
http://localhost:36192/Home/ExportFile?key=894c665a-ee36-4e33-93a8-2e3671707e1b

  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.15,1.CellType.$type', line 612, 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.Serialization.DefaultSerializationBinder.BindToType(String assemblyName, String typeName)
  21.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)",
  22.       "RemoteStackTraceString": null,
  23.       "RemoteStackIndex": 0,
  24.       "ExceptionMethod": null,
  25.       "HResult": -2146233088,
  26.       "Source": "Newtonsoft.Json",
  27.       "WatsonBuckets": null
  28.     },
  29.     "HelpURL": null,
  30.     "StackTraceString": "   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)
  31.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)
  32.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  33.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  34.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  35.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  36.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  37.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  38.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
  39.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  40.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  41.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  42.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  43.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  44.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  45.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
  46.    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
  47.    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
  48.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
  49.    at Forguncy.Server2.Controllers.Export.an.a[a](String A_0)",
  50.     "RemoteStackTraceString": null,
  51.     "RemoteStackIndex": 0,
  52.     "ExceptionMethod": null,
  53.     "HResult": -2146233088,
  54.     "Source": "Newtonsoft.Json",
  55.     "WatsonBuckets": null
  56.   },
  57.   "HelpURL": null,
  58.   "StackTraceString": "   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
  59.    at Forguncy.Server2.Controllers.Export.an..ctor(String A_0, String A_1)
  60.    at Forguncy.Server2.Controllers.a.d(String A_0)
  61.    at Forguncy.Server2.Controllers.a.n()
  62.    at Forguncy.Server2.Controllers.a.o()
  63.    at Forguncy.Server2.Controllers.a.c(Boolean A_0)
  64.    at Forguncy.Server2.Controllers.a.i()
  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.15,1.CellType.$type', line 612, 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.Serialization.DefaultSerializationBinder.BindToType(String assemblyName, String typeName)
  90.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)",
  91.           "RemoteStackTraceString": null,
  92.           "RemoteStackIndex": 0,
  93.           "ExceptionMethod": null,
  94.           "HResult": -2146233088,
  95.           "Source": "Newtonsoft.Json",
  96.           "WatsonBuckets": null
  97.         },
  98.         "HelpURL": null,
  99.         "StackTraceString": "   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolveTypeName(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, String qualifiedTypeName)
  100.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadMetadataProperties(JsonReader reader, Type& objectType, JsonContract& contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue, Object& newValue, String& id)
  101.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  102.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  103.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  104.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  105.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  106.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  107.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
  108.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  109.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  110.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
  111.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  112.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  113.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
  114.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
  115.    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
  116.    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
  117.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
  118.    at Forguncy.Server2.Controllers.Export.an.a[a](String A_0)",
  119.         "RemoteStackTraceString": null,
  120.         "RemoteStackIndex": 0,
  121.         "ExceptionMethod": null,
  122.         "HResult": -2146233088,
  123.         "Source": "Newtonsoft.Json",
  124.         "WatsonBuckets": null
  125.       }
  126.     ]
  127.   }
  128. }

  129. CurrentMethodName: ExportToExcelThread
复制代码




本帖子中包含更多资源

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

x

3 个回复

倒序浏览
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:3 天前
沙发
您好,看这个报错应该是filepreviewer插件的问题。您可以尝试重装一下对应版本的filepreviewer插件,来解决这个问题。方便的话建议您可以发一个demo上来,这样我们也可以更好的帮助到您

本帖子中包含更多资源

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

x
回复 使用道具 举报
dlxubo
初级会员   /  发表于:3 天前
板凳
回复 使用道具 举报
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:3 天前
地板
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册