Activities of "Sraman"

hi

Do you have appsettings.secrets.json and AbpLicenseCode inside your app?

Can your app run successfully without window service ?

Yes. I do have appsettings.secrets.json with AbpLicenseCode. It is running fine on iis and docker without any issues.

hi

Wanted to deploy the app as a window service with kestrel server. But facing following error when starting the server,

Are there any error logs on logs.txt and Win Event Viewer?

please find the logs as below

2024-01-09 19:52:45.005 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.005 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.005 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.016 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.017 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.020 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.020 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.023 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.024 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.033 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.042 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.051 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.052 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.061 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.065 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.065 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.077 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.085 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.086 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.087 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.089 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.104 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.115 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.124 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.125 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.125 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.128 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.132 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.140 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.149 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.149 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.151 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.160 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.170 +05:30 [ERR] ABP-LIC-0021 - The path is empty. (Parameter 'path')
2024-01-09 19:52:45.371 +05:30 [INF] User profile is available. Using 'C:\Users\Lsiva\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.

  • ABP Framework version: v8.0.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Wanted to deploy the app as a window service with kestrel server. But facing following error when starting the server,

And also wanted to implement Active directory integration with it. Any suggestions would be great.

Please find my program.cs code and let me know the required change if any,

using Pentapack.MRS.Data;
using Serilog;
using Serilog.Events;
using Volo.Abp.Data;

namespace Pentapack.MRS;

public class Program
{
    public static async Task<int> Main(string[] args)
    {
        var builder = WebApplication.CreateBuilder(args);
        builder.WebHost.ConfigureKestrel(serverOptions =>
        {
            serverOptions.ListenAnyIP(5000); // http
        });
        var loggerConfiguration = new LoggerConfiguration()
#if DEBUG
            .MinimumLevel.Debug()
#else
            .MinimumLevel.Warning()
#endif
            .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
            .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
            .Enrich.FromLogContext()
            .Enrich.WithProperty("Application", "Pentapack.MRS")
            .WriteTo.Async(c => c.File(builder.Configuration["App:LogFilePath"]))
            .WriteTo.Async(c => c.Console());

        if (IsMigrateDatabase(args))
        {
            loggerConfiguration.MinimumLevel.Override("Volo.Abp", LogEventLevel.Warning);
            loggerConfiguration.MinimumLevel.Override("Microsoft", LogEventLevel.Warning);
        }

        Log.Logger = loggerConfiguration.CreateLogger();

        try
        {
            builder.Host.AddAppSettingsSecretsJson()
                .UseAutofac()
                .UseSerilog();
            if (IsMigrateDatabase(args))
            {
                builder.Services.AddDataMigrationEnvironment();
            }
            builder.Services.AddWindowsService();
            await builder.AddApplicationAsync<MRSModule>();
            var app = builder.Build();
            await app.InitializeApplicationAsync();

            if (IsMigrateDatabase(args))
            {
                await app.Services.GetRequiredService<MRSDbMigrationService>().MigrateAsync();
                return 0;
            }

            Log.Information("Starting Pentapack.MRS.");
            await app.RunAsync();
            return 0;
        }
        catch (Exception ex)
        {
            if (ex is HostAbortedException)
            {
                throw;
            }

            Log.Fatal(ex, "Pentapack.MRS terminated unexpectedly!");
            return 1;
        }
        finally
        {
            Log.CloseAndFlush();
        }
    }

    private static bool IsMigrateDatabase(string[] args)
    {
        return args.Any(x => x.Contains("--migrate-database", StringComparison.OrdinalIgnoreCase));
    }
}

Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'.

Can you try using HTTPS?

Yes. If I use https, I'm able to upload files. But delete is throwing the same error.

I could spot the following error on console,

DELETE http://localhost/api/file-management/file-descriptor/bb52d808-98ac-1344-4e8c-3a0f863fad33 405 (Method Not Allowed)

  • ABP Framework version: v7.4.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: An error has occurred! Error detail not sent by server.
  • Steps to reproduce the issue: File Management on upload facing above exception on IIS hosted site. But working fine on local.

Please find the logs and screenshot for more details.

