Gejala
Pertimbangkan skenario berikut:
-
Anda menggunakan layanan pelaporan SQL Server 2012, 2014, atau 2016.
-
Anda menginstal Microsoft SQL Server 2014 Service Pack 1, pembaruan kumulatif SQL Server 2012 SP3 yang lebih baru, atau pembaruan kumulatif SQL Server 2016 .
-
Anda menjalankan laporan RDL yang dihasilkan secara terprogram.
Dalam skenario ini, Anda mungkin menerima pesan kesalahan yang menyerupan berikut ini:
Pengolahan! ReportServer_0-1!1328!01/14/2016-10:58:06:: e KESALAHAN: Melempar Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Terjadi kesalahan yang tidak diharapkan dalam Pemrosesan Laporan. ---> System.IO.IOException: Proses tidak dapat mengakses file 'C:\Users\ReportServer\AppData\Local\Temp\kpw4qafn.out' karena sedang digunakan oleh proses lain.
di System.IO.__Error.WinIOError(Kode kesalahan Int32, String mungkinFullPath)
di System.IO.File.InternalDelete(Jalur string, Boolean checkHost)
di Microsoft.ReportingServices.RdlExpressions.VBExpressionCodeProvider.CompileAssemblyFromDomWithRetry(Opsi CompilerParameters, kompilasi CodeCompileUnitUnit)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.InternalCompile(AppDomain compilationTempAppDomain, Boolean refusePermissions)
di Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.<>c__DisplayClass2.<Compile>b__0()
di Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<Jalankan>b__0(Status objek)
di System.Security.SecurityContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
di Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.Compile(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, AppDomain compilationTempAppDomain, Boolean refusePermissions, PublishingVersioning versioning)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase3(ParameterInfoCollection& parameters, Dictionary'2& groupingExprCountAtScope)
di Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, deskripsi string&, string& bahasa, parameterInfoCollection& parameter, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameter, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
di Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(publishingContext reportPublishingContext)
--- Akhir --- jejak tumpukan pengecualian dalam
Catatan Kesalahan ini juga dicatat dalam log Layanan Pelaporan.
Pemecahan Masalah
Masalah ini telah diperbaiki dalam pembaruan kumulatif berikut ini untuk SQL Server:
Pembaruan Kumulatif 5 untuk SQL Server 2016 RTM
Pembaruan Kumulatif 2 untuk SQL Server 2016 SP1
Pembaruan Kumulatif 9 untuk SQL Server 2014 Paket Layanan 1
Pembaruan Kumulatif 1 untuk SQL Server 2014 SP2
Pembaruan Kumulatif 8 untuk SQL Server 2012 SP3
Pembaruan Kumulatif 16 untuk SQL Server 2012 Paket Layanan 2 (SP2)
Setiap pembaruan kumulatif baru untuk SQL Server berisi semua hotfix dan semua perbaikan keamanan yang disertakan dengan pembaruan kumulatif sebelumnya. Lihat pembaruan kumulatif terbaru untuk SQL Server:
Pembaruan kumulatif terbaru untuk SQL Server 2014
Pembaruan kumulatif terbaru untuk SQL Server 2016
Pembaruan kumulatif terbaru untuk SQL Server 2012 SP3
Status
Microsoft telah mengonfirmasi bahwa ini adalah masalah pada produk Microsoft yang tercantum di bagian "Berlaku untuk".
Referensi
Pelajari tentang terminologi yang digunakan Microsoft untuk menjelaskan pembaruan perangkat lunak.