Activities of "hitaspdotnet"

Can you try rebuilding solution after deleting bin/obj folders?

I have tried with clean nuget cache/bin/obj/sdks/run times everythings related to a .net project. Can you login? The type 'vAnOhd8kBREcGO1P7Oo.vERgfT88EFtV78GBxyV' is not a valid page. A page must define a public, non-static 'Model' property. I got this error with same vAnOhd8kBREcGO1P7Oo.vERgfT88EFtV78GBxyV with fresh app-pro tired identityServer

I have tried with /graphbuild

error CS0433: The type 'PermissionDefinitionProvider' exists in both 'Volo.Abp.Authorization.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Authorization, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null'

local project references with bug fix works.

Retry with browser clean cache

  • ABP Framework version: v5.0.0-beta.1
  • Template type: Microservice
  • DB provider: EF Core
  • Exception message and stack trace:
System.InvalidOperationException: The type 'vAnOhd8kBREcGO1P7Oo.vERgfT88EFtV78GBxyV' is not a valid page. A page must define a public, non-static 'Model' property.
   at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.CreateModel(PageActionDescriptor actionDescriptor, TypeInfo pageTypeInfo)
   at Microsoft.AspNetCore.Mvc.ApplicationModels.DefaultPageApplicationModelProvider.OnProvidersExecuting(PageApplicationModelProviderContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.CompiledPageActionDescriptorFactory.CreateCompiledDescriptor(PageActionDescriptor actionDescriptor, CompiledViewDescriptor viewDescriptor)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DefaultPageLoader.LoadAsyncCore(PageActionDescriptor actionDescriptor, EndpointMetadataCollection endpointMetadata)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageLoaderMatcherPolicy.ApplyAsyncAwaited(CandidateSet candidates, Task`1 actionDescriptorTask, Int32 index)
   at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)
   at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
   at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  • Steps to reproduce the issue:"
  1. Create project using CLI abp new Acme.BookStore -t microservice-pro --preview && cd shared/Acme.BookStore.DbMigrator && dotnet run
  2. ./run-tye.ps1
  3. Use the tye dashboard and go to the auth-server app or try login from apps

Unziped version of cached template has this problem too, with same vAnOhd8kBREcGO1P7Oo.vERgfT88EFtV78GBxyV type error

modify related template one time then use customized template as template source when using CLI

The best practice is creating your folder structure same as ABP is,

  • YourCompany's Project folder
    • abp contains abp github repository
    • abp-pro contains abp-pro modules
      • naming the pro modules with same as abp (attached img) When using --local-framework-ref --abp-path target --abp-path to abp After this you need just few minutes of manual working Replace all \abp\abp\ with \abp-pro\

I had same problem, Scan your project for <ProjectReference Include="C:\SRC\abp-4.4.2\licensing\Volo.Abp.Commercial.Core\Volo.Abp.Commercial.Core.csproj" /> and replace it with <PackageReference Include="Volo.Abp.Commercial.Core" Version="4.2.2"/> The problem is pro modules generated by Suite by ABP's developers which contains unusable references to SuiteTemplate project, Scan your project for <ProjectReference Include="C:\SRC\abp-4.4.2\licensing\Volo.Abp.Commercial.SuiteTemplate\Volo.Abp.Commercial.SuiteTemplate.csproj" /> and replace it via empty.

My bad, missed CmsServiceHttpApiClientModule DependsOn for web modules

Service's api and gateways works fine but the public site and dashboard has DI error

2021-08-07 14:09:55.305 +04:30 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {
    "ActivatorChain": "Volo.CmsKit.Admin.Pages.PageAdminController"
  },
  "validationErrors": null
}

2021-08-07 14:09:55.305 +04:30 [ERR] An exception was thrown while activating Volo.CmsKit.Admin.Pages.PageAdminController.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.CmsKit.Admin.Pages.PageAdminController.
 ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.CmsKit.Admin.Pages.PageAdminController' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.CmsKit.Admin.Pages.IPageAdminAppService pageAdminAppService' of constructor 'Void .ctor(Volo.CmsKit.Admin.Pages.IPageAdminAppService)'.
   at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Builder.RegistrationBuilder`3.&lt;&gt;c__DisplayClass41_0.&lt;PropertiesAutowired&gt;b__0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   --- End of inner exception stack trace ---
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
   at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2021-08-07 14:09:55.306 +04:30 [ERR] ---------- Exception Data ----------
ActivatorChain = Volo.CmsKit.Admin.Pages.PageAdminController
Answer

@hitaspdotnet sorry but I couldn't reproduce the cms-kit issue.

tested with the following

abp new Mvc.EfCoreTier -t app-pro -u mvc --mobile none --tiered --database-provider ef -csf --preview --with-public-website 

abp new Mvc.EfCore -t app-pro -u mvc --mobile none --database-provider ef -csf --preview --with-public-website

Not tiered and the menus has error

Showing 1 to 10 of 30 entries
Made with ❤️ on ABP v8.3.0-preview Updated on July 05, 2024, 15:13