[已解决] 从局域网文件夹中获取数据失败

  [复制链接]
查看179084 | 回复152 | 2020-9-25 03:55:30 | 显示全部楼层 |阅读模式
1、从局域网文件夹中获取数据失败,提示如下:
意外错误: 对象的当前状态使该操作无效。
详细信息:
  Microsoft.Mashup.Evaluator.Interface.ErrorException: 对象的当前状态使该操作无效。 ---> System.InvalidOperationException: 对象的当前状态使该操作无效。 ---> System.InvalidOperationException: 对象的当前状态使该操作无效。
在 Microsoft.Mashup.Engine1.Library.File.FileHelper.GetAccessControlEntries(AccessControlEntriesCache cache, String fullName, Boolean directory, FileSystemRights rights, Func`1 impersonate)
在 Microsoft.Mashup.Engine1.Library.File.FileModule.FolderContentsRecordValue.c__DisplayClass2_0.b__5(Int32 index)
在 Microsoft.Mashup.Engine1.Runtime.RecordValue.DemandRecordValue.get_Item(Int32 index)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.c__DisplayClass68_0.b__0()
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.WriteMetaRecord(IRecordValue value, Boolean truncatedValue)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.WriteValueEnd(IValue value, IRecordValue meta, Boolean truncated)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.WriteLimitedValue(IValue value)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.c__DisplayClass109_0.b__0()
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.c__DisplayClass100_2.b__2()
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.c__DisplayClass100_1.b__1()
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.WritePreviewTable(IValue value)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.HandleErrors(Action action, Action`1 handler)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.WritePreviewValue(IValue value, Int32 serializeStructuredValueDepth)
在 Microsoft.Mashup.Evaluator.Services.ValueSerializer.SerializePreviewValue(IEngine engine, IValue value, Action`2 rowCountCallback, Nullable`1 options)
在 Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.ValuePreviewValueSource.TableValuePreviewValueSource.SerializeRows(Int32 count)
在 Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.ValuePreviewValueSource.TableValuePreviewValueSource.get_SmallValue()
在 Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_SmallValue()
在 Microsoft.Mashup.Evaluator.RemotePreviewValueSource.c__DisplayClass0_0.b__0()
在 Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.Mashup.Evaluator.EvaluationHost.c__DisplayClass11_0.[tr]b__1()
在 Microsoft.Mashup.Common.SafeExceptions.IgnoreSafeExceptions(IEngineHost host, IHostTrace trace, Action action)
在 Microsoft.Mashup.Evaluator.EvaluationHost.TryReportException(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Exception exception)
在 Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
在 Microsoft.Mashup.Evaluator.RemotePreviewValueSource.RunStub(IEngineHost engineHost, IMessageChannel channel, Func`1 getPreviewValueSource)
在 Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.c__DisplayClass12_1`1.b__0()
在 Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
在 Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetResult[T](IMessageChannel channel, BeginGetResultMessage message, Action`1 action)
在 Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetPreviewValueSource(IMessageChannel channel, BeginGetPreviewValueSourceMessage message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.ChannelMessenger.OnMessageWithUnknownChannel(IMessageChannel baseChannel, MessageWithUnknownChannel messageWithUnknownChannel)
在 Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.EvaluationHost.Run()
在 Microsoft.Mashup.Container.EvaluationContainerMain.Run(Object args)
在 Microsoft.Mashup.Evaluator.SafeThread2.c__DisplayClass9_0.b__0(Object o)
在 Microsoft.Mashup.Container.EvaluationContainerMain.SafeRun(String[] args)
在 Microsoft.Mashup.Container.EvaluationContainerMain.Main(String[] args)
--- 内部异常堆栈跟踪的结尾 ---
在 Microsoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost, IMessageChannel channel, ExceptionMessage message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
在 Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel)
在 Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.WaitFor(Func`1 condition, Boolean disposing)
在 Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.get_SmallValue()
在 Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_SmallValue()
在 Microsoft.Mashup.Host.Document.Analysis.PackageDocumentAnalysisInfo.PackagePartitionAnalysisInfo.SetPreviewValue(EvaluationResult2`1 result, Func`1 getStaleSince, Func`1 getSampled)

2、如果将局域网文件夹复制到本地再进行获取,数据能够成功获取的,没有异常

问题:请大神帮忙看看是什么原因,怎么解决呢?
回复

使用道具 举报

小斌斌 | 2020-9-25 04:04:30 | 显示全部楼层
在其他地方見到,但我不知道怎樣改
问题在这里.
出现这个异常的原因正是因为上年12月29号那次微软发布的最后一次非正常更新程序引起的.在这次安全更新中对于asp.net单次的提交量做了一个最大量限制1000,出现这个异常正是因为页面提交量超过了1000这个限制.这个可以在web.config中增加参数来更改:
回复

使用道具 举报

wzfwzf | 2021-8-27 11:12:46 | 显示全部楼层
看起来不错
回复

使用道具 举报

xieshaoning | 2021-9-2 09:12:14 来自手机 | 显示全部楼层
支持一下云发教育!
回复

使用道具 举报

网看天下 | 2021-10-28 12:41:15 | 显示全部楼层
为毛老子总也抢不到沙发?!!
回复

使用道具 举报

fox9888 | 2021-11-8 16:03:21 来自手机 | 显示全部楼层
啥玩应呀
回复

使用道具 举报

laimo | 2021-11-8 19:33:38 | 显示全部楼层
确实不错,顶先
回复

使用道具 举报

dickson | 2021-11-9 21:30:30 | 显示全部楼层
好帖必须得顶起
回复

使用道具 举报

ch64 | 2021-12-10 07:09:20 | 显示全部楼层
打酱油的人拉,回复下赚取积分
回复

使用道具 举报

carsoom | 2022-2-22 20:58:41 来自手机 | 显示全部楼层
云发教育是我遇到最好的机构,和其他机构有本质区别
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则