我是靠谱客的博主 光亮面包,最近开发中收集的这篇文章主要介绍Thread was being aborted Errors,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

"executionTimeout" in the machine.cofig

<system.web>
    <httpRuntime executionTimeout="3600" />
  </system.web>

The problem is solved after you delete the encrypted content for SQl Server 2008. It worked for me.
Try Reporting services configuration manager -> Encryption keys -> delete encrypted content.

 

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:

Line 227:            // string deviceInfo;
Line 228:
Line 229:            byte[] bytes = reportViewer.LocalReport.Render(
Line 230:            s_rptType, null, out mimeType, out encoding, out extension,
Line 231:            out streamids, out warnings);

[IndexOutOfRangeException: Index was outside the bounds of the array.] System.Collections.Generic.List`1.Add(T item) +37 Microsoft.ReportingServices.Library.MemoryReportSnapshot.CreateReportChunk(String name, ReportChunkTypes type, String mimeType) +47 Microsoft.ReportingServices.ReportProcessing.DataChunkWriter.Flush() +889 Microsoft.ReportingServices.ReportProcessing.DataChunkWriter.FinalFlush() +13 Microsoft.ReportingServices.ReportProcessing.RuntimeReportDataSetNode.FirstPassCleanup(Boolean flushData) +37 Microsoft.ReportingServices.ReportProcessing.RuntimeDataSetNode.FirstPass() +349 Microsoft.ReportingServices.ReportProcessing.RuntimeDataSetNode.FirstPassProcess(Boolean& closeConnWhenFinish) +93 Microsoft.ReportingServices.ReportProcessing.RuntimeReportDataSetNode.Process() +227 Microsoft.ReportingServices.ReportProcessing.RuntimeDataSetNode.ProcessConcurrent(Object threadSet) +368 [ProcessingAbortedException: An error has occurred during report processing.] Microsoft.ReportingServices.ReportProcessing.AbortHelper.ThrowAbortException(Int32 reportUniqueName) +50 Microsoft.ReportingServices.ReportProcessing.ProcessingContext.CheckAndThrowIfAborted() +37 Microsoft.ReportingServices.ReportProcessing.Merge.Process(ParameterInfoCollection parameters, Boolean mergeTran) +1591 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessReport(Report report, ProcessingContext pc, ProcessingContext context) +526 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessReport(Report report, ProcessingContext pc, Boolean snapshotProcessing, Boolean processWithCachedData, GetReportChunk getChunkCallback, ErrorContext errorContext, DateTime executionTime, CreateReportChunk cacheDataCallback, ProcessingContext& context) +86 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk cacheDataCallback, Boolean& dataCached) +1345 Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc) +44 Microsoft.Reporting.LocalService.RenderWithDataCache(PreviewItemContext itemContext, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, IRenderingExtension renderer, ReportProcessing repProc, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup) +1129 Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings) +263 Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +228 [LocalProcessingException: An error occurred during local report processing.] Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +263 Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +145 Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +28 Reports_AnnualSummary4.saveRptAs(ReportViewer reportViewer, String s_rptType, String fileName, String folderName) in e:Compass.netCompassWebReportsAnnualSummary4.aspx.cs:229 Reports_AnnualSummary4.btnGenerateReport_Click(Object sender, EventArgs e) in e:Compass.netCompassWebReportsAnnualSummary4.aspx.cs:171 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/624c3cb6-6094-4176-8e4d-361349b1ffbe/

http://www.devnewsgroups.net/adonet/t3899-thread-being-aborted-errors.aspx

最后

以上就是光亮面包为你收集整理的Thread was being aborted Errors的全部内容,希望文章能够帮你解决Thread was being aborted Errors所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(84)

评论列表共有 0 条评论

立即
投稿
返回
顶部