导出表格时报错,错误代码如下,请大佬看看时什么问题?
- 在执行导出操作时,未知的异常出现。请再次尝试。
- {
- "ClassName": "System.AggregateException",
- "Message": "One or more errors occurred.",
- "Data": null,
- "InnerException": {
- "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
- "ClassName": "Newtonsoft.Json.JsonSerializationException",
- "Message": "Error resolving type specified in JSON 'FilePreviewer.FilePreviewer, FilePreviewer'. Path 'AttachInfos.35,33.CellType.$type', line 918, position 61.",
- "Data": null,
- "InnerException": {
- "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
- "ClassName": "Newtonsoft.Json.JsonSerializationException",
- "Message": "Could not find type 'FilePreviewer.FilePreviewer' in assembly 'FilePreviewer, 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 Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
- at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeByName(StructMultiKey`2 typeNameKey)
- at Newtonsoft.Json.Serialization.DefaultSerializationBinder.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.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.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, 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.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.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
- at Newtonsoft.Json.JsonSerializer.DeserializeInternal(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 Forguncy.Server2.Controllers.Export.an.f[a](String A_0)",
- "RemoteStackTraceString": null,
- "RemoteStackIndex": 0,
- "ExceptionMethod": null,
- "HResult": -2146233088,
- "Source": "Newtonsoft.Json",
- "WatsonBuckets": null
- },
- "HelpURL": null,
- "StackTraceString": " at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
- at Forguncy.Server2.Controllers.Export.an..ctor(String A_0, String A_1)
- at Forguncy.Server2.Controllers.a.d(String A_0)
- at Forguncy.Server2.Controllers.a.n()
- at Forguncy.Server2.Controllers.a.a(String A_0, List`1 A_1)
- at Forguncy.Server2.Controllers.HomeController.a(Object A_0)",
- "RemoteStackTraceString": null,
- "RemoteStackIndex": 0,
- "ExceptionMethod": null,
- "HResult": -2146233088,
- "Source": "System.Private.CoreLib",
- "WatsonBuckets": null,
- "InnerExceptions": {
- "$type": "System.Exception[], System.Private.CoreLib",
- "$values": [
- {
- "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
- "ClassName": "Newtonsoft.Json.JsonSerializationException",
- "Message": "Error resolving type specified in JSON 'FilePreviewer.FilePreviewer, FilePreviewer'. Path 'AttachInfos.35,33.CellType.$type', line 918, position 61.",
- "Data": null,
- "InnerException": {
- "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",
- "ClassName": "Newtonsoft.Json.JsonSerializationException",
- "Message": "Could not find type 'FilePreviewer.FilePreviewer' in assembly 'FilePreviewer, 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 Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
- at Newtonsoft.Json.Serialization.DefaultSerializationBinder.GetTypeByName(StructMultiKey`2 typeNameKey)
- at Newtonsoft.Json.Serialization.DefaultSerializationBinder.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.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.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, 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.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.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
- at Newtonsoft.Json.JsonSerializer.DeserializeInternal(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 Forguncy.Server2.Controllers.Export.an.f[a](String A_0)",
- "RemoteStackTraceString": null,
- "RemoteStackIndex": 0,
- "ExceptionMethod": null,
- "HResult": -2146233088,
- "Source": "Newtonsoft.Json",
- "WatsonBuckets": null
- }
- ]
- }
- }
- CurrentMethodName: ExportToExcelThread
复制代码
|