We have added following referance in one of microservice architecture to create user
Identity.HttpApi Identity.EntityFrameworkCore Identity.Application
you check details about that issue in https://support.abp.io/QA/Questions/1069/Not-able-to-create-user-in-MicroService-Architecture
but after that all unit test cases are failed for that service. We were facing issue of Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule, Volo.Abp.AspNetCore.Mvc, Version=3.0.4.0, Culture=neutral, PublicKeyToken=null: Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.12.0, Culture=neutral, PublicKeyToken=adb9793829ddae60. See the inner exception for details. ---- System.InvalidOperationException : Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.12.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
Then in following URL there are steps to resolve that issue
https://support.abp.io/QA/Questions/1077/Testing-Overridden-AppService#answer-1bbd38f2-5f8c-36ad-6eeb-39fb70a23930
I followed that steps:
Created WebEnvironmentHostMock.cs class implemented IWebHostEnvironment Interface.
step -1. public class WebHostEnvironmentMock : IWebHostEnvironment { public IFileProvider WebRootFileProvider { get; set; } public string WebRootPath { get; set; } public string EnvironmentName { get; set; } public string ApplicationName { get; set; } public string ContentRootPath { get; set; } public IFileProvider ContentRootFileProvider { get; set; }
public WebHostEnvironmentMock()
{
var absoluteRootPath = "**********Path of Identity Server Microservice*****************" Drive:\\Folder\\Folder\\Folder\\Folder\\Folder\\***.***.IdentityServer;
ContentRootPath = absoluteRootPath;
WebRootPath = absoluteRootPath;
}
}
step -2 : { [DependsOn( typeof(**********ApplicationModule), typeof(********DomainTestModule), typeof(AbpIdentityHttpApiModule), typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpIdentityApplicationModule) )] public class **********TestModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.AddSingleton<IWebHostEnvironment>(new WebHostEnvironmentMock()); } } }
After This above issue get resolved, but there is following issue we are facing now.
'An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module SCV.Litmus.ProfileManagement.ProfileManagementTestBaseModule, SCV.Litmus.ProfileManagement.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: SQLite Error 1: 'no such table: AbpUsers'.. See the inner exception for details.'
I checked douments, but couldn't find any solutions. Kindly help me out on this.
Hi,
I want to implement reCaptcha in our project. We have created log in page on in angular UI. I have gone through some documents, razor pages used for implementation of recaptcha. so my question is that.
what needs to be done for implemetaion of reCaptcha.
Can we have online session? Can we connect quickly on call?
Hi,
I have created one demo commercial application, in email verification when i click verify, it shows me email send successfully but i didn't received mail. Can you tell me what configuration i need to do?
Hi armanozak,
Any update on this.?
Hi, Is that thing worked on your end in v3.2?
Thanks & Regards, Chetan Kumbhar.
hi,
In our application, We using v3.0.4. In our application there is no parameter like responseType: 'code'. Okay if we upgrade version from v3.0.4 to v3.2 as you mention. and if that paramenter is there then will 2FA work into my application?
Thanks & Regards, Chetan Kumbhar.
Hi,
I have shared link with you.
Thanks & regards
Chetan Kumbhar.
Hi,
any update on this ? can we have online session, because this thing is on priority?
Hi,
What is code flow? how should we implement that in our application? how to do it in MVC? can we have online session for this, it is bit on priority?