Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error not shown in the listing posted on March 17th #4871


User avatar
0
avanekar02 created

Hello

i posted an error on march 17th but not listed here , but appears when i search.

regards Anwar


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    could you please write your issue again?

  • User Avatar
    0
    avanekar02 created

    This is my code to register from mobile page befor login so under forgotpassword i created a link called Register and wote this code

    it throws an error, i have shown the error below my code stack trace


    my code

    namespace NOOR.Sched.ViewModels { public class UserNewViewModel : XamarinViewModel { private readonly IUserNewAppService _userNewAppService; public readonly IAccountAppService _accountAppService; public ICommand SaveUserCommand => AsyncCommand.Create(RegisterUser); private RegisterInput _model;

    public UserNewViewModel(IUserNewAppService userNewAppService, IAccountAppService accountAppService) { _userNewAppService = userNewAppService; _accountAppService = accountAppService; }

    public override async Task InitializeAsync(object navigationData) { IsNewUser = navigationData == null; Model = new RegisterInput(); }

    public RegisterInput Model { get => _model; set { _model = value; RaisePropertyChanged(() => Model); } }

    private async Task RegisterUser() {

    await SetBusyAsync(async () => { await WebRequestExecuter.Execute( async () => await _accountAppService.Register(new RegisterInput { UserName = Model.UserName, Password = Model.Password, Name = Model.Name, Surname = Model.Surname, EmailAddress = Model.EmailAddress

    })); });

    }

    } }

    -------------------- Code ends here

    -------error stack trace

    DEBUG 2018-03-19 09:18:29,290 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules... DEBUG 2018-03-19 09:18:29,655 [1 ] Abp.Modules.AbpModuleManager - Found 23 ABP modules in total. DEBUG 2018-03-19 09:18:29,682 [1 ] Abp.Modules.AbpModuleManager - Loaded module: NOOR.Sched.Web.Startup.SchedWebHostModule, NOOR.Sched.Web.Host, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,684 [1 ] Abp.Modules.AbpModuleManager - Loaded module: NOOR.Sched.Web.SchedWebCoreModule, NOOR.Sched.Web.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,684 [1 ] Abp.Modules.AbpModuleManager - Loaded module: NOOR.Sched.SchedApplicationModule, NOOR.Sched.Application, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,685 [1 ] Abp.Modules.AbpModuleManager - Loaded module: NOOR.Sched.SchedCoreModule, NOOR.Sched.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,685 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,685 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,685 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,685 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.Ldap.AbpZeroLdapModule, Abp.Zero.Ldap, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,686 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,686 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetZeroCore.AbpAspNetZeroCoreModule, Abp.AspNetZeroCore, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,686 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.MailKit.AbpMailKitModule, Abp.MailKit, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,687 [1 ] Abp.Modules.AbpModuleManager - Loaded module: NOOR.Sched.EntityFrameworkCore.SchedEntityFrameworkCoreModule, NOOR.Sched.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,687 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,687 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,687 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,688 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerEntityFrameworkCoreModule, Abp.ZeroCore.IdentityServer4.EntityFrameworkCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,688 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerModule, Abp.ZeroCore.IdentityServer4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,688 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetZeroCore.Web.AbpAspNetZeroCoreWebModule, Abp.AspNetZeroCore.Web, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,688 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,688 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,689 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,689 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Runtime.Caching.Redis.AbpRedisCacheModule, Abp.RedisCache, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,689 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Hangfire.AbpHangfireAspNetCoreModule, Abp.HangFire.AspNetCore, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:29,693 [1 ] Abp.Modules.AbpModuleManager - 23 modules loaded. DEBUG 2018-03-19 09:18:29,869 [1 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2018-03-19 09:18:29,869 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2018-03-19 09:18:29,869 [1 ] o.Configuration.LanguageManagementConfig - Converted Sched (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2018-03-19 09:18:29,869 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource DEBUG 2018-03-19 09:18:30,597 [1 ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: NOOR.Sched.EntityFrameworkCore.SchedDbContext, NOOR.Sched.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null DEBUG 2018-03-19 09:18:31,381 [1 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. DEBUG 2018-03-19 09:18:31,395 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp DEBUG 2018-03-19 09:18:31,404 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero DEBUG 2018-03-19 09:18:31,431 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Sched DEBUG 2018-03-19 09:18:31,433 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb DEBUG 2018-03-19 09:18:31,533 [1 ] Abp.BackgroundJobs.BackgroundJobManager - Start background worker: Abp.BackgroundJobs.BackgroundJobManager DEBUG 2018-03-19 09:18:31,674 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Found 2 classes define auto mapping attributes DEBUG 2018-03-19 09:18:31,675 [1 ] Abp.AutoMapper.AbpAutoMapperModule - NOOR.Sched.Web.Models.TokenAuth.ExternalLoginProviderInfoModel DEBUG 2018-03-19 09:18:31,683 [1 ] Abp.AutoMapper.AbpAutoMapperModule - NOOR.Sched.Friendships.Cache.FriendCacheItem DEBUG 2018-03-19 09:18:37,127 [1 ] enancy.SubscriptionExpirationCheckWorker - Start background worker: NOOR.Sched.MultiTenancy.SubscriptionExpirationCheckWorker DEBUG 2018-03-19 09:18:37,130 [1 ] cy.SubscriptionExpireEmailNotifierWorker - Start background worker: NOOR.Sched.MultiTenancy.SubscriptionExpireEmailNotifierWorker INFO 2018-03-19 09:19:55,133 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://169.254.80.80:22742/AbpUserConfiguration/GetAll">http://169.254.80.80:22742/AbpUserConfiguration/GetAll</a>
    INFO 2018-03-19 09:19:55,909 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid INFO 2018-03-19 09:19:56,306 [8 ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse. INFO 2018-03-19 09:19:56,425 [8 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 581.4457ms INFO 2018-03-19 09:19:56,425 [8 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1308.6114ms 200 application/json; charset=utf-8 INFO 2018-03-19 09:20:37,002 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://169.254.80.80:22742/api/services/app/Account/Register">http://169.254.80.80:22742/api/services ... t/Register</a> application/json; charset=utf-8 130 INFO 2018-03-19 09:20:37,553 [4 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method NOOR.Sched.Authorization.Accounts.AccountAppService.Register (NOOR.Sched.Application) with arguments (NOOR.Sched.Authorization.Accounts.Dto.RegisterInput) - ModelState is Valid ERROR 2018-03-19 09:20:37,603 [4 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can not register host users! System.InvalidOperationException: Can not register host users! at NOOR.Sched.Authorization.Users.UserRegistrationManager.CheckForTenant() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 108 at NOOR.Sched.Authorization.Users.UserRegistrationManager.<RegisterAsync>d__13.MoveNext() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 58 --- 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.TaskAwaiter1.GetResult() at NOOR.Sched.Authorization.Accounts.AccountAppService.<Register>d__16.MoveNext() in C:\Sched\src\NOOR.Sched.Application\Authorization\Accounts\AccountAppService.cs:line 76 --- 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 lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext() --- 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 Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext() --- 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 Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext() INFO 2018-03-19 09:20:37,649 [4 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2018-03-19 09:20:37,667 [4 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action NOOR.Sched.Authorization.Accounts.AccountAppService.Register (NOOR.Sched.Application) in 622.5877ms INFO 2018-03-19 09:20:37,678 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 676.3352ms 500 application/json; charset=utf-8 INFO 2018-03-19 09:26:29,785 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://169.254.80.80:22742/api/services/app/Account/Register">http://169.254.80.80:22742/api/services ... t/Register</a> application/json; charset=utf-8 130 INFO 2018-03-19 09:26:29,785 [4 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method NOOR.Sched.Authorization.Accounts.AccountAppService.Register (NOOR.Sched.Application) with arguments (NOOR.Sched.Authorization.Accounts.Dto.RegisterInput) - ModelState is Valid ERROR 2018-03-19 09:26:29,801 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can not register host users! System.InvalidOperationException: Can not register host users! at NOOR.Sched.Authorization.Users.UserRegistrationManager.CheckForTenant() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 108 at NOOR.Sched.Authorization.Users.UserRegistrationManager.<RegisterAsync>d__13.MoveNext() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 58 --- 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.TaskAwaiter1.GetResult() at NOOR.Sched.Authorization.Accounts.AccountAppService.<Register>d__16.MoveNext() in C:\Sched\src\NOOR.Sched.Application\Authorization\Accounts\AccountAppService.cs:line 76 --- 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 lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext() --- 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 Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext() --- 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 Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext() INFO 2018-03-19 09:26:29,801 [3 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2018-03-19 09:26:29,801 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action NOOR.Sched.Authorization.Accounts.AccountAppService.Register (NOOR.Sched.Application) in 22.2039ms INFO 2018-03-19 09:26:29,801 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 26.3704ms 500 application/json; charset=utf-8 INFO 2018-03-19 09:39:24,709 [9 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://169.254.80.80:22742/AbpUserConfiguration/GetAll">http://169.254.80.80:22742/AbpUserConfiguration/GetAll</a>
    INFO 2018-03-19 09:39:24,718 [9 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid INFO 2018-03-19 09:39:24,764 [3 ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse. INFO 2018-03-19 09:39:24,765 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 44.3841ms INFO 2018-03-19 09:39:24,765 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 56.3769ms 200 application/json; charset=utf-8 INFO 2018-03-19 09:41:59,291 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://169.254.80.80:22742/api/services/app/Account/Register">http://169.254.80.80:22742/api/services ... t/Register</a> application/json; charset=utf-8 132 INFO 2018-03-19 09:41:59,305 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method NOOR.Sched.Authorization.Accounts.AccountAppService.Register (NOOR.Sched.Application) with arguments (NOOR.Sched.Authorization.Accounts.Dto.RegisterInput) - ModelState is Valid ERROR 2018-03-19 09:41:59,321 [4 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can not register host users! System.InvalidOperationException: Can not register host users! at NOOR.Sched.Authorization.Users.UserRegistrationManager.CheckForTenant() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 108 at NOOR.Sched.Authorization.Users.UserRegistrationManager.<RegisterAsync>d__13.MoveNext() in C:\Sched\src\NOOR.Sched.Core\Authorization\Users\UserRegistrationManager.cs:line 58 --- 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 NOOR.Sched.Authorization.Accounts.AccountAppService.

  • User Avatar
    0
    ismcagdas created
    Support Team

    I think this is the same problem #4860@7b5a594e-884b-4f3a-b840-c0c8e108bba0. I can see it on the topic list.