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

Activities of "bilalhaidar"

Thanks Ismail.

Find attached a snapshot pls.

Thanks Jeff.

You look like you are an advanced user on this framework. Do you share y our findings in a blog or so?

Regards Bilal

hi, I am creating a new tenant from host interface using the admin account.

I set my own password and don't force the system to send activation email.

When I try to login with the admin/password I put, I get an error. Here is the details of the exception from log file.

Where shall I look to know what's going on?

I tried creating around 4 tenants and same problem with all!

Inside VS, when I debug the code, I get the result of LockedOut. How come first time I try to login I get locked out?

private async Task<AbpLoginResult<Tenant, User>> GetLoginResultAsync(string usernameOrEmailAddress, string password, string tenancyName)
        {
            var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);

            switch (loginResult.Result)
            {
                case AbpLoginResultType.Success:
                    return loginResult;
                default:
                    throw _abpLoginResultTypeHelper.CreateExceptionForFailedLoginAttempt(loginResult.Result, usernameOrEmailAddress, tenancyName);
            }
        }
WARN  2017-03-14 19:27:01,394 [10   ] ystems.Web.Controllers.AccountController - Login failed!
Abp.UI.UserFriendlyException: Login failed!
   at Drc.OnlineSystems.Web.Controllers.AccountController.<GetLoginResultAsync>d__22.MoveNext() in D:\Workspace\DrcOnlineSystems\Drc.OnlineSystems.Web\Controllers\AccountController.cs:line 208
--- 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.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Drc.OnlineSystems.Web.Controllers.AccountController.&lt;Login&gt;d__19.MoveNext() in D:\Workspace\DrcOnlineSystems\Drc.OnlineSystems.Web\Controllers\AccountController.cs:line 137
--- 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 Abp.Threading.InternalAsyncHelper.&lt;AwaitTaskWithPostActionAndFinallyAndGetResult&gt;d__5`1.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120
--- 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.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

Thanks a lot. I will surely use the GitHub for questions about framework. I thought I can only post issues on GitHub :)

I am glad it is working now.

This framework is amazing, but it might need some time digging into the source code and with time you get to learn many things out of it.

Always pass by and ask your questions.

Bilal

Thanks a lot :)

Thanks!

Hi Ismail, I guess I was missing one thing, SettingsDefinitionManager is defined as "Singleton" in the IoC. Therefore, every time the application runs, the settings will be collected from all modules and will be available.

When a change occurs in Tenant Settings or Host Settings, then values are written on-demand to DB.

I am not sure though, if the values stored in memory are updated on the spot, or next time they are requested they are read from DB.

Thanks

Any idea? Thanks.

Hi Bilal, We need to see more code to see how you are returning data from server.

But one thing I noticed, is the "result.items". Maybe it should be "result.data.items".

Bilal

Showing 471 to 480 of 635 entries