web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Ax 2012 Reports At time show HRESULT: 0x80070005 (E_ACCESSDENIED)

(0) ShareShare
ReportReport
Posted on by 25

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. ---&gt; System.IO.Compression.ZLibException: The underlying compression routine could not be loaded correctly. ---&gt; System.TypeInitializationException: The type initializer for 'NativeZLibDLLStub' threw an exception. ---&gt; 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&amp; elapsedTimeMs)
at Microsoft.ReportingServices.Library.SegmentStorageLayer.CompressedStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics&amp; statistics)
at Microsoft.ReportingServices.Library.CompositeStorageLayer.CreateSegment(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics&amp; 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>

I have the same question (0)
  • TheGoodDBA Profile Picture
    235 on at

    Hello Asim,

    Test execution from the SSRS server console for a different result.

    Have you checked the SSRS Execution account for an invalid password?

    Have you redeployed the report, cleared caches and re-run? Try deploying a single report from AOT and retry.

    Thanks,

    Steve

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 758

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 655 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 496

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans