-
ABP Framework version: v4.2.2
-
UI type: MVCr
-
DB provider: EF Core
-
Tiered (MVC) or Identity Server Separated (Angular): Tiered MVC Separate IDentity
-
Exception message and stack trace:
C:\Program Files\dotnet\sdk\5.0.202\NuGet.targets(131,5): error : Failed to retrieve information about 'Microsoft.Extensions.FileProviders.Embedded' from remote source 'https://nuget.pkg.github.com/SPHTech/download/microsoft.extensions.fileproviders.embedded/index.json'. [C:\SPH\CommerceAdminWorkspace\src\SPHTech.Commerce.Admin.IdentityServer\SPHTech.Commerce.Admin.IdentityServer.csproj]
C:\Program Files\dotnet\sdk\5.0.202\NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\SPH\CommerceAdminWorkspace\src\SPHTech.Commerce.Admin.IdentityServer\SPHTech.Commerce.Admin.IdentityServer.csproj]
-
Steps to reproduce the issue:
-
just run dotnet run
Got this error when running dotnet run on a windows machine.
C:\Program Files\dotnet\sdk\5.0.202\NuGet.targets(131,5): error : Failed to retrieve information about 'Microsoft.Extensions.FileProviders.Embedded' from remote source 'https://nuget.pkg.github.com/SPHTech/download/microsoft.extensions.fileproviders.embedded/index.json'. [C:\SPH\CommerceAdminWorkspace\src\SPHTech.Commerce.Admin.IdentityServer\SPHTech.Commerce.Admin.IdentityServer.csproj]
C:\Program Files\dotnet\sdk\5.0.202\NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\SPH\CommerceAdminWorkspace\src\SPHTech.Commerce.Admin.IdentityServer\SPHTech.Commerce.Admin.IdentityServer.csproj]
However when running/debugging withing Visual Studio there is no issues
5 Answer(s)
-
0
Any help on this??
-
0
hi,
Response status code does not indicate success: 401 (Unauthorized).
it seems like you didn't login via ABP CLI.
1- Ensure that ,ABP Commercial NuGet Source
is added to your package sources with your valid API KEY (you can copy from a downloaded project)2- Login via ABP CLI where you run this project.
abp login -p
-
0
still not working for me.
Already confirmed the Nuget.config file is correct with my API key.
Already logged in to ABP as well.
-
0
hi yuemy
Can you try to remove or disable other nuget source in you
Nuget.config
?Include
C:\Users\your-name\AppData\Roaming\NuGet\NuGet.Config
-
0
This question has been automatically marked as stale because it has not had recent activity.