Open Closed

Creating Blazor WASM solution (abp new PruebaAbp -u Blazor) causes unhandled error, but creating MVC solution (abp new PruebaAbp -u Blazor) project doesn't cause problem #7668


User avatar
0
panasosa created
  • ABP Framework version: v8.2.1
  • UI Type: Blazor WASM / Blazor
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:"An unhandled error has ocurred"
  • Steps to reproduce the issue: 1) Generate ABP solution with => abp new PruebaAbp -u Blazor 2) run PruebaAbp.DbMigrator => creates database correctly 3) run PruebaAbp.Blazor => Causes error " An unhandled error has ocurred" 4) NOTE: When created project with command abp new PruebaAbp -t => Project runs correctly

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[63] User profile is available. Using 'C:\Users\Alex2\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. info: Microsoft.Hosting.Lifetime[14] Now listening on: https://localhost:44330 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development info: Microsoft.Hosting.Lifetime[0] Content root path: D:\PaydayLicense\PaydayLicense5\src\PruebaAbp.Blazor info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET https://localhost/_framework/debug/ws-proxy?browser=ws%3A%2F%2F127.0.0.1%3A51486%2Fdevtools%2Fbrowser%2Fe2411ad7-0516-411a-a5bb-38445f72b0a1 - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET https://localhost/_framework/debug/ws-proxy?browser=ws%3A%2F%2F127.0.0.1%3A51486%2Fdevtools%2Fbrowser%2Fe2411ad7-0516-411a-a5bb-38445f72b0a1 - 302 0 - 533.1477ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/ - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint '/ (/)' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint '/ (/)' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/ - 200 - text/html;+charset=utf-8 303.2321ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/aspnetcore-browser-refresh.js - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/blazor.web.js - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Blazor web static files' info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /_framework/blazor.web.js was not modified info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/aspnetcore-browser-refresh.js - 200 13768 application/javascript;+charset=utf-8 35.9298ms info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Blazor web static files' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/blazor.web.js - 304 - text/javascript 41.5882ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_vs/browserLink - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_vs/browserLink - 200 - text/javascript;+charset=UTF-8 79.0940ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/dotnet.js - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /_framework/dotnet.js.gz was not modified info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET https://localhost:44330/bootstrap.bundle.min.js.map; - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/dotnet.js.gz - 304 - text/javascript 61.9424ms info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET https://localhost:44330/bootstrap.bundle.min.js.map; - 404 0 - 48.2050ms info: Microsoft.AspNetCore.Hosting.Diagnostics[16] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://localhost:44330/bootstrap.bundle.min.js.map;, Response status code: 404 info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/blazor.boot.json - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/bootstrap.bundle.min.js.map; - - - info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /_framework/blazor.boot.json.gz was not modified info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET https://localhost:44330/_framework/dotnet.js.map - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/bootstrap.bundle.min.js.map; - 404 0 - 3.3171ms info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/blazor.boot.json.gz - 304 - application/json 35.4290ms info: Microsoft.AspNetCore.Hosting.Diagnostics[16] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://localhost:44330/bootstrap.bundle.min.js.map;, Response status code: 404 info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/dotnet.runtime.8.0.5.db1pdec30k.js - - - info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/_framework/dotnet.native.8.0.5.3q2ls8fair.js - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /_framework/dotnet.native.8.0.5.3q2ls8fair.js.gz was not modified info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /_framework/dotnet.runtime.8.0.5.db1pdec30k.js.gz was not modified info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/appsettings.Development.json - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:44330/appsettings.json - - - info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /appsettings.Development.json was not modified info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/dotnet.runtime.8.0.5.db1pdec30k.js.gz - 304 - text/javascript 155.0387ms info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/appsettings.Development.json - 304 - application/json 146.7485ms info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /appsettings.json was not modified info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/appsettings.json - 304 - application/json 88.6783ms info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/2 GET https://localhost:44330/_framework/dotnet.native.8.0.5.3q2ls8fair.js.gz - 304 - text/javascript 230.8899ms info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] Sending file. Request path: '/_framework/dotnet.js.map.gz'. Physical path: 'D:\PaydayLicense\PaydayLicense5\src\PruebaAbp.Blazor.Client\bin\Debug\net8.0\wwwroot_framework\dotnet.js.map.gz' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET https://localhost:44330/_framework/dotnet.js.map.gz - 200 19182 text/plain 305.7169ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET https://localhost:44330/_framework/dotnet.runtime.js.map - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] Sending file. Request path: '/_framework/dotnet.runtime.js.map.gz'. Physical path: 'D:\PaydayLicense\PaydayLicense5\src\PruebaAbp.Blazor.Client\bin\Debug\net8.0\wwwroot_framework\dotnet.runtime.js.map.gz' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET https://localhost:44330/_framework/dotnet.runtime.js.map.gz - 200 102587 text/plain 23.5869ms


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Generate ABP solution with => abp new PruebaAbp -u Blazor 2) run PruebaAbp.DbMigrator => creates database correctly 3) run PruebaAbp.Blazor => Causes error " An unhandled error has ocurred" 4)

    An unhandled error has ocurred

    What are backend logs?

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09