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、如果将局域网文件夹复制到本地再进行获取,数据能够成功获取的,没有异常
问题:请大神帮忙看看是什么原因,怎么解决呢? |