You're welcome.
It seems your ABP Commercial NuGet Source added with wrong url. (it should be nuget.abp.io not nugut.abp.io)
Please run the dotnet nuget remove source "ABP Commercial NuGet Source"
on your terminal and then run the following command
dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/v3/index.json --version 4.4.2
.
change the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx part with your api-key
I run this command but show error Please if u need Key let me know
In here, there is a nuget source named "nugut.abp.io" (and it is not found i guess). If it's not used can you delete it?
dotnet nuget remove source <source_name>
You can see the source_name by running
dotnet nuget list source
command.
You can inherit from AbpSignInManager
and override the PasswordSignInAsync method.
https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#overriding-a-service-class
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(AbpSignInManager))]
public class MyCustomSignInManager : AbpSignInManager
{
public async override Task<SignInResult> PasswordSignInAsync(string userName, string password,
bool isPersistent, bool lockoutOnFailure)
{
//your logic
}
}
When you run dotnet nuget list source
command, is nuget.org on top?
https://support.abp.io/QA/Questions/414/ABP-Suite-install-problem#answer-a69dadf8-946b-01e4-d63f-39f78fb3375e
You can examine this document to see how you can create a CustomSigninManager.
And after you've created CustomSigninManager, you can override the SignInAsync method and implement your logic.
Don't forget to register your CustomSigninManager => https://docs.abp.io/en/abp/2.9/How-To/Customize-SignIn-Manager#register-to-dependency-injection
Can you also specify the version (--version 4.4.2
) like below?
dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/v3/index.json --version 4.4.2
Can you navigate to https://commercial.abp.io/my-organizations/ and get your Api-key for your organization?
After obtaining your api-key, add nuget source by using the following command.
dotnet nuget add source <your_nuget_source>
Then run the dotnet nuget list source
command again to see the source.
Hi @MahmoudA, can you list your nuget resources by using the following code?
dotnet nuget list source
After you run this command, you should be able to see the ABP Commercial NuGet Source [Enabled] on your terminal. Then, you can install the suite with the following command (change the <ABP Commercial NuGet Source> with the index.json file path under the ABP Commercial NuGet Source [Enabled] section on your terminal)
<ABP Commercial NuGet Source> => https://nuget.abp.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/v3/index.json (change the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx part with your api-key).
dotnet tool install -g Volo.Abp.Suite --add-source <ABP Commercial NuGet Source>
Hi @cellero, please wrap your create and update methods with try-catch blocks and handle exception by yourself (by using HandleErrorAsync
method). => https://support.abp.io/QA/Questions/1523/Blazor-Server-ABP-Exception-Dialog-not-shown#answer-7939465b-3349-3100-2cc1-39fd4fd8c78a
private async Task CreateBookAsync()
{
try
{
await BooksAppService.CreateAsync(NewBook);
await GetBooksAsync();
CreateBookModal.Hide();
}
catch (Exception ex)
{
await HandleErrorAsync(ex);
}
}
@page "/books"
@attribute [Authorize(MyPermissions.Books.Default)]
@inherits MyPageComponentBase //be sure about your razor page inherits from your base component
///...