อาการ
พิจารณาสถานการณ์ต่อไปนี้:
-
คุณใช้บริการการรายงานของ SQL Server 2012, 2014 หรือ 2016
-
คุณติดตั้ง Microsoft SQL Server 2014 Service Pack 1 การอัปเดตแบบสะสมในภายหลังของ SQL Server 2012 SP3 หรือการอัปเดตแบบสะสมของ SQL Server 2016
-
คุณเรียกใช้รายงาน RDL ที่สร้างขึ้นโดยโปรแกรม
ในสถานการณ์สมมตินี้ คุณอาจได้รับข้อความแสดงข้อผิดพลาดที่คล้ายกับต่อไปนี้:
ประมวล ผล! ReportServer_0-1!1328!01/14/2016-10:58:06:: e ERROR: การส่ง Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: มีข้อผิดพลาดที่ไม่คาดคิดเกิดขึ้นในการประมวลผลรายงาน ---> System.IO.IOException: กระบวนการไม่สามารถเข้าถึงไฟล์ 'C:\Users\ReportServer\AppData\Local\Temp\kpw4qafn.out' ได้เนื่องจากกําลังถูกใช้โดยกระบวนการอื่น
ที่ System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
ที่ System.IO.File.InternalDelete(String path, Boolean checkHost)
ที่ Microsoft.ReportingServices.RdlExpressions.VBExpressionCodeProvider.CompileAssemblyFromDomWithRetry(CompilerParameters, CodeCompileUnit compilationUnit)
ที่ Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.InternalCompile(AppDomain compilationTempAppDomain, Boolean refusePermissions)
ที่ Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.<>c__DisplayClass2.<Compile>b__0()
ที่ Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<เรียกใช้>b__0(สถานะของวัตถุ)
ที่ System.Security.SecurityContext.runTryCode(Object userData)
ที่ System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
ที่ System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
ที่ Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
ที่ Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.Compile(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, AppDomain compilationTempAppDomain, Boolean refusePermissions, PublishingVersioning versioning)
ที่ Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase3(ParameterInfoCollection&พารามิเตอร์, Dictionary'2& groupingExprCountAtScope)
ที่ Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
ที่ Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage, ParameterInfoCollection&พารามิเตอร์, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
ที่ Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext)
--- สิ้นสุดการติดตามสแตกข้อยกเว้นภายใน ---
หมายเหตุ ข้อผิดพลาดนี้ยังถูกบันทึกในบันทึกของบริการรายงาน
การแก้ไข
ปัญหานี้ได้รับการแก้ไขแล้วในการอัปเดตสะสมต่อไปนี้สําหรับ SQL Server:
การอัปเดตสะสม 5 สําหรับ SQL Server 2016 RTM
Cumulative Update 2 สําหรับ SQL Server 2016 SP1
การอัปเดตสะสม 9 สําหรับ SQL Server 2014 Service Pack 1
การอัปเดตสะสม 1 สําหรับ SQL Server 2014 SP2
การอัปเดตสะสม 8 สําหรับ SQL Server 2012 SP3
การอัปเดตสะสม 16 สําหรับ SQL Server 2012 Service Pack 2 (SP2)
แต่ละปรับปรุงสะสมใหม่สําหรับSQL Serverประกอบด้วยโปรแกรมแก้ไขด่วนทั้งหมด และการแก้ไขข้อบกพร่องด้านความปลอดภัยทั้งหมดที่รวมอยู่ในการปรับปรุงสะสมก่อนหน้านี้ ดูการอัปเดตแบบสะสมล่าสุดสําหรับSQL Server:
การอัปเดตสะสมล่าสุดสําหรับ SQL Server 2014
การอัปเดตสะสมล่าสุดสําหรับ SQL Server 2016
การอัปเดตสะสมล่าสุดสําหรับ SQL Server 2012 SP3
สถานะ
Microsoft ยืนยันว่าปัญหานี้เป็นปัญหาที่เกิดขึ้นกับผลิตภัณฑ์ของ Microsoft ซึ่งมีการระบุไว้ในส่วน "นำไปใช้กับ"
อ้างอิง
เรียนรู้เกี่ยวกับ คําศัพท์ที่ Microsoft ใช้เพื่ออธิบายการอัปเดตซอฟต์แวร์