現象
次のような状況で問題が発生します。
-
SQL Server 2012、2014、または 2016 Reporting Servicesを使用します。
-
Microsoft SQL Server 2014 Service Pack 1、SQL Server 2012 SP3 以降の累積的な更新プログラム、または 2016 SQL Serverの累積的な更新プログラムをインストールします。
-
プログラムによって生成された RDL レポートを実行します。
このシナリオでは、次のようなエラー メッセージが表示される場合があります。
処理!ReportServer_0-1!1328!01/14/2016-10:58:06:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: レポート処理で予期しないエラーが発生しました。 System.IO.IOException --->: プロセスは、別のプロセスで使用されているため、ファイル 'C:\Users\ReportServer\AppData\Local\Temp\kpw4qafn.out' にアクセスできません。
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 オプション, CodeCompileUnit compilationUnit)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.InternalCompile(AppDomain compilationTempAppDomain, Boolean refusePermissions)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.<>c__DisplayClass2.<コンパイル>b__0()
at 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 コード, CleanupCode backoutCode, Object userData)
at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback コールバック, オブジェクトの状態)
at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody コールバック)
at Microsoft.ReportingServices.RdlExpressions.ExprHostCompiler.Compile(IExpressionHostAssemblyHolder expressionHostAssemblyHolder, AppDomain compilationTempAppDomain, Boolean refusePermissions, PublishingVersioning versioning)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.Phase3(ParameterInfoCollection& パラメーター, Dictionary'2& groupingExprCountAtScope)
at Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat(Stream definitionStream, String& description, String& language, ParameterInfoCollection& パラメーター、DataSourceInfoCollection& データ ソース、DataSetInfoCollection& sharedDataSetReferences、UserLocationFlags& userReferenceLocation、ArrayList& dataSetsName、Boolean& hasExternalImages、Boolean& hasHyperlinks、Byte[]& dataSetHash)
at 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)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(PublishingContext reportPublishingContext)
--- 内部例外スタック トレース ---の終了
このエラーは、Reporting Services ログにも記録されます。
解決方法
この問題は、SQL Server:
SQL Server 2016 RTM
累積更新プログラム 2 for SQL Server 2016 SP1
SQL Server 2014 Service Pack 1 の累積的な更新プログラム 9 の累積的な更新プログラム 5 で
修正されました
SQL Server 2014 SP2 の累積的な更新プログラム 1
SQL Server 2012 SP3 の累積的な更新プログラム 8
SQL Serverの各新しい累積的な更新プログラムには、以前の累積的な更新プログラムに含まれていたすべての修正プログラムとすべてのセキュリティ修正プログラムが含まれています。 SQL Serverの最新の累積的な更新プログラムを確認してください。
SQL Server 2014
の最新の累積的な更新プログラムSQL Server 2016
の最新の累積的な更新プログラムSQL Server 2012 SP3 の最新の累積的な更新プログラム
状態
マイクロソフトでは、この問題をこの資料の対象製品として記載されているマイクロソフト製品の問題として認識しています。
関連情報
マイクロソフトでソフトウェア更新プログラムの説明に使用する用語集を参照してください。