at Flurl.Http.FlurlRequest+<SendAsync>d__18.MoveNext () [0x0039d] in <f0b4fb8d1d61489486317325ace33652>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at Flurl.Http.FlurlRequest+<SendAsync>d__18.MoveNext () [0x004d9] in <f0b4fb8d1d61489486317325ace33652>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at Flurl.Http.FlurlRequest+<SendAsync>d__18.MoveNext () [0x005ed] in <f0b4fb8d1d61489486317325ace33652>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0 at Flurl.Http.HttpResponseMessageExtensions+<ReceiveJson>d__0
1[T].MoveNext () [0x0006f] in <f0b4fb8d1d61489486317325ace33652>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0 at NOOR.Sched.ApiClient.AbpApiClient+<PostAsync>d__14
1[T].MoveNext () [0x00089] in C:\Sched\src\NOOR.Sched.Application.Client\ApiClient\AbpApiClient.cs:71
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0 at NOOR.Sched.ApiClient.AbpApiClient+<PostAnonymousAsync>d__13
1[T].MoveNext () [0x0002f] in C:\Sched\src\NOOR.Sched.Application.Client\ApiClient\AbpApiClient.cs:59
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0 at NOOR.Sched.Authorization.Accounts.ProxyAccountAppService+<Register>d__1.MoveNext () [0x0003b] in C:\Sched\src\NOOR.Sched.Application.Client\Authorization\Accounts\ProxyAccountAppService.cs:15 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0
at NOOR.Sched.ViewModels.UserNewViewModel+<<RegisterUser>b__22_1>d.MoveNext () [0x0009f] in C:\Sched\src\NOOR.Sched.Mobile.Shared\ViewModels\UserNewViewModel.cs:122
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <657aa8fea4454dc898a9e5f379c58734>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0
at NOOR.Sched.Core.Threading.WebRequestExecuter+<Execute>d__1.MoveNext () [0x00295] in C:\Sched\src\NOOR.Sched.Mobile.Shared\Core\Threading\WebRequestExecuter.cs:101
the error trace
{Flurl.Http.FlurlHttpException: 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> failed with status code 500 (Internal Server Error). Request body: {"Name":"anwar","Surname":"b","UserName":"anwarbv","EmailAddress":"[email protected]","Password":"bvanwar","CaptchaResponse":null} Response body: {"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"An internal error occurred during your request!","details":null,"validationErrors":null},"unAuthorizedRequest":false,"__abp":true} at Flurl.Http.FlurlRequest+<SendAsync>d__18.MoveNext () [0x0039d] in <f0b4fb8d1d61489486317325ace33652>:0 --- End of stack trace from previous location where exception was thrown ---
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
}));
});
}
}
}
Sequence of activity
login using admin user and password go to any screen logout from login page now change language to arabic change language to english login again as admin it takes you to mainview which is now in arabic even though you selected english in the loginpage as default language
thanks
when i changed the port to 62114 it rhows the following error
--- 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.ValidateEnd(Task task) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.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.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.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.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.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.Server.Kestrel.Core.KestrelServer.<StartAsync>d__21`1.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.Hosting.Internal.WebHost.
program.cs as below
using System.IO; using Microsoft.AspNetCore.Hosting;
namespace ClassMate_Demo.Web.Startup { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel(opt => opt.AddServerHeader = false) .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup
host.Run();
}
}
}
Copy of code sent
Is it possible for you to log onto my system to see this or can i share screen on skype
regards Anwar
Microsoft Visual Studio Community 2017 Version 15.5.4 VisualStudio.15.Release/15.5.4+27130.2024 Microsoft .NET Framework Version 4.7.02558
Installed Version: Community
and .net core 2.1.4
your demo app shows all the dependencies but not the generated app.
i generateed app twice under 2 different name as test and demo extension
<cite>aaron: </cite> You should not need to reference net461 as Abp.AutoMapper targets netstandard2.0.
aron,
thanks for your response
dear aaron i have put the dependencies of the demo project and my project maaybe this will give a clearer picture
cannot add Abp.Automapper as the project in demo references SDK net461 and netstandard library but the project that i generated only references .netstandardlibrary no reference to sdk net461 is found.
Regards Anwar