Error publishing package. NuGet server returned 403:

olivier.duhart's Avatar


20 Nov, 2019 07:33 PM

Hello I am unable to use the appveyor deployment to
I tried to push a nuget automatically after a build or even manually , it keeps throwing the following error :

Error publishing package. NuGet server returned 403: The specified API key is invalid, has expired, or does not have permission to access the specified package.

My key is valid as I can publish a nuget from command line using it.
I use this key for 2 projects :
- -

What can i look at to debug this ?



  1. Support Staff 1 Posted by Feodor Fitsner on 20 Nov, 2019 10:43 PM

    Feodor Fitsner's Avatar

    Hi Olivier,

    Make sure the key encrypted for OlivierDuhart account. Encryption keys are account-specific, i.e. if appveyor.yml has secure values encrypted under one AppVeyor account was moved/forked under a different account it won't work and the values should be re-encrypted.

  2. 2 Posted by olivier.duhart on 21 Nov, 2019 07:23 AM

    olivier.duhart's Avatar


    I may be that I forgot to update my appveyor.yml.
    It works for both project now.

    thanks for helping me update my appvyeor files.


  3. olivier.duhart closed this discussion on 21 Nov, 2019 07:23 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

05 Dec, 2019 09:12 PM
04 Dec, 2019 07:46 PM
04 Dec, 2019 12:01 AM
04 Dec, 2019 12:00 AM
03 Dec, 2019 11:00 PM