Closed haoxj0823 closed 9 months ago
hi
How about without abp?
hi
How about without abp?
When the code related to ABP is commented out, it can work correctly.
using BlazorServerTestProject;
using BlazorServerTestProject.Data;
using Volo.Abp;
var builder = WebApplication.CreateBuilder(args);
// Abp
// builder.Host.UseAutofac();
// builder.Services.AddApplication<BlazorServerModule>();
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSingleton<WeatherForecastService>();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");
app.Run();
TestProject URL https://github.com/haoxj0823/BlazorServerTestProject
Your test code gets 404 error first.
GET https://localhost:7258/pages/index.razor.js net::ERR_ABORTED 404 (Not Found)
Is there an existing issue for this?
Description
When using JSRuntime.InvokeAsync<byte[]>("readByteArray") in BlazorServer, the following exception occurs:
In TargetFramework 7.0 and ABP 7.3.0, it is an exception, in TargetFramework 6.0 and ABP 6.0.3, it is normal, but in TargetFramework 7.0 and ABP 6.0.3, it is an exception.
The BlazorServer template provided by ABP also has the same problem. I used the BlazorServer template provided by dotnet and used ABP in the smallest way, only referencing the Volo.Abp.Autofac package, and the problem is the same.
TestProject URL https://github.com/haoxj0823/BlazorServerTestProject
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
7.3.0
User Interface
Blazor Server
Database Provider
None/Others
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response