Hello @Sadiq Shaik,
Welcome to Microsoft Q&A forum.
This issue is usually related to accounts, permissions, and package sources. Are you using any version control tool, for example Azure DevOps?
You can check following:
- Tools => NuGet Package Manager => Package Manager Settings => Package Sources => Make sure that all the package sources are valid and available. Remove the invalid one(s).
- In VS "Mange Packages for Solution" window, choose the valid and available package source.
- If these NuGet packages are from your internal package source, try to confirm with your administrator that you have enough permissions for accessing this package source. Also, make sure that you are logging in with the correct account.
- In case you modified or customized the
NuGet.Config
file, please navigate toC:\Users\username\AppData\Roaming\NuGet
, open theNuGet.Config
file with Notepad, make sure that there are no username and password settings. If the username and password settings exist, try to follow the settings to use the correct account to sign in VS, or use the version control tool.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.