Activities of "can.ercan"

I sent an email.

Waiting for reply.

Hi,

We tried with a demo project. We created the project from abp suite. Changed the appsettings.json values from https to http. HttpHost.Api runs without a problem. We changed environment values in the angular app from https to http. The requireHttps value is set to false.

import { Environment } from '@abp/ng.core';

const baseUrl = 'http://localhost:4200';

export const environment = { production: true, application: { baseUrl, name: 'HttpTest', }, oAuthConfig: { issuer: 'http://localhost:44378', redirectUri: baseUrl, clientId: 'HttpTest_App', responseType: 'code', scope: 'offline_access HttpTest', requireHttps: false }, apis: { default: { url: 'http://localhost:44378', rootNamespace: 'HttpTest', }, }, } as Environment;

But when we tried to login the app does not redirect http:\localhost:4200. It stays in the login page without any error message. When we manually go to http:\localhost:4200 the app is not logged in and there is an error in the console:

core.js:6456 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'false'.. Find more at https://angular.io/errors/NG0100 at throwErrorIfNoChangesMode (core.js:6757) at bindingUpdated (core.js:12967) at bindingUpdated2 (core.js:12981) at bindingUpdated4 (core.js:12992) at pureFunction4Internal (core.js:25711) at Module.ɵɵpureFunction4 (core.js:25498) at HeaderComponent_Template (volo-abp.ng.theme.lepton.js:1501) at executeTemplate (core.js:9579) at refreshView (core.js:9445) at refreshComponent (core.js:10616)

Thanks, Can Ercan

  • ABP Framework version: v4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Is there any way to get the environment variables from a json file? For example if our customer has decided to change their IP address or Domain name is there any way to change configuration without rebuilding the app and deploying the files again?

import { Environment } from '@abp/ng.core';

const baseUrl = 'http://192.168.16.55:4200';

export const environment = { production: true, application: { baseUrl, name: 'AppName', }, oAuthConfig: { issuer: 'https://192.168.16.55:44321', redirectUri: baseUrl, clientId: 'AppName_App', responseType: 'code', scope: 'offline_access AppName', requireHttps: false }, apis: { default: { url: 'https://192.168.16.55:44321', rootNamespace: 'AppName', }, }

} as Environment;

Thanks, Can Ercan

  • ABP Framework version: v4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Seperated Angular
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

As I understand IdentityServer requires HTTPS connection. But when we are developing a local intranet solution this is problematic. Is there anyway to disable https requirement for identityserver? When we change the URLs in the appsettings files to http angular client can not access the identity server. Nothing happens when we click the login button. If https can't be disabled is there any alternative to IdentityServer we can use without access to source code?

Thanks, Can Ercan

Answer

ABP Framework version: v4.3 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no

When we replace the account module with the source code we get the errors below in the angular project.

Error: ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51) at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

Error: ./src/polyfills.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51) at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

Error: (webpack)-dev-server/client?http://0.0.0.0:0&sockPath=/sockjs-node Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51)39m at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

You are right trusted_connection not working. User "Local System" cannot access db without sql user definition.

We could not understand the problem because we could not see any error related to "DB connection" in the logs. We could not find the problem because we only saw the "Application is shutting down ..." log. This problem occurred because the Local System user could not access the db with "windows authentication". We were able to run the service by changing the Connection String.

Thanks for detail response and help.

We created an Abp suite App and tried the same steps without any changes to project, doesn't work

we succesfully ran an empty asp.net core 5 app in windows service with kestrel.

With the same steps we get http error 500 when used with abp suite project.

Below is the log file: 2021-03-05 13:32:23.600 +03:00 [INF] Starting IPCDataApp.HttpApi.Host. 2021-03-05 13:32:25.664 +03:00 [INF] User profile is available. Using 'C:\Users\MONSTER\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. 2021-03-05 13:32:25.739 +03:00 [INF] Loaded ABP modules:


