Open Closed

Error #601


User avatar
0
shobhit created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.3.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • An unhandled exception occurred while processing the request. DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.Account.Web.Pages.Account.IdentityServerSupportedLoginModel' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Account.ExternalProviders.IAccountExternalProviderAppService accountExternalProviderAppService' of constructor 'Void .ctor(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider, Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Account.Public.Web.AbpAccountOptions], Volo.Abp.Account.ExternalProviders.IAccountExternalProviderAppService, IdentityServer4.Services.IIdentityServerInteractionService, IdentityServer4.Stores.IClientStore, IdentityServer4.Services.IEventService, Volo.Abp.Security.Claims.ICurrentPrincipalAccessor, Volo.Abp.Account.Security.Recaptcha.IAbpRecaptchaValidatorFactory)'. Autofac.Core.Activators.Reflection.ReflectionActivator.GetValidConstructorBindings(ConstructorInfo[] availableConstructors, IComponentContext context, IEnumerable

DependencyResolutionException: An exception was thrown while activating Volo.Abp.Account.Web.Pages.Account.IdentityServerSupportedLoginModel. Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable

Stack Query Cookies Headers Routing DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.Account.Web.Pages.Account.IdentityServerSupportedLoginModel' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Account.ExternalProviders.IAccountExternalProviderAppService accountExternalProviderAppService' of constructor 'Void .ctor(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider, Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Account.Public.Web.AbpAccountOptions], Volo.Abp.Account.ExternalProviders.IAccountExternalProviderAppService, IdentityServer4.Services.IIdentityServerInteractionService, IdentityServer4.Stores.IClientStore, IdentityServer4.Services.IEventService, Volo.Abp.Security.Claims.ICurrentPrincipalAccessor, Volo.Abp.Account.Security.Recaptcha.IAbpRecaptchaValidatorFactory)'. Autofac.Core.Activators.Reflection.ReflectionActivator.GetValidConstructorBindings(ConstructorInfo[] availableConstructors, IComponentContext context, IEnumerable<Parameter> parameters) Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable<Parameter> parameters) Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable<Parameter> parameters)

Show raw exception details DependencyResolutionException: An exception was thrown while activating Volo.Abp.Account.Web.Pages.Account.IdentityServerSupportedLoginModel. Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable<Parameter> parameters) Autofac.Core.Resolving.InstanceLookup.Execute() Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) Autofac.Core.Resolving.ResolveOperation.ResolveComponent(ResolveRequest request) Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request)

  • Steps to reproduce the issue: I have upgraded my ABP CLI and abp suite from 3.2.1 to 3.3.0. Initially i got Blog repository error. followed the steps as per https://support.abp.io/QA/Questions/529/ABP-Upgrade-from-310-to-330 and made last step changes in "Volo.Abp.Account.Pro.Admin.Web" --> AbpAccountAdminWebModule.cs. Not sure what else i am missing

4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Did you add AbpAccountPublicWebIdentityServerModule dependency to module?

  • User Avatar
    0
    shobhit created

    Hello liangshiwei, Thanks for reply. Please help me step by step as i am using ABP very first time.

         1- I have ABP 3.1.2 startup template. No other source code downloaded.
         2- Open ABP Suite.
         3- In Home page select "switch to stable version" option
         4- All source code modified to use 3.3.0. Great.
         5- Run Idenity server. Got error "https://localhost:44388/account/login" not found
         6- download "Account" Module from ABP suite
         7- Got error in abp suite console "Couldn't find a project to run. Ensure a project exists in C:\Users\shobhit, or pass the path to the project using --project.". Even though my project is in "D:\mysourcecode".
         8- Now i start getting frustrated as upgrading a framework is such a rocket science
         9- No Problem. search support wiki and refer  "https://support.abp.io/QA/Questions/529/ABP-Upgrade-from-310-to-330" and follow step.
         10- As per above wiki url last step: "Add the below configuration to the ConfigureServices of your XXXWebModule.cs" i search and found 3 projects:
          10.1-   AbpAccountAdminWebModule.cs
          10.2-   AbpAccountPublicWebModule.cs
          10.3- AbpAccountPublicWebIdentityServerModule.cs
          11- Add nuget package "Volo.Abp.BlobStoring.Database.EntityFrameworkCore" reference to All above class solution 
          12- Add the below configuration to the ConfigureServices of all *WebModule.cs as per 10.1, 10.2, 10.3
    

    Configure<AbpBlobStoringOptions>(options => { options.Containers.ConfigureDefault(container => { container.UseDatabase(); }); });

    13- Run Identityserver. Wola error again

    An unhandled exception occurred while processing the request. AbpException: No BLOB Storage provider was registered! At least one provider must be registered to be able to use the Blog Storing System. Volo.Abp.BlobStoring.DefaultBlobProviderSelector.Get(string containerName)

    DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Volo.Abp.BlobStoring.IBlobContainerFactory)' on type 'BlobContainer`1'. Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()

    DependencyResolutionException: An exception was thrown while activating Volo.Abp.Account.Web.Pages.Account.IdentityServerSupportedLoginModel -> Volo.Abp.Account.AccountAppService -> Volo.Abp.BlobStoring.BlobContainer`1[[Volo.Abp.Account.AccountProfilePictureContainer, Volo.Abp.Account.Pro.Public.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable<Parameter> parameters)

    Stack Query Cookies Headers Routing AbpException: No BLOB Storage provider was registered! At least one provider must be registered to be able to use the Blog Storing System. Volo.Abp.BlobStoring.DefaultBlobProviderSelector.Get(string containerName) Volo.Abp.BlobStoring.BlobContainerFactory.Create(string name) lambda_method(Closure , object[] ) Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()

         14. Now search knowledge base and great i got solution: "https://support.abp.io/QA/Questions/529/ABP-Upgrade-from-310-to-330". Which i have followed in Step 9.
         
         15. Now i am back to square with no clue. So please now be my rescue and help me to upgrade my project.
         
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I can help you remotely. Please send email to me: shiwei.liang@volosoft.com

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Because you did not install the blob database provide module

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19