Trying to update my solution from v10.4 to 10.5 and getting the following exception:
NuGet package not found Package: Volo.Abp.LeptonXTheme.Installer, Version: 5.1.1 Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown. at async Task Volo.Abp.Studio.Nuget.NugetPackageManager.DownloadAsync(string packageId, string version, bool useOnlyPublicNuGet) at async Task<string> Volo.Abp.Studio.Nuget.NugetSourceCodeStore.GetContentsPathAsync(string packageId, string version) at async Task<string> Volo.Abp.Studio.Modules.Installing.RemoteModuleManager.tAnjdU27gp(string , string ) at async Task<ModuleInfo> Volo.Abp.Studio.Modules.Installing.RemoteModuleManager.EGmjGKjGCi(string , string version) at async Task<ModuleInfo> Volo.Abp.Studio.Modules.Installing.RemoteModuleManager.GetModuleInfoAsync(string referenceModule, string version) at async Task Volo.Abp.Studio.Modules.ModuleManager.AdjustImportVersionsAsync(string modulePath) at async Task Volo.Abp.Studio.Cli.Commands.StudioUpdateCommand.ExecuteAsync(CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)
The update process then just exits. Attempting the update again just throws the same exception and exits. I can see from the nuget source for that package, the last release was 5.4.1 so not certain why it's trying to download such an old version.
Any help would be appreciated.
Thanks,
10 Answer(s)
-
0
This is almost always caused by your NuGet sources (or packageSourceMapping) not allowing ABP Studio/CLI to see the correct LeptonX packages, so during the upgrade it ends up trying to resolve an old LeptonX installer version (5.1.1) from whatever feeds it can see, then fails with “package not found”.
Fix it by making sure your machine can restore Commercial LeptonX packages from the correct feed(s), then re-run the update:
1) Verify/enable the correct NuGet sources
Run:
dotnet nuget list sourceEnsure:
nuget.orgis enabled (public packages)- ABP Commercial NuGet feed is enabled and reachable (the one you normally use for
Volo.*commercial packages)
If you’re in a corporate environment, also check your user/global NuGet.Config for:
- a broken/unreachable internal feed (can break resolution)
packageSourceMappingthat does not mapVolo.*/Volo.Abp.*to the ABP commercial feed
(We’ve seen cases where removing a company feed from NuGet.Config fixed similar “can’t install/update ABP tool/package” issues.)
2) Clear caches and retry
dotnet nuget locals all --clear abp clean abp update3) If you need to upgrade immediately, pin versions explicitly
Instead of relying on “latest” detection, run:
abp update -v 10.5.0(If your solution uses LeptonX, also pin the LeptonX line version that matches your target ABP version, so Studio/CLI doesn’t try to resolve an unexpected older LeptonX installer.)
4) Sanity check: confirm NuGet can actually see the package/version
Try resolving the exact package from your configured sources:
dotnet add <any .csproj> package Volo.Abp.LeptonXTheme.Installer --version 5.1.1- If this fails, it confirms it’s 100% a NuGet source/config visibility problem on the machine (not the ABP update logic).
Links (verified):
- https://abp.io/docs/latest/CLI#update
- https://abp.io/docs/latest/studio/installation#upgrading
- https://abp.io/docs/10.5/release-info/migration-guides/abp-10-5
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
I've tried several of the suggestions with no luck. More and more I'm thinking that the fact that I'm stuck on v5.1.1 of LeptonX is the issue because it's pretty old. Not sure how I get it to update
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
The failure comes from a stale module import version in your solution, not from the LeptonX packages themselves.
abp updateruns in two steps: first it updates the package versions in your.csprojfiles (this part succeeds), then it runs a follow-up step that reads theimportssection of your root.abpmdlfile and, for each import, downloads that exact recorded version's.Installerpackage to re-sync the versions. Your.abpmdlstill recordsVolo.Abp.LeptonXThemeat5.1.1(that's the LeptonX version from the ABP 10.1 era) and it was never bumped as you moved up to 10.4. So the update reaches back forVolo.Abp.LeptonXTheme.Installer 5.1.1, that request fails in your environment, and the whole update aborts. That's why you see it pulling such an old version.Two things to fix it:
- Make sure you're logged in so Studio can reach the commercial feed:
abp login <your-username>- Open the
.abpmdlfile at your solution root (<YourApp>.abpmdl), find the LeptonX import and bump its version to the one now referenced in your.csprojfiles after the update (for ABP 10.5 that's5.5.0):
"imports": { "Volo.Abp.LeptonXTheme": { "version": "5.1.1", // change to 5.5.0 ... } }Save and run the update again. The re-sync step will then fetch the current installer and complete.
We'll also make this step more resilient in a next release so a stale import version can't break the whole update.
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Thanks that worked now. One thing I noticed though is that the update changed all the versions for every package in the abpmdl and abpsln to unknown. Now if I try to run the update again it throws an exception indicating that package was not found
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
First, to get you unblocked: restore the
.abpmdland.abpslnfiles from source control (their state before the update). Your packages were already upgraded to 10.5, so you keep the upgrade — only these two metadata files need fixing. After restoring, make sure there's noUnknownleft in them and that theVolo.Abp.LeptonXThemeimport is5.5.0(not the old5.1.1).For the cause:
abp updatewritesUnknownlike this when the package versions aren't set directly on eachPackageReferencebut resolved centrally. Could you confirm how your versions are managed — do you use aDirectory.Packages.props(Central Package Management), and are the versions there set through an MSBuild$(...)property? If you can share yourDirectory.Packages.propsand one.csproj, I can confirm it matches what we've reproduced.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
Yes, the packages are centrally managed. I did this based on your suggestion, after the 10.4 update, to resolve the issues of the vulnerabilites being reported by Scriban and AutoMapper. I've shared the files you requested below.
Directory.Packages.props Whitecap.COE.HttpApi.Host.csproj
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
Thanks for the files — your version setup is fine. Your
Directory.Packages.propsalready has all the ABP packages at10.5.0(LeptonX at5.5.0), so your solution is on 10.5; nothing is wrong with the actual package versions.So the only thing left to fix is the
Unknownvalues that ended up in the.abpmdland.abpsln. The cleanest way is to restore both files from source control (their state before the update). If you'd rather edit them by hand, replace everyUnknownwith the matching version from yourDirectory.Packages.props— that's10.5.0for the ABP packages and5.5.0for LeptonX. Make sure you fix both files, including theAbpFramework/AbpCommercial/AbpStudio/LeptonXentries in the.abpsln, since those feed later Studio operations.You don't need to re-run the update for this — your packages are already on 10.5. Please avoid running
abp updateagain on this version, as the same follow-up step can writeUnknowna second time. We're fixing that step so it can never write an unresolved version into the.abpmdl/.abpsln, and it'll be in the next release.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
Glad it's sorted, and thanks for flagging it. We've fixed the update so it won't write those
Unknownversions again — it'll be in the next release.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)