2023-12-16 08:37:48.383 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/FileManagement - - - 200 - text/html;+charset=utf-8 387.0893ms 2023-12-16 08:37:48.413 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/__bundles/LeptonX.Global.3A299C03CAD1EEF3E34288B6588D15E3.css?_v=638383090412732429 - - 2023-12-16 08:37:48.414 +01:00 [INF] The file /__bundles/LeptonX.Global.3A299C03CAD1EEF3E34288B6588D15E3.css was not modified 2023-12-16 08:37:48.415 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/__bundles/368F0E1C031CC50BE5261FDB34A71937.A89B1E0F2BC9245444906D70372E112D.css?_v=638383090681184854 - - 2023-12-16 08:37:48.415 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/__bundles/LeptonX.Global.3A299C03CAD1EEF3E34288B6588D15E3.css?_v=638383090412732429 - - - 304 - text/css 2.2149ms 2023-12-16 08:37:48.419 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/api/account/profile-picture-file/9b94faaa-2355-1b22-636a-3a0504007a5a - - 2023-12-16 08:37:48.420 +01:00 [INF] Sending file. Request path: '/__bundles/368F0E1C031CC50BE5261FDB34A71937.A89B1E0F2BC9245444906D70372E112D.css'. Physical path: 'N/A' 2023-12-16 08:37:48.421 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/__bundles/LeptonX.Global.DAA677D32493B4B8AB27E73A1D333C92.js?_v=638383090433087174 - - 2023-12-16 08:37:48.421 +01:00 [INF] The file /__bundles/LeptonX.Global.DAA677D32493B4B8AB27E73A1D333C92.js was not modified 2023-12-16 08:37:48.421 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/__bundles/LeptonX.Global.DAA677D32493B4B8AB27E73A1D333C92.js?_v=638383090433087174 - - - 304 - application/javascript 0.8021ms 2023-12-16 08:37:48.423 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/Abp/ApplicationLocalizationScript?cultureName=en - - 2023-12-16 08:37:48.426 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/Abp/ApplicationConfigurationScript - - 2023-12-16 08:37:48.435 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/__bundles/79BF8EA6E72A80A6DE5808479D5DF35A.BAF7758C7F93EBB1950AEE13138458A8.js?_v=638383090683785249 - - 2023-12-16 08:37:48.436 +01:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.436 +01:00 [INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationLocalizationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController (Volo.Abp.AspNetCore.Mvc). 2023-12-16 08:37:48.438 +01:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.438 +01:00 [INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc). 2023-12-16 08:37:48.439 +01:00 [INF] Sending file. Request path: '/__bundles/79BF8EA6E72A80A6DE5808479D5DF35A.BAF7758C7F93EBB1950AEE13138458A8.js'. Physical path: 'N/A' 2023-12-16 08:37:48.440 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/Abp/ServiceProxyScript - - 2023-12-16 08:37:48.445 +01:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.445 +01:00 [INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). 2023-12-16 08:37:48.456 +01:00 [INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' 2023-12-16 08:37:48.456 +01:00 [INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). 2023-12-16 08:37:48.467 +01:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2023-12-16 08:37:48.468 +01:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 23.2526ms 2023-12-16 08:37:48.468 +01:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.469 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/Abp/ServiceProxyScript - - - 200 44429 application/javascript 29.1305ms 2023-12-16 08:37:48.475 +01:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. 2023-12-16 08:37:48.476 +01:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2023-12-16 08:37:48.477 +01:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 38.808ms 2023-12-16 08:37:48.477 +01:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.477 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/Abp/ApplicationConfigurationScript - - - 200 8839 application/javascript 50.8338ms 2023-12-16 08:37:48.478 +01:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. 2023-12-16 08:37:48.483 +01:00 [INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 26.3274ms 2023-12-16 08:37:48.483 +01:00 [INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' 2023-12-16 08:37:48.485 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/api/account/profile-picture-file/9b94faaa-2355-1b22-636a-3a0504007a5a - - - 200 1370 image/jpeg 66.0675ms 2023-12-16 08:37:48.487 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/__bundles/368F0E1C031CC50BE5261FDB34A71937.A89B1E0F2BC9245444906D70372E112D.css?_v=638383090681184854 - - - 200 111763 text/css 72.0014ms 2023-12-16 08:37:48.490 +01:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2023-12-16 08:37:48.497 +01:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 60.6632ms 2023-12-16 08:37:48.497 +01:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2023-12-16 08:37:48.508 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/Abp/ApplicationLocalizationScript?cultureName=en - - - 200 81142 application/javascript 84.6753ms 2023-12-16 08:37:48.529 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/__bundles/79BF8EA6E72A80A6DE5808479D5DF35A.BAF7758C7F93EBB1950AEE13138458A8.js?_v=638383090683785249 - - - 200 889826 application/javascript 93.7422ms 2023-12-16 08:37:48.549 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/api/app/customers - - 2023-12-16 08:37:48.556 +01:00 [INF] Executing endpoint 'Pentapack.MRS.Customers.CustomersAppService.GetListAsync (Pentapack.MRS)' 2023-12-16 08:37:48.557 +01:00 [INF] Route matched with {action = "GetList", controller = "Customers", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Application.Dtos.PagedResultDto1[Pentapack.MRS.Customers.CustomerDto]] GetListAsync(Pentapack.MRS.Customers.GetCustomersInput) on controller Pentapack.MRS.Customers.CustomersAppService (Pentapack.MRS). 2023-12-16 08:37:48.579 +01:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto1[[Pentapack.MRS.Customers.CustomerDto, Pentapack.MRS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]'. 2023-12-16 08:37:48.579 +01:00 [INF] Executed action Pentapack.MRS.Customers.CustomersAppService.GetListAsync (Pentapack.MRS) in 22.1759ms 2023-12-16 08:37:48.579 +01:00 [INF] Executed endpoint 'Pentapack.MRS.Customers.CustomersAppService.GetListAsync (Pentapack.MRS)' 2023-12-16 08:37:48.580 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/api/app/customers - - - 200 - application/json;+charset=utf-8 31.2180ms 2023-12-16 08:37:48.861 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/api/file-management/directory-descriptor?filter=&id=&sorting=name%20asc&skipCount=0&maxResultCount=10 application/json - 2023-12-16 08:37:48.862 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/api/file-management/directory-descriptor/sub-directories?parentId= application/json - 2023-12-16 08:37:48.874 +01:00 [INF] Executing endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:48.874 +01:00 [INF] Executing endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:48.881 +01:00 [INF] Route matched with {area = "fileManagement", controller = "DirectoryDescriptors", action = "GetContent", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Application.Dtos.PagedResultDto1[Volo.FileManagement.Directories.DirectoryContentDto]] GetContentAsync(Volo.FileManagement.Directories.DirectoryContentRequestInput) on controller Volo.FileManagement.Directories.DirectoryDescriptorController (Volo.FileManagement.HttpApi). 2023-12-16 08:37:48.884 +01:00 [INF] Route matched with {area = "fileManagement", controller = "DirectoryDescriptors", action = "GetList", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Application.Dtos.ListResultDto1[Volo.FileManagement.Directories.DirectoryDescriptorInfoDto]] GetListAsync(System.Nullable1[System.Guid]) on controller Volo.FileManagement.Directories.DirectoryDescriptorController (Volo.FileManagement.HttpApi). 2023-12-16 08:37:49.477 +01:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.ListResultDto1[[Volo.FileManagement.Directories.DirectoryDescriptorInfoDto, Volo.FileManagement.Application.Contracts, Version=7.4.2.0, Culture=neutral, PublicKeyToken=null]]'. 2023-12-16 08:37:49.482 +01:00 [INF] Executed action Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi) in 597.2955ms 2023-12-16 08:37:49.482 +01:00 [INF] Executed endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetListAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:49.498 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/api/file-management/directory-descriptor/sub-directories?parentId= application/json - - 200 - application/json;+charset=utf-8 635.9673ms 2023-12-16 08:37:49.579 +01:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto1[[Volo.FileManagement.Directories.DirectoryContentDto, Volo.FileManagement.Application.Contracts, Version=7.4.2.0, Culture=neutral, PublicKeyToken=null]]'. 2023-12-16 08:37:49.606 +01:00 [INF] Executed action Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi) in 725.6851ms 2023-12-16 08:37:49.606 +01:00 [INF] Executed endpoint 'Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:49.632 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/api/file-management/directory-descriptor?filter=&id=&sorting=name%20asc&skipCount=0&maxResultCount=10 application/json - - 200 - application/json;+charset=utf-8 771.3153ms 2023-12-16 08:37:58.526 +01:00 [INF] Request starting HTTP/1.1 POST http://localhost/api/file-management/file-descriptor/pre-upload-info application/json 53 2023-12-16 08:37:58.550 +01:00 [INF] Executing endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:58.557 +01:00 [INF] Route matched with {area = "fileManagement", controller = "FileDescriptors", action = "GetPreInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoDto]] GetPreInfoAsync(System.Collections.Generic.List1[Volo.FileManagement.Files.FileUploadPreInfoRequest]) on controller Volo.FileManagement.Files.FileDescriptorController (Volo.FileManagement.HttpApi). 2023-12-16 08:37:58.577 +01:00 [WRN] The antiforgery token could not be decrypted. 2023-12-16 08:37:58.584 +01:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. 2023-12-16 08:37:58.592 +01:00 [INF] Executing StatusCodeResult, setting HTTP status code 400 2023-12-16 08:37:58.593 +01:00 [INF] Executed action Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi) in 35.9226ms 2023-12-16 08:37:58.593 +01:00 [INF] Executed endpoint 'Volo.FileManagement.Files.FileDescriptorController.GetPreInfoAsync (Volo.FileManagement.HttpApi)' 2023-12-16 08:37:58.620 +01:00 [INF] Request finished HTTP/1.1 POST http://localhost/api/file-management/file-descriptor/pre-upload-info application/json 53 - 302 - - 94.6219ms 2023-12-16 08:37:58.624 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost/Error?httpStatusCode=400 - - 2023-12-16 08:37:58.631 +01:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2023-12-16 08:37:58.646 +01:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). 2023-12-16 08:37:58.697 +01:00 [INF] Executing ViewResult, running view ~/Views/Error/Default.cshtml. 2023-12-16 08:37:58.727 +01:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. 2023-12-16 08:37:58.804 +01:00 [INF] Executed ViewResult - view ~/Views/Error/Default.cshtml executed in 113.5833ms. 2023-12-16 08:37:58.804 +01:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 158.3913ms 2023-12-16 08:37:58.804 +01:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2023-12-16 08:37:58.810 +01:00 [INF] Request finished HTTP/1.1 GET http://localhost/Error?httpStatusCode=400 - - - 400 - text/html;+charset=utf-8 186.0299ms

  • ABP Framework version: v4.7.1

  • UI Type: MVC

  • Database System: EF Core (SQL Server)

  • **Tiered (for MVC) **: no

  • Exception message and full stack trace: This site can’t be reachedCheck if there is a typo in tenantA.asw-raas-dev-web.azurewebsites.net. If spelling is correct, try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN

  • Steps to reproduce the issue:

Tryring to implement a url based tenant resolver using subdomain resolver, followed the below article, https://docs.abp.io/en/abp/latest/Multi-Tenancy

And it was working fine on my local with following url, https://tenantA.localhost:44344/ But I'm getting https not secured error on browser for subdomain url, may I know how can I resolve this?

But its not working with my staging environment which was deployed on azure web apps with the following url, https://tenantA.asw-raas-dev-web.azurewebsites.net/ And I'm getting the following error,

Following was the code change

` Uri myUri = new Uri("https://asw-raas-dev-web.azurewebsites.net/");
-----PreConfigureServices---------
 PreConfigure&lt;AbpOpenIddictWildcardDomainOptions&gt;(options =>
     {
         options.EnableWildcardDomainSupport = true;
         options.WildcardDomainsFormat.Add("https://{0}." + myUri.Host);
     });

-------ConfigureServices---------
  Configure&lt;AbpTenantResolveOptions&gt;(options =>
  {
      options.AddDomainTenantResolver("{0}."+ myUri.Host);
  });`

Am I missing anything?

Need feedback or suggestions on this.

Even I faced the same issue while I upgraded from 7.3 to 7.4. And it was because some new tables have been added and it was causing the issue. It resolved when I ran migration.

But facing difficulty in applying this migration changes to my production? Is there any way where we can migrate the schema changes on OnPostApplicationInitializationAsync? Because we cant manually do this on our customers DB.

Hello Sraman,

Please do have look to this similar ticket https://support.abp.io/QA/Questions/3296/Integration-with-SendGrid

You just need to change email settings like https://docs.abp.io/en/abp/latest/Emailing#email-settings

Please do let me know if anything else needed

Thank you, Anjali

OK Thanks. How can we change the existing email templates for forgot password?

  • ABP Framework version: v7.3.3
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Need to send mails for password recovery, etc.

Need help on integrating sendgrid as a email service into the existing application.

Kindly share some reference or samples on this.

Hi

you need to add the package.json dependencies in the main web module only, in that way it will be accessible to your custom module project

Any reference please?

Actually I want to add one of my page into feature, so that I can assign access for partiular user and not for all. For that purpose I thought of going with module. If adding a page to the feature it would be good as well.

Showing 21 to 30 of 67 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11