Open Closed

After Upgrading to ABP Version5 and dotnet6, 1/ dntcaptcha not working on the existing Abp Project and 2/ Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0) #2298


User avatar
0
piseth created
  • ABP Framework version: v5
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

31 Answer(s)
  • User Avatar
    0
    piseth created

    After Upgrading to ABP Version5 and dotnet6, I have the following problems: 1/ dntcaptcha not working on the existing Abp Project It was working fine with the Abp version 4.4 and botnet 5, but now It does not show captcha image

    2/ Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0) I update the Abp Suite and I run abp suite to create a new complete application using with Oracle. After creating the application successfully, I open it in the Visual Studio for Mac (Preview) and it starts to resolve my application. It shows errors Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0) In the Nuget, the latest version is 4.4.4. I tried to install this version but It fails because (I think) it might be this reason: .EntityFrameworkCore -> Volo.Abp.EntityFrameworkCore.Oracle 4.4.4 -> Oracle.EntityFrameworkCore 5.21.3 -> Microsoft.EntityFrameworkCore.Relational (>= 5.0.6 && < 6.0.0). Checking compatibility of packages on net6.0.

    Please note: I am using Visual Studio for Mac (Preview) because of the botnet 6 installed.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    1/ dntcaptcha not working on the existing Abp Project

    Can you share the error logs?

    2/ Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0)

    See https://github.com/abpframework/abp/issues/10957, we will publish the Nuget Package soon.

  • User Avatar
    0
    piseth created

    Hi,

    1/ dntcaptcha not working on the existing Abp Project

    Can you share the error logs?

    2/ Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0)

    See https://github.com/abpframework/abp/issues/10957, we will publish the Nuget Package soon.

    I am sorry to reply you late. 1/ By the way relating to DNTCaptcha, it does not show the image number when i upgrade to latest version. Currently i use the version 4.1.0 (which it is working). I will retest with the new version Volo.Abp.EntityFrameworkCore.Oracle and dotnet 6

    2/ About the new version Volo.Abp.EntityFrameworkCore.Oracle, do you have any update? 3/ Right now i am facing with this error after running dotnet ef migrations add Created_Table_Entity Failed to initialize CoreCLR, HRESULT: 0x80004005

    It is not working smoothly like before. Could you help ? Please note: I am developing on Visual Studion for Macbook and it had been working normally when i run " dotnet ef migrations add Created_Table_Entity"

  • User Avatar
    0
    piseth created

    Hi,

    1/ dntcaptcha not working on the existing Abp Project

    Can you share the error logs?

    2/ Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0)

    See https://github.com/abpframework/abp/issues/10957, we will publish the Nuget Package soon.

    I am sorry to reply you late. 1/ By the way relating to DNTCaptcha, it does not show the image number when i upgrade to latest version. Currently i use the version 4.1.0 (which it is working). I will retest with the new version Volo.Abp.EntityFrameworkCore.Oracle and dotnet 6

    2/ About the new version Volo.Abp.EntityFrameworkCore.Oracle, do you have any update? 3/ Right now i am facing with this error after running dotnet ef migrations add Created_Table_Entity Failed to initialize CoreCLR, HRESULT: 0x80004005

    It is not working smoothly like before. Could you help ? Please note: I am developing on Visual Studion for Macbook and it had been working normally when i run " dotnet ef migrations add Created_Table_Entity"

    @liangshiwei: I can fix now the problem with Failed to initialize CoreCLR, HRESULT: 0x80004005 By the way, right now in order to run add migrations and database update, i have to run use the following command:

    myname@MacBook-Pro MyProject.EntityFrameworkCore% dotnet ef migrations add Created_Table_Entity --startup-project ../MyProject.Web --project ../MyProject.EntityFrameworkCore.DbMigrations -c MyProjectMigrationsDbContext

    myname@MacBook-Pro MyProject.EntityFrameworkCore % dotnet ef database update --startup-project ../MyProject.Web --project ../MyProject.EntityFrameworkCore.DbMigrations -c MyProjectMigrationsDbContext

    But it is OK because i can make my project working. However, I'd like to know the availability of the new version of Volo.Abp.EntityFrameworkCore.Oracle working with dotnet 6, so i can update my current ABP to the version 5 with dotnet 6 again; after that I will retest my application with DNTCaptcha and other dependencies.

    Thanks Happy Christmas

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi 👋

    Volo.Abp.EntityFrameworkCore.Oracle is not currently available for ABP 5.0. It will probably be available in the next version.

    I have two questions:

    1. Do you get an error when you run YourProjectName.DbMigrator project after successfully running the dotnet ef migrations add ... command?
    2. Do you get the error only when using the Oracle database in ABP 5.0?
  • User Avatar
    0
    piseth created

    Hi 👋

    Volo.Abp.EntityFrameworkCore.Oracle is not currently available for ABP 5.0. It will probably be available in the next version.

    I have two questions:

    1. Do you get an error when you run YourProjectName.DbMigrator project after successfully running the dotnet ef migrations add ... command?
    2. Do you get the error only when using the Oracle database in ABP 5.0?

    1/ It was error like the following because i run from Visual Studio for Mac. Your startup project 'MyProject.EntityFrameworkCore' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.

    To manage adding migration, i have to run the following command:

    myname@MacBook-Pro MyProject.EntityFrameworkCore% dotnet ef migrations add Created_Table_Entity --startup-project ../MyProject.Web --project ../MyProject.EntityFrameworkCore.DbMigrations -c MyProjectMigrationsDbContext

    myname@MacBook-Pro MyProject.EntityFrameworkCore % dotnet ef database update --startup-project ../MyProject.Web --project ../MyProject.EntityFrameworkCore.DbMigrations -c MyProjectMigrationsDbContext

    I think this is no issue for me.

    2/ when i upgrade to ABP 5 and dotnet 6, i run abp suite and choosing Oracle database. I get the following error:

    Unable to find package Volo.Abp.EntityFrameworkCore.Oracle with version (>=5.0.0) I don't test the rest of other existing dependencies in my Abp project yet (for the version 5)

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    As you may have noticed, we are getting this error right now because of the Volo.Abp.EntityFrameworkCore.Oracle package is not available for ABP 5.0.* .

    Let's leave this issue open if you want so you can reply after the package is available for ABP 5.0.* ?

  • User Avatar
    0
    piseth created

    As you may have noticed, we are getting this error right now because of the Volo.Abp.EntityFrameworkCore.Oracle package is not available for ABP 5.0.* .

    Let's leave this issue open if you want so you can reply after the package is available for ABP 5.0.* ?

    Yes, please leave this ticket open. Currently i am busy. When i am abit free i will upgrade to ABP 5 again and do more checking and testing. By the way, is it mandatory to use Volo.Abp.EntityFrameworkCore.Oracle version 5 with ABP 5.0 and dotnet 6?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Yes, mandatory, if the application uses ABP 5.0.*'s packages, Volo.Abp.EntityFrameworkCore.Oracle package should also have 5.0.* version.

  • User Avatar
    0
    piseth created

    Hello, Please don't close this ticket yet. I will use this ticket for checking and verifying the new version of ORACLE Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please don't close this ticket yet.

    No problem.

  • User Avatar
    0
    piseth created

    Hello sir,

    Happy New Year.

    The new version of Volo.Abp.EntityFrameworkCore.Oracle is now available?

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes, it available now.

    https://www.nuget.org/packages/Volo.Abp.EntityFrameworkCore.Oracle/

  • User Avatar
    0
    piseth created

    Hi,

    Yes, it available now.

    https://www.nuget.org/packages/Volo.Abp.EntityFrameworkCore.Oracle/

    Thank you. Let me test it and verify it. If i get any problem, i will come back to you.

  • User Avatar
    0
    piseth created

    Hello,

    In the root folder of my existing project, i run the command "abp update" in terminal. It shows success. When I open my existing project in the Visual Studio, it restore packages. However, i get the following error. Please help me.

    *Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.FeatureManagement.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.Identity.Pro.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.LanguageManagement.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.LeptonTheme.Management.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.PermissionManagement.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.SettingManagement.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.TextTemplateManagement.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Saas.Domain.Shared 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.GlobalFeatures 5.1.1 -> Volo.Abp.VirtualFileSystem 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.AuditLogging.Domain.Shared 5.1.1 -> Volo.Abp.Localization 5.1.1 -> Volo.Abp.VirtualFileSystem 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.BlobStoring.Database.Domain.Shared 5.1.1 -> Volo.Abp.Validation 5.1.1 -> Volo.Abp.Localization 5.1.1 -> Volo.Abp.VirtualFileSystem 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 6.0.0 to 5.0.13. Reference the package directly from the project to select a different version. Dashboard.Domain.Shared -> Volo.Abp.IdentityServer.Domain.Shared 5.1.1 -> Volo.Abp.Validation 5.1.1 -> Volo.Abp.Localization 5.1.1 -> Volo.Abp.VirtualFileSystem 5.1.1 -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) Dashboard.Domain.Shared -> Microsoft.Extensions.FileProviders.Embedded (>= 5.0.0) Restore failed. *

  • User Avatar
    0
    piseth created

    Hello,

    Now i manage to restore its packages successfully. However, i get the follow 3 errors:

    /Users/pisethsan/Documents/projects/dashboard/src/Dashboard.Domain/IdentityServer/IdentityServerDataSeedContributor.cs(54,54): Error CS1061: 'IApiScopeRepository' does not contain a definition for 'GetByNameAsync' and no accessible extension method 'GetByNameAsync' accepting a first argument of type 'IApiScopeRepository' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Dashboard.Domain)

    /Users/pisethsan/Documents/projects/dashboard/test/Dashboard.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs(26,26): Error CS0246: The type or namespace name 'IProfileAppService' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Dashboard.HttpApi.Client.ConsoleTestApp)

    /Users/pisethsan/Documents/projects/dashboard/test/Dashboard.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs(13,13): Error CS0246: The type or namespace name 'IProfileAppService' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Dashboard.HttpApi.Client.ConsoleTestApp)

  • User Avatar
    0
    piseth created

    Hello,

    Now i manage to restore its packages successfully.
    However, i get the follow 3 errors:

    /Users/pisethsan/Documents/projects/dashboard/src/Dashboard.Domain/IdentityServer/IdentityServerDataSeedContributor.cs(54,54): Error CS1061: 'IApiScopeRepository' does not contain a definition for 'GetByNameAsync' and no accessible extension method 'GetByNameAsync' accepting a first argument of type 'IApiScopeRepository' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Dashboard.Domain)

    /Users/pisethsan/Documents/projects/dashboard/test/Dashboard.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs(26,26): Error CS0246: The type or namespace name 'IProfileAppService' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Dashboard.HttpApi.Client.ConsoleTestApp)

    /Users/pisethsan/Documents/projects/dashboard/test/Dashboard.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs(13,13): Error CS0246: The type or namespace name 'IProfileAppService' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Dashboard.HttpApi.Client.ConsoleTestApp)

    Hello,

    I manage to solve the above 3 errors, but now i get this following error:

    /Users/pisethsan/Documents/projects/dashboard/src/Dashboard.Domain/IdentityServer/IdentityServerDataSeedContributor.cs(54,54): Error CS1061: 'IApiScopeRepository' does not contain a definition for 'GetByNameAsync' and no accessible extension method 'GetByNameAsync' accepting a first argument of type 'IApiScopeRepository' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Dashboard.Domain)

  • User Avatar
    0
    piseth created

    Hello,

    Now I manage to build my project successfully, but I cannot start my application. How to solve the following error?

    PublicKeyToken=adb9793829ddae60' does not have an implementation. at Microsoft.EntityFrameworkCore.InMemory.Infrastructure.Internal.InMemoryOptionsExtension.get_Info() at Microsoft.EntityFrameworkCore.DbContextOptions.GetHashCode() at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd[TArg](TKey key, Func3 valueFactory, TArg factoryArgument) at Microsoft.EntityFrameworkCore.Internal.ServiceProviderCache.GetOrAdd(IDbContextOptions options, Boolean providerRequired) at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options) at lambda_method34(Closure , Object[] ) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action1 next) at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) --- End of inner exception stack trace --- at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.SharingMiddleware.<>c__DisplayClass5_0.<Execute>b__0() at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid id, Func1 creator) at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid primaryId, Nullable1 qualifyingId, Func1 creator) at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at HealthChecks.UI.Core.HostedService.UIInitializationHostedService.InitializeDatabase(IServiceProvider sp) at HealthChecks.UI.Core.HostedService.UIInitializationHostedService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at Dashboard.Web.Program.Main(String[] args) in /Users/pisethsan/Documents/projects/dashboard/src/Dashboard.Web/Program.cs:line 31 The program '[15549] dotnet' has exited with code 0 (0x0).

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Here are some of the same topics, can you check them? https://stackoverflow.com/questions/62763225/i-get-an-error-when-i-add-migration-using-entity-framework-core

  • User Avatar
    0
    piseth created

    Hi,

    Here are some of the same topics, can you check them? https://stackoverflow.com/questions/62763225/i-get-an-error-when-i-add-migration-using-entity-framework-core

    now i have this error:

    AbpException: Could not find the bundle file '/libs/datatables.net-bs5/css/dataTables.bootstrap5.css' for the bundle 'Lepton.Global'!

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Try abp install-libs

    https://github.com/abpframework/abp/blob/dev/docs/en/Migration-Guides/Abp-5-0-MVC.md#use-install-libs-by-default

  • User Avatar
    0
    piseth created

    Try abp install-libs

    https://github.com/abpframework/abp/blob/dev/docs/en/Migration-Guides/Abp-5-0-MVC.md#use-install-libs-by-default

    I try the abp install-libs and now i can run my application, but I have a problem with DNTCaptcha. Could you please help me solving it? GET https://localhost:44385/DNTCaptchaImage/Show?data=uc-XADIWBALybkfq-Jz6AIoCEzZMZdfxiCdhb_9sblBIoJ7Ctu5x-_nQ1ZbPgVgwUxqZt1PLsbBoqr0TCyfpBQ 400 (Bad Request)

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    This issue does not appear to be related to ABP. I found the following issue with short research and I wanted to share it in case it might help.

    https://github.com/VahidN/DNTCaptcha.Core/issues/96

    See also: https://community.abp.io/articles/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    This issue does not appear to be related to ABP. I found the following issue with short research and I wanted to share it in case it might help.

    https://github.com/VahidN/DNTCaptcha.Core/issues/96

    See also: https://community.abp.io/articles/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n

  • User Avatar
    0
    piseth created

    This issue does not appear to be related to ABP. I found the following issue with short research and I wanted to share it in case it might help.

    https://github.com/VahidN/DNTCaptcha.Core/issues/96

    See also: https://community.abp.io/articles/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n

    Thank you so much.

    I manage to fix successfully to show the Captcha image, but with the new version I have to write some extra code to validate the captcha number in Login.cshtml. So i try to write code like below:

    public class LoginModel : PageModel {

        private readonly IDNTCaptchaValidatorService _validatorService;
        private readonly DNTCaptchaOptions _captchaOptions;
    
        public LoginModel(
            IDNTCaptchaValidatorService validatorService,
            IOptions&lt;DNTCaptchaOptions&gt; options
    

    , Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemeProvider) {

            _validatorService = validatorService;
            _captchaOptions = options == null ? throw new ArgumentNullException(nameof(options)) : options.Value;
        }
    
        public IActionResult OnPost()
        {
            if (!_validatorService.HasRequestValidCaptchaEntry(Language.English, DisplayMode.NumberToWord))
            {
                this.ModelState.AddModelError(_captchaOptions.CaptchaComponent.CaptchaInputName, "Please enter the security code as a number.");
                return Page();
            }
    
            //TODO: save data
    
            return RedirectToPage("privacy");
        }
    
        public void OnGet()
        {
        }
    }
    

    But I get error at the CustomLoginModel.cs. Please see the attachement:

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11