Skip to main content

Notifications

Announcements

No record found.

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>

  • TheGoodDBA Profile Picture
    TheGoodDBA 235 on at
    RE: Ax 2012 Reports At time show HRESULT: 0x80070005 (E_ACCESSDENIED)

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans