找回密码
 立即注册

QQ登录

只需一步,快速开始

liucy

中级会员

15

主题

91

帖子

882

积分

中级会员

积分
882
liucy
中级会员   /  发表于:2022-3-18 11:55  /   查看:2017  /  回复:5
5金币
本帖最后由 liucy 于 2022-3-18 15:10 编辑

请专家帮分析一下看什么问题,怎么解决?   页面上做了个导出到excel命令按钮,发布到服务器上后点击导出报错,报错信息见附图,在设计器上运行测试,出现如下报错信息(1、版本7.0.103;  2、同一个工程另外一个页面上的导出按钮可以正常使用):
因文件有外联数据库就先不往上发了。
在执行导出操作时,未知的异常出现。请再次尝试。{  "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 'Forguncy.CustomMenu.ForguncyTreeCellType, Forguncy.CustomMenu'. Path 'AttachInfos.3,1.CellType.$type', line 173, position 80.",    "Data": null,    "InnerException": {      "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",      "ClassName": "Newtonsoft.Json.JsonSerializationException",      "Message": "Could not find type 'Forguncy.CustomMenu.ForguncyTreeCellType' in assembly 'Forguncy.CustomMenu, Version=1.0.1.1, 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.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 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.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)   at System.Threading.Tasks.Task`1.get_Result()   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.o()   at Forguncy.Server2.Controllers.a.c(Boolean A_0)   at Forguncy.Server2.Controllers.a.i()   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 'Forguncy.CustomMenu.ForguncyTreeCellType, Forguncy.CustomMenu'. Path 'AttachInfos.3,1.CellType.$type', line 173, position 80.",        "Data": null,        "InnerException": {          "$type": "Newtonsoft.Json.JsonSerializationException, Newtonsoft.Json",          "ClassName": "Newtonsoft.Json.JsonSerializationException",          "Message": "Could not find type 'Forguncy.CustomMenu.ForguncyTreeCellType' in assembly 'Forguncy.CustomMenu, Version=1.0.1.1, 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.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 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
附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

最佳答案

查看完整内容

我这边使用7.0.104.0版本的设计器打开是可以正常导出的,您也可以使用104版本的设计器再试试呢,另外,导出报错也有可能和浏览器有关,测试时最好使用chrome或者Edge浏览器。 如果仍然有问题可以继续在帖子中跟进哟~

5 个回复

倒序浏览
最佳答案
最佳答案
Chelsey.Wang讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-3-18 11:55:23
来自 4#
liucy 发表于 2022-3-18 13:57
附上导出报错Demo

我这边使用7.0.104.0版本的设计器打开是可以正常导出的,您也可以使用104版本的设计器再试试呢,另外,导出报错也有可能和浏览器有关,测试时最好使用chrome或者Edge浏览器。
如果仍然有问题可以继续在帖子中跟进哟~
回复 使用道具 举报
Chelsey.Wang讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-3-18 12:30:20
2#
您好,这个问题还需要看一下您工程中具体是怎么设置的,建议您可以附上一个可以复现问题的demo,这边具体帮您看一下哦~
回复 使用道具 举报
liucy
中级会员   /  发表于:2022-3-18 13:57:16
3#
本帖最后由 liucy 于 2022-3-18 15:17 编辑


本帖子中包含更多资源

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

x
回复 使用道具 举报
liucy
中级会员   /  发表于:2022-3-18 15:15:42
5#
改用7.0.104.0版本的设计器打开后可以正常导出了,看来是新版本更香啊!
示例文件中因为有些公司业务数据信息,问题解决了我就删除了
回复 使用道具 举报
Chelsey.Wang讲师达人认证 悬赏达人认证 活字格认证
论坛元老   /  发表于:2022-3-18 15:21:29
6#
liucy 发表于 2022-3-18 15:15
改用7.0.104.0版本的设计器打开后可以正常导出了,看来是新版本更香啊!
示例文件中因为有些公司业务数据 ...

不客气,问题解决了就好
另外,像这种附件,您可以在上传的时候将权限设置为150(也就是超级版主用户组),这样就只有活字格技术人员可以浏览您的附件,问题解决后再删除附件就可以啦~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部