Problembeschreibung
Stellen Sie sich folgendes Szenario vor:
-
Sie verwenden SQL Server Reporting Services 2012, 2014 oder 2016.
-
Sie installieren Microsoft SQL Server 2014 Service Pack 1, ein späteres kumulatives Update von SQL Server 2012 SP3 oder ein kumulatives Update von SQL Server 2016.
-
Sie führen einen RDL-Bericht aus, der programmgesteuert generiert wird.
In diesem Szenario erhalten Sie möglicherweise eine Fehlermeldung, die wie folgt aussieht:
Verarbeitung! ReportServer_0-1!1328!14.01.2016-10:58:06:: e FEHLER: Auslösen von Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Unerwarteter Fehler bei der Berichtsverarbeitung. ---> System.IO.IOException: Der Prozess kann nicht auf die Datei "C:\Users\ReportServer\AppData\Local\Temp\kpw4qafn.out" zugreifen, da sie von einem anderen Prozess verwendet wird.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Microsoft.ReportingServices.RdlExpressions.VBExpressionCodeProvider.CompileAssemblyFromDomWithRetry(CompilerParameters options, CodeCompileUnit compilationUnit)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.InternalCompile(AppDomain compilationTempAppDomain, Boolean refusePermissions)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.<>c__DisplayClass2.<Compile>b__0()
unter "Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<Run>b__0(Object state)
at 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)
at 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)
bei 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)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext reportPublishingContext, PublishingErrorContext errorContext, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, DataSetInfoCollection& sharedDataSetReferences, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks, Byte[]& dataSetsHash)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext)
--- Ende der ---
Hinweis Dieser Fehler wird auch in den Reporting Services Protokollen protokolliert.
Lösung
Dieses Problem wurde im folgenden kumulativen Update für SQL Server:
Kumulatives Update 5 für SQL Server 2016 RTM
kumulatives Update 2 für SQL Server 2016 SP1
kumulatives Update 9 für SQL Server 2014 Service Pack 1
behoben.
Kumulatives Update 1 für SQL Server 2014 SP2
Kumulatives Update 8 für SQL Server 2012 SP3
Kumulatives Update 16 für SQL Server 2012 Service Pack 2 (SP2)
Jedes neue kumulative Update für SQL Server enthält alle Hotfixes und alle Sicherheitsfixes, die im vorherigen kumulativen Update enthalten waren. Sehen Sie sich die neuesten kumulativen Updates für SQL Server an:
Neuestes kumulatives Update für SQL Server 2014
Neuestes kumulatives Update für SQL Server 2016
Neuestes kumulatives Update für SQL Server 2012 SP3
Status
Microsoft hat bestätigt, dass es sich hierbei um ein Problem bei den in diesem Artikel genannten Microsoft-Produkten handelt.
Informationsquellen
Informieren Sie sich über die Terminologie, die Microsoft zum Beschreiben von Softwareupdates verwendet.