Compiler Error Message: BC30517: Overload resolution failed because no 'New' is accessible.
Source Error:
Line 97:
Line 98: Dim memStream As New MemoryStream()
Line 99: Using archive As New ZipArchive(memStream, ZipArchiveMode.Create, True, Nothing)
What am I doing wrong?
Marc
1 Answer, 1 is accepted
0
Rumen
Telerik team
answered on 29 Apr 2026, 02:41 PM
Hi Marc,
Thank you for reaching out. The error you're seeing is caused by a breaking change introduced in RadZipLibrary 2024 Q1. Starting from that version, the ZipArchive constructors were made obsolete and are no longer accessible. Full details are available here: Backward Compatibility - RadZipLibrary.
How to fix:
Replace the constructor call:
Using archive As New ZipArchive(memStream, ZipArchiveMode.Create, True, Nothing)
With the new static factory method:
Using archive As ZipArchive = ZipArchive.Create(memStream)
Do the same for any other place where you instantiate a ZipArchive — use ZipArchive.Create() for writing, ZipArchive.Read() for reading, or ZipArchive.Update() for updating existing archives.
Also, could you let us know which specific demo page is still erroring out for you? All ZipLibrary demos have been updated and should be working correctly now — for example: https://demos.telerik.com/aspnet-ajax/ziplibrary/examples/overview/defaultcs.aspx. If you are still seeing an error on a particular demo, we'd like to investigate further.