Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

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

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>

Categories:
  • 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans