"package ID has been reserved" error when trying to publish an extension as NuGet package

I have developed some extension for MongoDB .NET driver. And I want to publish as a Nuget package.

When I do the publish, I got the following message.

Pushing MongoDB.Driver.Extensions.Ledger.1.0.0.nupkg to ‘https://www.nuget.org/api/v2/package’…
PUT https://www.nuget.org/api/v2/package/
Conflict https://www.nuget.org/api/v2/package/ 515ms
To skip already published packages, use the option --skip-duplicate
error: Response status code does not indicate success: 409 (This package ID has been reserved. Please request access to upload to this reserved namespace from the owner of the reserved prefix, or re-upload the package with a different ID. Go to ID Prefix Reservation | Microsoft Learn learn more about Package ID prefix reservation.).

When I checked, there is no defined package. And there are some other packages like “MongoDB.Driver.Extensions…” which are not official ones.

Is there any defined reserved project ids for MongoDB?

Hi Arda.

MongoDB is indeed now a reserved prefix so that our customers can identity easily official vs non-official packages going forward.

There are some unofficial packages with this prefix as they predate the reservation.

1 Like

Thanks a lot, I just had the similar response from the nuget support.

Good to know about this…And this very legit, I guess :slight_smile:

I have revised my package id and published according to it.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.