2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Saas.SaasDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Commercial.SuiteTemplates.VoloAbpCommercialSuiteTemplatesModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.BlobStoring.AbpBlobStoringModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - IPCDataApp.IPCDataAppDomainModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Saas.Host.SaasHostApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.IdentityServer.AbpIdentityServerApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Account.AbpAccountSharedApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Sms.AbpSmsModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Account.AbpAccountPublicApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Account.AbpAccountAdminApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LanguageManagement.LanguageManagementApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - IPCDataApp.IPCDataAppApplicationModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LanguageManagement.EntityFrameworkCore.LanguageManagementEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Saas.EntityFrameworkCore.SaasEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.TextTemplateManagement.EntityFrameworkCore.TextTemplateManagementEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.BlobStoring.Database.EntityFrameworkCore.BlobStoringDatabaseEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - IPCDataApp.EntityFrameworkCore.IPCDataAppEntityFrameworkCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - IPCDataApp.EntityFrameworkCore.IPCDataAppEntityFrameworkCoreDbMigrationsModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementWebModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.AbpAspNetCoreMvcUiLeptonThemeModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Authentication.JwtBearer.AbpAspNetCoreAuthenticationJwtBearerModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Account.Public.Web.AbpAccountPublicWebModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Account.Web.AbpAccountPublicWebIdentityServerModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule 2021-03-05 13:32:25.739 +03:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule 2021-03-05 13:32:25.739 +03:00 [INF] - IPCDataApp.IPCDataAppHttpApiHostModule 2021-03-05 13:32:26.112 +03:00 [INF] Starting IdentityServer4 version 4.1.1+cebd52f5bc61bdefc262fd20739d4d087c6f961f 2021-03-05 13:32:26.792 +03:00 [INF] Using the default authentication scheme Identity.Application for IdentityServer 2021-03-05 13:32:27.182 +03:00 [INF] Initialized all ABP modules. 2021-03-05 13:32:27.232 +03:00 [INF] Now listening on: http://0.0.0.0:5050 2021-03-05 13:32:27.232 +03:00 [INF] Application started. Press Ctrl+C to shut down. 2021-03-05 13:32:27.232 +03:00 [INF] Hosting environment: Production 2021-03-05 13:32:27.232 +03:00 [INF] Content root path: E:\Development\abp\IPCDataApp\aspnet-core\src\IPCDataApp.HttpApi.Host\bin\Release\net5.0\win-x64 2021-03-05 13:32:48.591 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/index.html - - 2021-03-05 13:32:49.485 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/index.html - - - 200 - text/html;charset=utf-8 896.3092ms 2021-03-05 13:32:49.819 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/v1/swagger.json - - 2021-03-05 13:32:49.852 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/favicon-32x32.png - - 2021-03-05 13:32:49.875 +03:00 [INF] Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A' 2021-03-05 13:32:49.875 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/favicon-32x32.png - - - 200 628 image/png 22.7019ms 2021-03-05 13:32:50.260 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 440.8839ms 2021-03-05 13:33:03.990 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/index.html - - 2021-03-05 13:33:04.017 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/index.html - - - 200 - text/html;charset=utf-8 27.1017ms 2021-03-05 13:33:04.123 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/v1/swagger.json - - 2021-03-05 13:33:04.131 +03:00 [INF] Request starting HTTP/1.1 GET http://localhost:5050/swagger/favicon-32x32.png - - 2021-03-05 13:33:04.150 +03:00 [INF] Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A' 2021-03-05 13:33:04.150 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/favicon-32x32.png - - - 200 628 image/png 18.6576ms 2021-03-05 13:33:04.308 +03:00 [INF] Request finished HTTP/1.1 GET http://localhost:5050/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 184.8791ms 2021-03-05 13:33:09.840 +03:00 [INF] Application is shutting down...

  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

When i try to host the HttpApi.Host as a Windows Service i can't reach the localhost page and get Http Error 500.

i installed Microsoft.Extensions.Hosting and Microsoft.AspNetCore.Hosting nuget packages Below is my Program.cs code:

public static int Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
#if DEBUG
.MinimumLevel.Debug()
#else
.MinimumLevel.Information()
#endif
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
#if DEBUG
.WriteTo.Async(c => c.Console())
#endif
.CreateLogger();

        try
        {
            Log.Information("Starting IPCDataApp.HttpApi.Host.");
            CreateHostBuilder(args).Build().Run();
            return 0;
        }
        catch (Exception ex)
        {
            Log.Fatal(ex, "Host terminated unexpectedly!");
            return 1;
        }
        finally
        {
            Log.CloseAndFlush();
        }
    }


internal static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();

webBuilder.ConfigureKestrel(serverOptions =>
{
serverOptions.Limits.MaxConcurrentConnections = 100;
serverOptions.Limits.MaxConcurrentUpgradedConnections = 100;
serverOptions.Limits.MaxRequestBodySize = 30 \* 1024 \* 1024;
serverOptions.Limits.MinRequestBodyDataRate =
new MinDataRate(bytesPerSecond: 100,
gracePeriod: TimeSpan.FromSeconds(10));
serverOptions.Limits.MinResponseDataRate =
new MinDataRate(bytesPerSecond: 100,
gracePeriod: TimeSpan.FromSeconds(10));
serverOptions.Limits.KeepAliveTimeout =
TimeSpan.FromMinutes(2);
serverOptions.Limits.RequestHeadersTimeout =
TimeSpan.FromMinutes(1);
serverOptions.Listen(IPAddress.Any, 5050);
});
})
.UseAutofac()
.UseSerilog()
.UseWindowsService();
}

After i publish the app and create the windows service Service starts without a problem. But when i try to reach the website http:\localhost:5050 i get htpp error 500. I would be grateful if you can help with the proble,

F.Can Ercan, SW Developer Merlin Yazilim

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