Prerequisites
- Product version - 6.9.1
- Angular
- .net core 2.2
If issue related with ABP Framework
- ABP framework version - 9.1.0
We are facing issues while upgrading our current .net core application from 2.2 to 3.1 .
We are getting the below message while building the application after upgradation.
:"An internal error occurred during your request!"
The error detailed result returned the following message.
{"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}
Could you please help us to troubleshoot this issue? Also it would be helpful if you could provide us a document which describes how to upgrade from lower version to .net core 3.1.
7 Answer(s)
-
0
Hi kalidarscope, Can you provide log detailed information?
-
0
please find the attached log file info https://docs.google.com/document/d/1ErfG1dvdpf9O-RhWTb6CA_lGV9Snnss_HCrqxlm758o/edit?usp=sharing
-
0
Hi kalidarscope, I have seen
Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'ReturnValue'.
in the log information many times. Have you performed the latest database migration? The reason for this exception may be that the existing database does not have this column because this column is in the audit log. I guess a 500 error will occur every time the request is executed. -
0
Thanks for the reply. We have completed the database migration and this issue resolved. But we are receiving following Errors.
Log.txt: ERROR 2020-09-27 13:40:01,432 [6 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'ASAP.Authorization.Delegation.UserDelegationManager' as it has dependencies to be satisfied.
'ASAP.Authorization.Delegation.UserDelegationManager' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`2[[ASAP.Authorization.Delegation.UserDelegation, ASAP.Core, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null],[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' which was not registered.
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'ASAP.Authorization.Delegation.UserDelegationManager' as it has dependencies to be satisfied.
'ASAP.Authorization.Delegation.UserDelegationManager' is waiting for the following dependencies:
Service 'Abp.Domain.Repositories.IRepository`2[[ASAP.Authorization.Delegation.UserDelegation, ASAP.Core, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null],[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' which was not registered.
at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveFromKernelByType(CreationContext context, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments) at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) 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 where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) INFO 2020-09-27 13:40:01,739 [6 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. INFO 2020-09-27 13:40:01,741 [6 ] c.Infrastructure.ControllerActionInvoker - Executed action ASAP.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (ASAP.Web.Core) in 1561.6473ms INFO 2020-09-27 13:40:01,741 [6 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'ASAP.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (ASAP.Web.Core)' INFO 2020-09-27 13:40:01,741 [6 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 2472.3911ms 500 application/json; charset=utf-8
-
0
-
0
-
0
Hi @kalidarscope
Could you delete bin & obj folders (there is a bat file under aspnet-core folder for that), restore packages and try again ? If you see the same error, could you share your project with [email protected] ?
Thanks,