tag:help.appveyor.com,2012-11-13:/discussions/problems/25484-error-publishing-package-nuget-server-returned-403AppVeyor: Discussion 2019-11-21T07:23:24Ztag:help.appveyor.com,2012-11-13:Comment/478559342019-11-20T19:33:45Z2019-11-20T19:33:46ZError publishing package. NuGet server returned 403: <div><p>Hello I am unable to use the appveyor deployment to nuget.org.<br>
I tried to push a nuget automatically after a build or even manually , it keeps throwing the following error :</p>
<p>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.</p>
<p>My key is valid as I can publish a nuget from command line using it.<br>
I use this key for 2 projects :<br>
- <a href="https://ci.appveyor.com/project/OlivierDuhart/sly">https://ci.appveyor.com/project/OlivierDuhart/sly</a> - <a href="https://ci.appveyor.com/project/OlivierDuhart/sharpfilesystem">https://ci.appveyor.com/project/OlivierDuhart/sharpfilesystem</a></p>
<p>What can i look at to debug this ?</p>
<p>thanks,</p>
<p>Olivier</p></div>olivier.duharttag:help.appveyor.com,2012-11-13:Comment/478559342019-11-20T22:43:08Z2019-11-20T22:43:08ZError publishing package. NuGet server returned 403: <div><p>Hi Olivier,</p>
<p>Make sure the key encrypted for <code>OlivierDuhart</code> account. Encryption keys are account-specific, i.e. if <code>appveyor.yml</code> 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.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/478559342019-11-21T07:23:10Z2019-11-21T07:23:10ZError publishing package. NuGet server returned 403: <div><p>Hi,</p>
<p>I may be that I forgot to update my appveyor.yml.<br>
It works for both project now.</p>
<p>thanks for helping me update my appvyeor files.</p>
<p>Olivier</p></div>olivier.duhart