Do we need to run this command before building the project or after building it, please confirm
After selecting the scopes, it's working fine in the localhost development environment. Now everything is fine in our local environment (web+API).
The AzureWeb application is working fine without authorization, But while trying to log in to the application it comes with the error "This page isn’t working". Please find screenshots also.
We are facing authorization issues in the development environment as well as after deployment on Azuredevops.
At local we are able to run the Blazer web application with login correctly, but if we try to check the API's from Swagger then it is authorized successfully but API execution gives an unauthorized 401 error.
The AzureWeb application is working fine without authorization, But while trying to log in to the application it comes with the error "This page isn’t working". Please find screenshots also.
Please find below the table values OpenIddictApplications, In the same way, we have replaced only localhost urls with our live application and API urls.
Please suggest if we are missing something.
Thanks Jayesh
Hi @Anjali_Musmade I followed the same migration guide and I checked the versions. ABP cli is 7.4.2 and the same i changed in the project nuget packages.
@maliming I went to project's blazor layer directory and opened CMD in the same directory and run the command "abp bundle". But I am getting some different error this time. Please check the attached screenshot.
* System.AggregateException: One or more errors occurred. (VTable setup of type Volo.Abp.Identity.HttpClientUserRoleFinder failed)
---> System.TypeLoadException: VTable setup of type Volo.Abp.Identity.HttpClientUserRoleFinder failed
at System.RuntimeType.GetMethodsByName(String name, BindingFlags bindingAttr, MemberListType listType, RuntimeType reflectedType)
at System.RuntimeType.GetMethodCandidates(String name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, Int32 genericParamCount, Boolean allowPrefixLookup)
at System.RuntimeType.GetMethods(BindingFlags bindingAttr)
at Volo.Abp.Uow.UnitOfWorkHelper.AnyMethodHasUnitOfWorkAttribute(TypeInfo implementationType)
at Volo.Abp.Uow.UnitOfWorkHelper.IsUnitOfWorkType(TypeInfo implementationType)
at Volo.Abp.Uow.UnitOfWorkInterceptorRegistrar.ShouldIntercept(Type type)
at Volo.Abp.Uow.UnitOfWorkInterceptorRegistrar.RegisterIfNeeded(IOnServiceRegistredContext context)
at Autofac.Builder.AbpRegistrationBuilderExtensions.InvokeRegistrationActions[Object,ConcreteReflectionActivatorData,SingleRegistrationStyle](IRegistrationBuilder`3 registrationBuilder, ServiceRegistrationActionList registrationActionList, Type serviceType, Type implementationType)
at Autofac.Builder.AbpRegistrationBuilderExtensions.ConfigureAbpConventions[Object,ConcreteReflectionActivatorData,SingleRegistrationStyle](IRegistrationBuilder`3 registrationBuilder, IModuleContainer moduleContainer, ServiceRegistrationActionList registrationActionList)
at Autofac.Extensions.DependencyInjection.AutofacRegistration.Register(ContainerBuilder builder, IServiceCollection services, Object lifetimeScopeTagForSingletons)
at Autofac.Extensions.DependencyInjection.AutofacRegistration.Populate(ContainerBuilder builder, IServiceCollection services, Object lifetimeScopeTagForSingletons)
at Autofac.Extensions.DependencyInjection.AutofacRegistration.Populate(ContainerBuilder builder, IServiceCollection services)
at Volo.Abp.Autofac.AbpAutofacServiceProviderFactory.CreateBuilder(IServiceCollection services)
at Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder.<>c__DisplayClass25_0`1[[Autofac.ContainerBuilder, Autofac, Version=7.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da]].<ConfigureContainer>b__0()
at Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder.Build()
at APro.Inspector.Blazor.Program.Main(String[] args) in E:\projects\APro\APro.Inspector\src\APro.Inspector.Blazor\Program.cs:line 25
--- End of inner exception stack trace ---
*I tried to upgrade my abp framework blazor application from version 7.3.3 to version 7.4.2. I did it by updating the versions of packages for all the layers and then cleared yarn cache and installed the abp libraries using command "abp install-libs". Now when I run the project, the swagger api runs successfully but I am getting a console error in Blazor ui application. and Nothing appears on screen. The error occurs in Program.cs file on the line:
var host = builder.build();
Please check screenshots for more information.