Hi, I am trying to create a new blazor maui hybrid project with abpstudio v9 and get error at the bundle step. After many hours of digging this is what I concluded, it is an issue with the Volo.Abp.Account.Pro.Public.MauiBlazor package. Please see log from dotnet restore:Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages.
All other abpio packages seem to restore fine. This is preventing me from using the hybrid project type
Using abpstudio 0.9.15, Windows 11
Not sure if anyone else faces this issue?
Hi, I did not get the same problem when I created a Maui Blazor project. Can you send me the configuration of your solution from here? This helps me to understand how you create your project, and help you quickly.
- Template: app
- Created ABP Studio Version: 0.9.15
- Tiered: No
- Multi-Tenancy: Yes
- UI Framework: maui-blazor
- Theme: leptonx
- Theme Style: system
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Mobile Framework: maui
- Public Website: No
- Include Tests: Yes
Error when trying to build:
C:\Users\x\source\repos\AbpSolution3\src\AbpSolution3.MauiBlazor\AbpSolution3.MauiBlazor.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages.
Can you try
dotnet clean
&abp clean
commands before running the build command?
Hi, I tested with the following configuration in a project created from scratch and I am also having issues:
At first, while ABP Studio was creating the project, I received the error:
ERROR DETAILS: "ABP Bundle failed for the project: C:\repos\driven2u\demo\src
Then I executed: dotnet clean
& abp clean
and finally dotnet restore
command, which raised the error:
ERROR DETAILS: "Dotnet restore failed for the project "Driven2u.Demo". Details: C:\repos\driven2u\demo\src\Driven2u.Demo.MauiBlazor\Driven2u.Demo.MauiBlazor.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages. [C:\repos\driven2u\demo\Driven2u.Demo.sln]
17:11:49.690 Information CLI command executed. Command: "abp install-libs" Working directory: "C:\repos\driven2u\demo" CommandResult { ExitCode: 0, IsSuccess: True, StartTime: 12/17/2024 17:11:25 +01:00, ExitTime: 12/17/2024 17:11:49 +01:00, RunTime: 00:00:23.8766083 } 17:11:49.691 Information Completed task execution: "Installing client side libraries" 17:13:03.341 Information CLI command executed. Command: "dotnet run --migrate-database --disable-redis" Working directory: "C:\repos\driven2u\demo\src\Driven2u.Demo.DbMigrator" CommandResult { ExitCode: 0, IsSuccess: True, StartTime: 12/17/2024 17:11:25 +01:00, ExitTime: 12/17/2024 17:13:03 +01:00, RunTime: 00:01:37.5230153 } 17:13:03\.341 Information Completed task execution: "Database synchronization \| Migrating database" 17:13:03.341 Information Starting task execution: "Running bundle command" 17:13:09.758 Information CLI command executed. Command: "dotnet build -v:q /property:WarningLevel=0 /clp:ErrorsOnly /graphBuild" Working directory: "C:\repos\driven2u\demo\src\Driven2u.Demo.MauiBlazor" CommandResult { ExitCode: 1, IsSuccess: False, StartTime: 12/17/2024 17:13:03 +01:00, ExitTime: 12/17/2024 17:13:09 +01:00, RunTime: 00:00:06.4060427 } 17:13:21.259 Information CLI command executed. Command: "abp bundle -f -t maui-blazor" Working directory: "C:\repos\driven2u\demo\src\Driven2u.Demo.MauiBlazor" CommandResult { ExitCode: -1, IsSuccess: False, StartTime: 12/17/2024 17:13:09 +01:00, ExitTime: 12/17/2024 17:13:21 +01:00, RunTime: 00:00:11.4922839 } 17:13:21.261 Information Failed task execution: "Running bundle command" 17:13:21.261 Information ERROR: "An error has occured!" 17:13:21.261 Information ERROR DETAILS: "ABP Bundle failed for the project: C:\repos\driven2u\demo\src" 17:13:21.261 Warning Exception of type 'Volo.Abp.UserFriendlyException' was thrown. 17:13:21.261 Warning Code:AbpStudio:AbpBundleFailed 17:13:21.262 Warning Details: 17:13:21.262 Warning ---------- Exception Data ---------- ProjectName = C:\repos\driven2u\demo\src ErrorOutput = 17:20:10.608 Information Starting task execution: "Cleaning: Driven2u.Demo" 17:20:13.214 Information CLI command executed. Command: "dotnet clean -v:q /clp:ErrorsOnly" Working directory: "C:\repos\driven2u\demo" CommandResult { ExitCode: 0, IsSuccess: True, StartTime: 12/17/2024 17:20:10 +01:00, ExitTime: 12/17/2024 17:20:13 +01:00, RunTime: 00:00:02.5966837 } 17:20:13.215 Information Completed task execution: "Cleaning: Driven2u.Demo" 17:20:16.482 Information Starting task execution: "Cleaning: Driven2u.Demo" 17:20:17.364 Information CLI command executed. Command: "abp clean" Working directory: "C:\repos\driven2u\demo" CommandResult { ExitCode: 0, IsSuccess: True, StartTime: 12/17/2024 17:20:16 +01:00, ExitTime: 12/17/2024 17:20:17 +01:00, RunTime: 00:00:00.8737123 } 17:20:17.365 Information Completed task execution: "Cleaning: Driven2u.Demo" 17:23:41.969 Information Starting task execution: "Restoring: Driven2u.Demo" 17:23:46.577 Information CLI command executed. Command: "dotnet restore -v:q /clp:ErrorsOnly" Working directory: "C:\repos\driven2u\demo" CommandResult { ExitCode: 1, IsSuccess: False, StartTime: 12/17/2024 17:23:41 +01:00, ExitTime: 12/17/2024 17:23:46 +01:00, RunTime: 00:00:04.5981339 } 17:23:46.579 Information Failed task execution: "Restoring: Driven2u.Demo" 17:23:46.579 Information ERROR: "An error has occured!" 17:23:46.579 Information ERROR DETAILS: "Dotnet restore failed for the project "Driven2u.Demo". Details: C:\repos\driven2u\demo\src\Driven2u.Demo.MauiBlazor\Driven2u.Demo.MauiBlazor.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages. [C:\repos\driven2u\demo\Driven2u.Demo.sln]" 17:23:46.579 Information Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown. 17:23:46.579 Information Code:AbpStudio:DotnetRestoreFailed 17:23:46.579 Information Details: 17:23:46.579 Information ---------- Exception Data ---------- ProjectName = Driven2u.Demo Details = C:\repos\driven2u\demo\src\Driven2u.Demo.MauiBlazor\Driven2u.Demo.MauiBlazor.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages. [C:\repos\driven2u\demo\Driven2u.Demo.sln]
Hi all! when creating a new solution with the OpenidDict Admin module, the application types are blank The application type in database is null
Is this OK?
This is the solution configuration:
Hi, swagger is not working after creating a new solution:
This is how swagger page looks:
Here are the logs when requesting /swagger (OpenId traces were replaced by "...")
[01:20:44 INF] Request starting HTTP/2 GET https://localhost:44333/swagger - null null
...
[01:20:45 INF] Request finished HTTP/2 GET https://localhost:44333/swagger - 301 0 null 108.0025ms
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/index.html - null null
...
[01:20:45 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/index.html - 200 null text/html;charset=utf-8 214.7503ms
[01:20:45 INF] Request starting HTTP/2 POST https://localhost:44333/_blazor/disconnect - multipart/form-data; boundary=----WebKitFormBoundary3at1LypLqPakByVU 359
...
[01:20:45 INF] Executed endpoint '/_blazor'
[01:20:45 INF] Request finished HTTP/2 CONNECT https://localhost:44333/_blazor?id=QCRa5yKILdCr56vBPDoCDg - 200 null null 64161.2487ms
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/swagger-ui.css - null null
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/index.css - null null
...
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/ui/abp.js - null null
...
[01:20:45 INF] Sending file. Request path: '/swagger/ui/abp.js'. Physical path: 'N/A'
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/ui/abp.swagger.js - null null
[01:20:45 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/ui/abp.js - 200 3122 application/javascript 46.9327ms
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/swagger-ui-standalone-preset.js - null null
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/swagger-ui-bundle.js - null null
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/ui/index.js - null null
...
[01:20:45 INF] Request starting HTTP/2 GET https://localhost:44333/_framework/aspnetcore-browser-refresh.js - null null
...
[01:20:45 INF] Sending file. Request path: '/swagger/ui/abp.swagger.js'. Physical path: 'N/A'
[01:20:45 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/ui/abp.swagger.js - 200 4527 application/javascript 45.3559ms
[01:20:45 INF] Request finished HTTP/2 GET https://localhost:44333/_framework/aspnetcore-browser-refresh.js - 200 13797 application/javascript; charset=utf-8 6.0045ms
...
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/index.css - 200 202 text/css 124.0271ms
[01:20:46 INF] Sending file. Request path: '/swagger-ui.css'. Physical path: 'N/A'
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/swagger-ui.css - 200 152034 text/css 131.242ms
[01:20:46 INF] Request starting HTTP/2 GET https://localhost:44333/_vs/browserLink - null null
...
[01:20:46 INF] Executing endpoint 'Blazor disconnect'
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/ui/index.js - 404 0 null 76.8958ms
[01:20:46 INF] Sending file. Request path: '/swagger-ui-standalone-preset.js'. Physical path: 'N/A'
[01:20:46 INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://localhost:44333/swagger/ui/index.js, Response status code: 404
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/swagger-ui-standalone-preset.js - 200 230293 text/javascript 87.6466ms
[01:20:46 INF] Sending file. Request path: '/swagger-ui-bundle.js'. Physical path: 'N/A'
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/_vs/browserLink - 200 null text/javascript; charset=UTF-8 41.654ms
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/swagger-ui-bundle.js - 200 1452753 text/javascript 156.8066ms
[01:20:46 INF] Executed endpoint '/signalr-hubs/chat'
[01:20:46 INF] Request finished HTTP/1.1 GET https://localhost:44333/signalr-hubs/chat?id=duNpSrdGNMmyW8sYxtZy2w - 101 null null 60315.9313ms
[01:20:46 INF] Executed endpoint '/signalr-hubs/chat'
[01:20:46 INF] Request finished HTTP/1.1 GET https://localhost:44333/signalr-hubs/chat?id=rrbJRIss5Frcj0yBjxawzQ - 101 null null 60365.4161ms
[01:20:46 INF] Executed endpoint 'Blazor disconnect'
[01:20:46 INF] Request finished HTTP/2 POST https://localhost:44333/_blazor/disconnect - 200 0 null 917.267ms
[01:20:46 INF] Request starting HTTP/2 GET https://localhost:44333/swagger/favicon-32x32.png - null null
...
[01:20:46 INF] Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A'
[01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/favicon-32x32.png - 200 628 image/png 43.1911ms
It seems this is the issue: [01:20:46 INF] Request finished HTTP/2 GET https://localhost:44333/swagger/ui/index.js - 404 0 null 76.8958ms
Not sure if this is the place to report an error with ABP commercial...
I created a solution with ABP Studio and it cannot add the initial database migration.
Errors in ABP Studio:
19:27:54.359 Information Starting task execution: "Database synchronization" 19:27:54.359 Information Starting task execution: "Installing client side libraries" 19:27:54.362 Information Starting task execution: "Generating Signing-Certificate for AuthServer" 19:27:54.362 Information Starting task execution: "Creating TLS Secrets" 19:28:00.166 Information Completed task execution: "Generating Signing-Certificate for AuthServer" 19:28:01.090 Information Completed task execution: "Creating TLS Secrets" 19:28:23.857 Error Build started... Build failed. Use dotnet build to see the errors. 19:28:23.859 Information Failed task execution: "Database synchronization | Creating initial migrations" 19:28:23.859 Information ERROR: "An error has occured!" 19:28:23.859 Information ERROR DETAILS: "Failed to add migration Initial.
This is the error:
'EntityTypeBuilder<Book>' does not contain a definition for 'ConfigureByConvention' and no accessible extension method 'ConfigureByConvention' accepting a first argument of type 'EntityTypeBuilder<Book>' could be found (are you missing a using directive or an assembly reference?)
It was solved by adding the using directive in EntityFrameworkCore\AppDbContextBase.cs class:
using Volo.Abp.EntityFrameworkCore.Modeling;