Activities of "piseth"

Hi,

Is this work for you?

Yes, it is working . I want to define it in appsettings. How to do that?

Hi,

You can check the discussion here: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/700#issuecomment-745881226

You can try:

var healthChecksUiBuilder = services.AddHealthChecksUI(settings => 
{ 
    settings.AddHealthCheckEndpoint("MyProjectName Health Status", "https://yourwebsite.com/health-status"); 
}); 
 
services.MapHealthChecksUiEndpoints(options => 
{ 
    options.UIPath = "https://yourwebsite.com/health-ui"; 
    options.ApiPath = "https://yourwebsite.com/health-api"; 
}); 

Hi,

Sorry for my late reply. Thanks for your info.

If i input full url like the following. I will get an error

var healthChecksUiBuilder = services.AddHealthChecksUI(settings => { settings.AddHealthCheckEndpoint("MyProjectName Health Status", "https://yourwebsite.com/health-status"); });

services.MapHealthChecksUiEndpoints(options => { options.UIPath = "https://yourwebsite.com/health-ui"; options.ApiPath = "https://yourwebsite.com/health-api"; });

Here is error:

Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module MyProject.Web.MyProjectWebModule, MyProject.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: The value for customized path can't be null and need to start with / character. (Parameter 'ApiPath'). See the inner exception for details. ---> System.ArgumentException: The value for customized path can't be null and need to start with / character. (Parameter 'ApiPath') at Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.<>c.<EnsureValidApiOptions>b__1_0(String path, String argument) at Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.EnsureValidApiOptions(Options options) at Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapHealthChecksUI(IEndpointRouteBuilder builder, Action1 setupOptions) at MyProject.Web.HealthChecks.HealthChecksBuilderExtensions.<>c__DisplayClass4_0.<MapHealthChecksUiEndpoints>b__1(EndpointRouteBuilderContext endpointContext) in D:\app\dotnet6\Backup\MyProject - 5.2\dashboard-master\src\MyProject.Web\HealthChecks\HealthChecksBuilderExtensions.cs:line 93 at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.<>c__DisplayClass0_0.<UseConfiguredEndpoints>b__0(IEndpointRouteBuilder endpoints) at Microsoft.AspNetCore.Builder.EndpointRoutingApplicationBuilderExtensions.UseEndpoints(IApplicationBuilder builder, Action1 configure) at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.UseConfiguredEndpoints(IApplicationBuilder app, Action`1 additionalConfigurationAction) at MyProject.Web.MyProjectWebModule.OnApplicationInitialization(ApplicationInitializationContext context) in D:\app\dotnet6\Backup\MyProject - 5.2\dashboard-master\src\MyProject.Web\MyProjectWebModule.cs:line 811 at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) --- End of inner exception stack trace --- at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModulesAsync() at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app) at MyProject.Web.Program.Main(String[] args) in D:\app\dotnet6\Backup\MyProject - 5.2\dashboard-master\src\MyProject.Web\Program.cs:line 40

Hi,

I could not reproduce the problem. can you please provide the steps? thanks.

In Bindings, i want you don't provide IP address and make it "*" inside IP address? For me on port 443, i don't provide IP address. Plz see the below image

Hi,

I just publish my application on IIS and start it. When i check in the log file, i can see those error.

I have a domain name, and the following is my binding info. Please note that I have to configure binding like that, so i want to fix the following log:

2022-06-26 18:58:58.423 +03:00 [INF] Executing endpoint 'Health checks' 2022-06-26 18:58:58.428 +03:00 [INF] Executed endpoint 'Health checks' 2022-06-26 18:58:58.428 +03:00 [INF] Request finished HTTP/0.9 GET https:///health-check - - - 200 - - 8.5607ms 2022-06-26 18:59:00.180 +03:00 [INF] Request starting HTTP/0.9 GET https:///health-check - - 2022-06-26 18:59:00.184 +03:00 [WRN] Invalid URI: The hostname could not be parsed. System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at System.Uri..ctor(String uriString) at System.UriBuilder.get_Uri() at Volo.Abp.AspNetCore.Auditing.AspNetCoreAuditLogContributor.BuildUrl(HttpContext httpContext) at Volo.Abp.AspNetCore.Auditing.AspNetCoreAuditLogContributor.PreContribute(AuditLogContributionContext context) at Volo.Abp.Auditing.AuditingHelper.ExecutePreContributors(AuditLogInfo auditLogInfo)

Volo.Payment.EntityFrameworkCore No i don't see it. Plz see the below image

When I look at other project containing the version 5.2, it also doesnot have it but it works normally

By the way within the new abp version, it also shows error on IIS. My web application is not running after deploying on IIS:

Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module MyProject.Web.MyProjectWebModule, MyProject.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: The type 'qgApoZ2OmDdJqiAoXp5.L4ObZ82mStp54vqoB0A' is not a valid page. A page must define a public, non-static 'Model' property.. See the inner exception for details. ---> System.InvalidOperationException: The type 'qgApoZ2OmDdJqiAoXp5.L4ObZ82mStp54vqoB0A' is not a valid page. A page must define a public, non-static 'Model' property. at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.CreateModel(PageActionDescriptor actionDescriptor, TypeInfo pageTypeInfo) at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.OnProvidersExecuting(PageApplicationModelProviderContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorFactory.CreateCompiledDescriptor(PageActionDescriptor actionDescriptor, CompiledViewDescriptor viewDescriptor) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorProvider.OnProvidersExecuting(ActionDescriptorProviderContext context) at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.UpdateCollection() at Microsoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider.Initialize() at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.<>c__DisplayClass11_0.<Subscribe>b__0() at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func1 changeTokenProducer, Action changeTokenConsumer) at Microsoft.AspNetCore.Mvc.Routing.ActionEndpointDataSourceBase.Subscribe() at Microsoft.AspNetCore.Mvc.Routing.ControllerActionEndpointDataSource..ctor(ControllerActionEndpointDataSourceIdProvider dataSourceIdProvider, IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory, OrderedEndpointsSequenceProvider orderSequence) at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.GetOrCreateDataSource(IEndpointRouteBuilder endpoints) at Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllerRoute(IEndpointRouteBuilder endpoints, String name, String pattern, Object defaults, Object constraints, Object dataTokens) at Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule.<>c.<ConfigureServices>b__1_10(EndpointRouteBuilderContext endpointContext) at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.<>c__DisplayClass0_0.<UseConfiguredEndpoints>b__0(IEndpointRouteBuilder endpoints) at Microsoft.AspNetCore.Builder.EndpointRoutingApplicationBuilderExtensions.UseEndpoints(IApplicationBuilder builder, Action1 configure) at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.UseConfiguredEndpoints(IApplicationBuilder app, Action`1 additionalConfigurationAction) at MyProject.Web.MyProjectWebModule.OnApplicationInitialization(ApplicationInitializationContext context) in D:\app\dotnet6\MyProject - 5.3\dashboard-master\src\MyProject.Web\MyProjectWebModule.cs:line 797 at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) --- End of inner exception stack trace --- at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModulesAsync() at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app) at MyProject.Web.Program.Main(String[] args) in D:\app\dotnet6\MyProject - 5.3\dashboard-master\src\MyProject.Web\Program.cs:line 40

I guess you don't have a reference to package Volo.Payment.EntityFrameworkCore.

Can you check if have Volo.Payment.EntityFrameworkCore package in your MyProjectName.EntityFrameworkCore.csproj file?

Ok, I will check, and coming back to u

migration guide

I still get one error. "The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Volo.Payment' (are you missing an assembly reference?)"

In MyProjectDbContext.cs, it does not recognize "using Volo.Payment.EntityFrameworkCore;"

How to solve it?

Can you run the following commands in order in the directory where the solution is located?

  1. abp clean
  2. dotnet build /graphBuild

I follow your instruction. You can see the attachement

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

After running "abp update", I build my project and i get many errors:

Showing 1 to 10 of 93 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11