Dears, a quick guidance on below issue.
The below error is coming AT times when
1) On report opening (for examples VendorBaseData or any other OOB reports)
2) During report deployment (from the power shell
i re-installed the .Net framework as one of the guidance over other community. Secondly i already veified the following things
1) BC connecter user along with Reporting service user
2) Refreshed the WCF
3) Permission actions over SQL and Reporting server folder
Log Name: Application
Source: Report Server (AX)
Date: 1/12/2022 8:46:41 AM
Event ID: 116
Task Category: Internal
Level: Error
Keywords: Classic
User: N/A
Description:
Internal error: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.IO.Compression.ZLibException: The underlying compression routine could not be loaded correctly. ---> System.TypeInitializationException: The type initializer for 'NativeZLibDLLStub' threw an exception. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.IO.Compression.ZLibNative.ZLibStreamHandle.NativeZLibDLLStub.LoadZLibDLL()
at System.IO.Compression.ZLibNative.ZLibStreamHandle.NativeZLibDLLStub..cctor()
--- End of inner exception stack trace ---
at System.IO.Compression.ZLibNative.ZLibStreamHandle.DeflateInit2_(CompressionLevel level, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
--- End of inner exception stack trace ---
at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
at System.IO.Compression.DeflaterZLib..ctor(CompressionLevel compressionLevel)
at System.IO.Compression.DeflateStream.CreateDeflater(Nullable`1 compressionLevel)
at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen)
at System.IO.Compression.GZipStream..ctor(Stream stream, CompressionMode mode)
at Microsoft.ReportingServices.Library.SegmentStorageLayer.CompressedStorageLayer.CompressBuffer(Byte[] buffer, Int32 offset, Int32 count, Int64& elapsedTimeMs)
at Microsoft.ReportingServices.Library.SegmentStorageLayer.CompressedStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics& statistics)
at Microsoft.ReportingServices.Library.CompositeStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics& statistics)
at Microsoft.ReportingServices.Library.SegmentedChunkStorage.Write(Int64 position, Byte[] buffer, Int32 offset, Int32 length)
at Microsoft.ReportingServices.Library.StorageStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Library.BufferedReadWriteStream.WriteBuffer()
at Microsoft.ReportingServices.Library.BufferedReadWriteStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.SerializeReport(Report report, IChunkFactory chunkFactory, IConfiguration configuration)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext report
Event Xml:
<Event xmlns="">schemas.microsoft.com/.../event">
<System>
<Provider Name="Report Server (AX)" />
<EventID Qualifiers="0">116</EventID>
<Level>2</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-01-12T16:46:41.474627200Z" />
<EventRecordID>3801655</EventRecordID>
<Channel>Application</Channel>
<
<Security />
</System>
<EventData>
<Data>Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.IO.Compression.ZLibException: The underlying compression routine could not be loaded correctly. ---> System.TypeInitializationException: The type initializer for 'NativeZLibDLLStub' threw an exception. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at System.IO.Compression.ZLibNative.ZLibStreamHandle.NativeZLibDLLStub.LoadZLibDLL()
at System.IO.Compression.ZLibNative.ZLibStreamHandle.NativeZLibDLLStub..cctor()
--- End of inner exception stack trace ---
at System.IO.Compression.ZLibNative.ZLibStreamHandle.DeflateInit2_(CompressionLevel level, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
--- End of inner exception stack trace ---
at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
at System.IO.Compression.DeflaterZLib..ctor(CompressionLevel compressionLevel)
at System.IO.Compression.DeflateStream.CreateDeflater(Nullable`1 compressionLevel)
at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen)
at System.IO.Compression.GZipStream..ctor(Stream stream, CompressionMode mode)
at Microsoft.ReportingServices.Library.SegmentStorageLayer.CompressedStorageLayer.CompressBuffer(Byte[] buffer, Int32 offset, Int32 count, Int64& elapsedTimeMs)
at Microsoft.ReportingServices.Library.SegmentStorageLayer.CompressedStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics& statistics)
at Microsoft.ReportingServices.Library.CompositeStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics& statistics)
at Microsoft.ReportingServices.Library.SegmentedChunkStorage.Write(Int64 position, Byte[] buffer, Int32 offset, Int32 length)
at Microsoft.ReportingServices.Library.StorageStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.ReportingServices.Library.BufferedReadWriteStream.WriteBuffer()
at Microsoft.ReportingServices.Library.BufferedReadWriteStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.SerializeReport(Report report, IChunkFactory chunkFactory, IConfiguration configuration)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileOdpReport(PublishingContext report</Data>
</EventData>
</Event>