Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "OriAssurant"

I am consuming a WCF Service in .Application project. To achieve the same, I have specified system.serviceModel configuration in app.config(.Application project) and Web.config(.Web project)

Now, I want to remove the syste.serviceModel from the config and be able to derive endpoint from the database leveraging settings.

I did the following:

  1. Remove system.serviceModel from App.config
  2. Place the below code in Preinitialise method of MajesticApplicationModule: String baseAddress = "This will come from SettingManager"; BasicHttpBinding binding = new BasicHttpBinding(); using (ServiceHost host = new ServiceHost(typeof(ServiceClient))) { host.AddServiceEndpoint(typeof(IService), binding, baseAddress); }
  3. Remove system.serviceModel from Web.config
  4. Place the code from step 2 in Preinitialize method of MajesticWebModule

After making these changes, I am getting the below error:

Could not find default endpoint element that references contract 'UserService.IOktaService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

Is there something I am missing? Please point me in the right direction.

Question

How can we achieve User Groups (OU?) with scope only within the group? For example:

Tenant 1

  • (Store#1)

    • User 1
    • User 2
  • (Store#2) - User 3

    • User 4
  • (Store#3) - User 3

    • User 5

We would like to have Store#2, Store#3 be within the same scope (Group?), without sharing information (data) with Store#1.

After observing the behavior of OU's, it is a logical grouping but not scoped w/Privacy.

Thoughts?

@ismcagdas If I want to incorporate this even in the create user screen. What would be the best approach?

For a tenancy I created, I updated the password complexity settings from Security tab in Administration section. But it does not seem to make a difference, when I create a new user with invalid password.

Is there anything else I need to change?

Answer

As far from my research in MultiTenantMigrateExecuterclass I found that, this else block will be called only when we configure "connectionString" for that Tenant in AbpTenants table. If that connection string is not null, then this else block is been called. Now my question here is, I set the connection string as "Server=localhost; Database=Majestic; Trusted_Connection=True;" (without quotes) in the table. But when I debug then I get this error: "System.FormatException: 'The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. '" while trying to log the connection string using "Log.Write("Connection string : " + SimpleStringCipher.Instance.Decrypt(tenant.ConnectionString));"

Can you let me know what format of the connection string does it is looking for? I was using the samething that aspnetzero provides

Question

I want to seed some tenant related data when a Tenant is created.

This is where I think I should seed data : protected override void Seed(EntityFramework.MajesticDbContext context) { context.DisableAllFilters();

        context.EntityChangeEventHelper = NullEntityChangeEventHelper.Instance;
        context.EventBus = NullEventBus.Instance;

        if (Tenant == null)
        {
            //Host seed
            new InitialHostDbBuilder(context).Create();

            //Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
           
        }

else { //You can add seed for tenant databases using Tenant property... new InitialPeopleCreator(context).Create(); }

I need to call this class InitialPeopleCreator.cs in the else block, but this part of code is never called? How do I do this?

How can we expire a user's session while he is already in session and on the other end admin set his status to inactive?

Question

Hi,

I am showing that the ASP.NET MVC & Angular Project is not getting great results on SonarQube:

Are the engineers watching quality analysis output when putting together this solution?

DEBUG 2018-01-08 10:32:24,478 [6 ] Abp.Web.SignalR.Hubs.AbpCommonHub - A client is connected: {"ConnectionId":"ec33c09e-9270-4b28-bec3-e240676c583e","IpAddress":"::1","TenantId":2,"UserId":19,"ConnectTime":"2018-01-08T15:32:24.47856Z","Properties":{}} DEBUG 2018-01-08 10:32:24,681 [19 ] Abp.Web.SignalR.Hubs.AbpCommonHub - A client is registered: ec33c09e-9270-4b28-bec3-e240676c583e DEBUG 2018-01-08 10:32:46,821 [27 ] Abp.Web.SignalR.Hubs.AbpCommonHub - A client is disconnected: ec33c09e-9270-4b28-bec3-e240676c583e ERROR 2018-01-08 10:32:48,813 [21 ] nHandling.AbpApiExceptionFilterAttribute - Only one complex type allowed as argument to a web api controller action. But CreateUser contains more than one! Abp.AbpException: Only one complex type allowed as argument to a web api controller action. But CreateUser contains more than one! at Abp.WebApi.Controllers.Dynamic.Scripting.ActionScriptingHelper.GenerateBody(DynamicApiActionInfo actionInfo) at Abp.WebApi.Controllers.Dynamic.Scripting.jQuery.JQueryActionScriptGenerator.GenerateAjaxCallParameters() at Abp.WebApi.Controllers.Dynamic.Scripting.jQuery.JQueryActionScriptGenerator.GenerateMethod() at Abp.WebApi.Controllers.Dynamic.Scripting.jQuery.JQueryProxyGenerator.AppendMethod(StringBuilder script, DynamicApiControllerInfo controllerInfo, DynamicApiActionInfo methodInfo) at Abp.WebApi.Controllers.Dynamic.Scripting.jQuery.JQueryProxyGenerator.Generate() at Abp.WebApi.Controllers.Dynamic.Scripting.ScriptProxyManager.GetAllScript(ProxyScriptType type) at Abp.WebApi.Controllers.Dynamic.Scripting.AbpServiceProxiesController.GetAll(ProxyScriptType type) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.

Yes, the error is abp.services.app cannot be loaded. However, I am not sure why does this happen only when I use IApplicationInterface

Showing 141 to 150 of 152 entries