Activities of "cunyong.yu@vskysoft.com"

The code for ReadExcel. razor is as follows:

@page "/upload-excel"
@using System.IO

`<Field>
    <FileEdit Changed="@OnChanged" />
</Field>`

@code {
    async Task OnChanged(FileChangedEventArgs e)
    {
        try
        {
            var file = e.Files.FirstOrDefault();
            if (file == null)
            {
                return;
            }

            using (MemoryStream result = new MemoryStream())
            {
                await file.OpenReadStream(long.MaxValue).CopyToAsync(result);
            }
        } catch (Exception exc)
        {
            Console.WriteLine(exc.Message);
        } finally
        {
            this.StateHasChanged();
        }
    }
}

This is just a simple function of selecting a local Excel file and reading it.

Some source files of your project are broken. Please fix it and share again(run abp clean and remove the node_moduels). Thanks

Sorry, my project has been encrypted by company software. In fact, this is just an empty ABP module project. You can create one locally and then copy the file "ReadExcel. razor" to open it, which can reproduce the error.

Which project?

AbpBlazorDemo.Blazor.Server.Host.

Can you share a template project that reproduces the problem?

I have sent you an email with a template project attachment, please check it.

hi

Set EnableDetailedErrors in AddHubOptions to see detail errors.

builder.Services.AddSignalR(hubOptions => 
 { 
     hubOptions.EnableDetailedErrors = true; 
 }); 

I set this in the program. cs of Blazor. Server. Host, but it is still the same error. Where can I go to see the detailed information?

Showing 21 to 25 of 25 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13