Open Closed

unable to start server #1357


User avatar
0
yuemy@sph.com.sg created
  • 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)
  • User Avatar
    0
    yuemy@sph.com.sg created

    Any help on this??

  • User Avatar
    0
    alper created
    Support Team Director

    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)

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
        <add key="BlazoriseMyGet" value="https://www.myget.org/F/blazorise/api/v3/index.json" />
        <add key="ABP Commercial NuGet Source" value="https://nuget.abp.io/<YOUR-API-KEY>/v3/index.json" />
      </packageSources>
    </configuration>
    

    2- Login via ABP CLI where you run this project.

    abp login <username> -p <password>
    
  • User Avatar
    0
    yuemy@sph.com.sg created

    still not working for me.

    Already confirmed the Nuget.config file is correct with my API key.

    Already logged in to ABP as well.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11