Activities of "maliming"

好的, 我反馈给suite团队, 你可以使用文件流试试

private async Task<AppFileDescriptorDto> UploadFileAsync(IBrowserFile file)
{
    // 直接使用文件流,不加载到 MemoryStream
    using var stream = file.OpenReadStream(long.MaxValue);
    
    return await ContractAttachmentsAppService.UploadFileAsync(
        new RemoteStreamContent(stream, file.Name, file.ContentType));
}

你可以分享一些代码吗? 组件的和copy stream的

hi

I made some changes. Can you confirm it?

https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport/commit/4b51831f6463e41df622bd11f985eea7757debd8

Thanks

Chrome浏览器应该没有限制, 你现在得到了什么错误和异常信息?

hi

Here is an example to use the log configuration with appsettings.json

{
  "Serilog": {
    "MinimumLevel": {
      "Default": "Debug",
      "Override": {
        "Microsoft": "Information",
        "Microsoft.EntityFrameworkCore": "Warning"
      }
    },
    "WriteTo": [
      {
        "Name": "Async",
        "Args": {
          "configure": [
            {
              "Name": "File",
              "Args": { "path": "Logs/logs.txt" }
            }
          ]
        }
      },
      {
        "Name": "Async",
        "Args": {
          "configure": [
            {
              "Name": "Console"
            }
          ]
        }
      }
    ],
    "Enrich": [ "FromLogContext" ]
  }
}


using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;

namespace AbpSolution1.Web;

public class Program
{
    public async static Task<int> Main(string[] args)
    {
        Log.Logger = new LoggerConfiguration()
            .WriteTo.Async(c => c.File("Logs/logs.txt"))
            .WriteTo.Async(c => c.Console())
            .CreateBootstrapLogger();

        try
        {
            Log.Information("Starting web host.");
            var builder = WebApplication.CreateBuilder(args);
            builder.Host
                .AddAppSettingsSecretsJson()
                .UseAutofac()
                .UseSerilog((context, services, loggerConfiguration) =>
                {
                    loggerConfiguration
                        .ReadFrom.Configuration(context.Configuration)
                        .ReadFrom.Services(services)
                        .WriteTo.Async(c => c.AbpStudio(services));
                });
            await builder.AddApplicationAsync<AbpSolution1WebModule>();
            var app = builder.Build();
            await app.InitializeApplicationAsync();
            await app.RunAsync();
            return 0;
        }
        catch (Exception ex)
        {
            Log.Fatal(ex, "Host terminated unexpectedly!");
            return 1;
        }
        finally
        {
            Log.CloseAndFlush();
        }
    }
}

Thanks.

hi

System.IO.IOException: Permission denied

It seems your app doesn't have permissions to write files.

Please share your Dockerfile content.

Thanks.

hi

You can enable the Debug log first and then reproduce the error and share logs

Set .MinimumLevel.Debug() everywhere.

var loggerConfiguration = new LoggerConfiguration()
    .MinimumLevel.Debug()
    .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
    .Enrich.FromLogContext()
    .WriteTo.Async(c => c.File("Logs/logs.txt"))

Thanks

hi

I agree with you, I will share a solution and update the code in our template projects.

Thanks.

hi

Can you try to add a new folder(/Themes/LeptonX/Layouts/Application) and copy your account _Footer.cshtml in it?

Thanks.

hi

Can you share your Angular website URL and test username&password?

liming.ma@volosoft.com

Thanks

Showing 181 to 190 of 11992 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on February 17, 2026, 09:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.