Open Closed

Get ABP Tiered to work correctly from VirtualApplication / Sub application #7669


User avatar
0
rwright-ruhealth created
  • ABP Framework version: v8.2.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Tiered MVC
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Create an ABP Application using either ABP Suite or ABP Studio.0.7.5. Specify Tiered, etc. Launch all required instances Host/Swagger, AuthServer and Web app. Using these settings, should run fine. Configure a virtual directory either in VS 2022 or in IIS and configure for debugging. Set your app-settings, etc to point to the /myapp virtual directory. I had to modify abp.js to add the /myapp/ as part of the appPath variable. After some trial and error, I was able to get everything, including swagger to load. I am able to login now. Console errors in the browser: 404 errors for bootstrap-dark.css -- Looking for it in https://Localhost:44352/Themes/LeptonX/Global/side-menu/css/bootstrap-dark.css---- shouldn't this be looking in the virtual directory location? something like https://Localhost:44352/myapp/Themes/LeptonX/Global/side-menu/css/bootstrap-dark.css Attaching an image of the way this folder structure looks in VS 2022. Additionally, , dark.css, logo-light.svg are not found. many errors pointing to layout-bundle.css

For the CHAT application installed via the ABP Studio (package only version) signal-r hubs is not found. It is looking in the root instead of the /myapp location. When I use the Settings feature to disable CHAT, the signalR Fetch errors disappear. Attempting to save settings after modifying my surname in profile results in a Sweet Alert popup "An Internal error occurred during your request."

LOGS show hundreds of RabbitMQ errors as well. RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed)

When I try to modify / add a new role Sweet Alert popup "An Internal error occurred during your request."

I am able to use the application CRUD pages generated via ABP suite for CRUD without problems.

So, I am partially there.

Now, can you get me the final goal of managing the application users and fixing the RabbitMQ errors?

Thanks in advance.


24 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    First. Please test your app withour virtual directory .

    Then set log level to Debug and share your application logs.

    Thanks.

    public class Program
    {
        public async static Task<int> Main(string[] args)
        {
            Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Debug()
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
                .Enrich.FromLogContext()
                .WriteTo.Async(c => c.File("Logs/logs.txt"))
                .WriteTo.Async(c => c.Console())
                .CreateLogger();
    
  • User Avatar
    0
    rwright-ruhealth created

    hi

    First. Please test your app withour virtual directory .

    Then set log level to Debug and share your application logs.

    Thanks.

    public class Program 
    { 
        public async static Task<int> Main(string[] args) 
        { 
            Log.Logger = new LoggerConfiguration() 
                .MinimumLevel.Debug() 
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) 
                .Enrich.FromLogContext() 
                .WriteTo.Async(c => c.File("Logs/logs.txt")) 
                .WriteTo.Async(c => c.Console()) 
                .CreateLogger(); 
    

    I created a brand new project from scratch. I did not create any virtual directories. Create an tiered EF books app. build it and login to make sure it works. Add the code version of the CHAT module and try to send a CHAT after giving a user CHAT permissions. you will get an internal server error. Swagger will fail to load with: error 500 /swagger/v1/swagger.json if I navigate to swagger.json directly: An unhandled exception occurred while processing the request.Volo.Chat.Messages.SendMessageInput Inserting the MyWebApp.HttpApi.Host log.txt file

    2024-08-07 21:18:04.889 -07:00 [DBG] Request matched endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)'
    2024-08-07 21:18:04.889 -07:00 [DBG] Request matched endpoint 'MyWebAppt2v821.Controllers.HomeController.Index (MyWebAppt2v821.HttpApi.Host)'
    2024-08-07 21:18:05.017 -07:00 [DBG] AuthenticationScheme: Bearer was not authenticated.
    2024-08-07 21:18:05.017 -07:00 [DBG] AuthenticationScheme: Bearer was not authenticated.
    2024-08-07 21:18:05.091 -07:00 [DBG] Static files was skipped as the request already matched an endpoint.
    2024-08-07 21:18:05.091 -07:00 [DBG] Static files was skipped as the request already matched an endpoint.
    2024-08-07 21:18:05.141 -07:00 [INF] Executing endpoint 'MyWebAppt2v821.Controllers.HomeController.Index (MyWebAppt2v821.HttpApi.Host)'
    2024-08-07 21:18:05.141 -07:00 [INF] Executing endpoint 'Health checks'
    2024-08-07 21:18:05.146 -07:00 [DBG] Running health checks
    2024-08-07 21:18:05.201 -07:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller MyWebAppt2v821.Controllers.HomeController (MyWebAppt2v821.HttpApi.Host).
    2024-08-07 21:18:05.206 -07:00 [DBG] Execution plan of authorization filters (in the following order): ["Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter"]
    2024-08-07 21:18:05.206 -07:00 [DBG] Execution plan of resource filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"]
    2024-08-07 21:18:05.210 -07:00 [DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)","Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)","Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter","Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter","Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter","Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter","Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter","Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter"]
    2024-08-07 21:18:05.212 -07:00 [DBG] Execution plan of exception filters (in the following order): ["Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter"]
    2024-08-07 21:18:05.212 -07:00 [DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"]
    2024-08-07 21:18:05.227 -07:00 [DBG] Executing controller factory for controller MyWebAppt2v821.Controllers.HomeController (MyWebAppt2v821.HttpApi.Host)
    2024-08-07 21:18:05.285 -07:00 [DBG] Executed controller factory for controller MyWebAppt2v821.Controllers.HomeController (MyWebAppt2v821.HttpApi.Host)
    2024-08-07 21:18:05.416 -07:00 [INF] Executing RedirectResult, redirecting to /swagger.
    2024-08-07 21:18:05.432 -07:00 [INF] Executed action MyWebAppt2v821.Controllers.HomeController.Index (MyWebAppt2v821.HttpApi.Host) in 212.9086ms
    2024-08-07 21:18:05.432 -07:00 [INF] Executed endpoint 'MyWebAppt2v821.Controllers.HomeController.Index (MyWebAppt2v821.HttpApi.Host)'
    2024-08-07 21:18:05.497 -07:00 [DBG] Running health check MyWebAppt2v821 DbContext Check
    2024-08-07 21:18:05.546 -07:00 [DBG] Connection ID "17509995412151337144" disconnecting.
    2024-08-07 21:18:05.553 -07:00 [INF] Request starting HTTP/2 GET https://localhost:44326/swagger/index.html - null null
    2024-08-07 21:18:05.560 -07:00 [DBG] The request path /swagger/index.html does not match an existing file
    2024-08-07 21:18:05.563 -07:00 [DBG] No candidates found for the request path '/swagger/index.html'
    2024-08-07 21:18:05.564 -07:00 [DBG] Request did not match any endpoints
    2024-08-07 21:18:05.564 -07:00 [INF] Request finished HTTP/2 GET https://localhost:44326/ - 302 null null 1362.3689ms
    2024-08-07 21:18:05.565 -07:00 [DBG] AuthenticationScheme: Bearer was not authenticated.
    2024-08-07 21:18:05.574 -07:00 [DBG] Successfully validated the token.
    2024-08-07 21:18:05.583 -07:00 [DBG] AuthenticationScheme: Bearer was successfully authenticated.
    2024-08-07 21:18:05.735 -07:00 [DBG] Response markup is scheduled to include Browser Link script injection.
    2024-08-07 21:18:05.752 -07:00 [DBG] Response markup is scheduled to include browser refresh script injection.
    2024-08-07 21:18:05.771 -07:00 [DBG] Response markup was updated to include Browser Link script injection.
    2024-08-07 21:18:05.773 -07:00 [DBG] Response markup was updated to include browser refresh script injection.
    2024-08-07 21:18:05.776 -07:00 [DBG] Connection ID "17509995412151337146" disconnecting.
    2024-08-07 21:18:05.776 -07:00 [INF] Request finished HTTP/2 GET https://localhost:44326/swagger/index.html - 200 null text/html;charset=utf-8 223.7829ms
    2024-08-07 21:18:05.816 -07:00 [INF] Request starting HTTP/2 GET https://localhost:44326/_framework/aspnetcore-browser-refresh.js - null null
    2024-08-07 21:18:05.831 -07:00 [DBG] Connection ID "17870283339391303723" disconnecting.
    2024-08-07 21:18:05.834 -07:00 [INF] Request finished HTTP/2 GET https://localhost:44326/_framework/aspnetcore-browser-refresh.js - 200 13790 application/javascript; charset=utf-8 14.7634ms
    2024-08-07 21:18:05.882 -07:00 [INF] Request starting HTTP/2 GET https://localhost:44326/_vs/browserLink - null null
    2024-08-07 21:18:06.095 -07:00 [DBG] Connection ID "18374686484771897496" disconnecting.
    2024-08-07 21:18:06.109 -07:00 [INF] Request finished HTTP/2 GET https://localhost:44326/_vs/browserLink - 200 null text/javascript; charset=UTF-8 226.3453ms
    2024-08-07 21:18:06.182 -07:00 [INF] Request starting HTTP/2 GET https://localhost:44326/swagger/v1/swagger.json - null null
    2024-08-07 21:18:06.183 -07:00 [DBG] The request path /swagger/v1/swagger.json does not match an existing file
    2024-08-07 21:18:06.184 -07:00 [DBG] No candidates found for the request path '/swagger/v1/swagger.json'
    2024-08-07 21:18:06.184 -07:00 [DBG] Request did not match any endpoints
    2024-08-07 21:18:06.184 -07:00 [DBG] AuthenticationScheme: Bearer was not authenticated.
    2024-08-07 21:18:06.916 -07:00 [DBG] Get dynamic claims cache for user: f013c66b-5934-3194-4231-3a1441a8b387
    2024-08-07 21:18:07.282 -07:00 [ERR] An unhandled exception has occurred while executing the request.
    Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation for action - Volo.Chat.Conversations.ConversationController.SendMessageAsync (Volo.Chat.HttpApi). See inner exception
     ---> Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate schema for type - Volo.Chat.Messages.SendMessageInput. See inner exception
     ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Volo.Abp.Validation.DynamicStringLengthAttribute..ctor(Type sourceType, String maximumLengthPropertyName, String minimumLengthPropertyName)
       at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
       at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType)
       at Swashbuckle.AspNetCore.SwaggerGen.MemberInfoExtensions.GetInlineAndMetadataAttributes(MemberInfo memberInfo)
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.CreateObjectSchema(DataContract dataContract, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.<>c__DisplayClass10_0.<GenerateConcreteSchema>b__3()
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.GenerateReferencedSchema(DataContract dataContract, SchemaRepository schemaRepository, Func`1 definitionFactory)
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.GenerateConcreteSchema(DataContract dataContract, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.GenerateSchemaForParameter(Type modelType, SchemaRepository schemaRepository, ParameterInfo parameterInfo, ApiParameterRouteInfo routeInfo)
       at Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator.GenerateSchema(Type modelType, SchemaRepository schemaRepository, MemberInfo memberInfo, ParameterInfo parameterInfo, ApiParameterRouteInfo routeInfo)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateSchema(Type type, SchemaRepository schemaRepository, PropertyInfo propertyInfo, ParameterInfo parameterInfo, ApiParameterRouteInfo routeInfo)
       --- End of inner exception stack trace ---
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateSchema(Type type, SchemaRepository schemaRepository, PropertyInfo propertyInfo, ParameterInfo parameterInfo, ApiParameterRouteInfo routeInfo)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateRequestBodyFromBodyParameter(ApiDescription apiDescription, SchemaRepository schemaRepository, ApiParameterDescription bodyParameter)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateRequestBody(ApiDescription apiDescription, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperation(ApiDescription apiDescription, SchemaRepository schemaRepository)
       --- End of inner exception stack trace ---
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperation(ApiDescription apiDescription, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerDocumentWithoutFilters(String documentName, String host, String basePath)
       at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerAsync(String documentName, String host, String basePath)
       at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.Security.Claims.AbpDynamicClaimsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
       at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
       at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.&lt;&gt;c__DisplayClass2_0.&lt;&lt;CreateMiddleware&gt;b__0>d.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
    2024-08-07 21:18:07.336 -07:00 [INF] Request finished HTTP/2 GET https://localhost:44326/swagger/v1/swagger.json - 500 null text/plain; charset=utf-8 1154.9528ms
    2024-08-07 21:18:07.345 -07:00 [DBG] Connection ID "18230571343940681939" disconnecting.
    2024-08-07 21:18:07.427 -07:00 [DBG] Static files was skipped as the request already matched an endpoint.
    2024-08-07 21:18:07.431 -07:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)'
    2024-08-07 21:18:07.496 -07:00 [INF] Route matched with {area = "abp", action = "Get", controller = "AbpApplicationConfiguration", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationRequestOptions) on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController (Volo.Abp.AspNetCore.Mvc).
    2024-08-07 21:18:07.496 -07:00 [DBG] Execution plan of authorization filters (in the following order): ["Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter"]
    2024-08-07 21:18:07.496 -07:00 [DBG] Execution plan of resource filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"]
    2024-08-07 21:18:07.496 -07:00 [DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)","Volo.Abp.AspNetCore.Mvc.GlobalFeatures.GlobalFeatureActionFilter","Volo.Abp.AspNetCore.Mvc.Auditing.AbpAuditActionFilter","Volo.Abp.AspNetCore.Mvc.Response.AbpNoContentActionFilter","Volo.Abp.AspNetCore.Mvc.Features.AbpFeatureActionFilter","Volo.Abp.AspNetCore.Mvc.Validation.AbpValidationActionFilter","Volo.Abp.AspNetCore.Mvc.Uow.AbpUowActionFilter"]
    
    
  • User Avatar
    0
    rwright-ruhealth created

    I added as much of the relevant host log as possible. This is where the exceptions happen after the CHAT packages are replaced with the source code in a brand new solution created with ABP Studio/ABP Suite on 8.2.1 I can login, administer the server openiddict, etc.I can't use CHAT at all after swapping to Source Code.

    From ABP STUDIO exceptions for the HttpApi.Host I get. Error : Failed to generate Operation for action - Volo.Chat.Conversations.ConversationController.SendMessageAsync (Volo.Chat.HttpApi). See inner exception Exception Type: Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException Souorce Swashbuckle.AspNetCore.SwaggerGetn.SwaggerGeneratorException. Stack Trace: at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperation(ApiDescription apiDescription, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable1 apiDescriptions, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable1 apiDescriptions, SchemaRepository schemaRepository) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerDocumentWithoutFilters(String documentName, String host, String basePath) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwaggerAsync(String documentName, String host, String basePath) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Security.Claims.AbpDynamicClaimsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    [ERR] An unhandled exception has occurred while executing the request. Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation for action - Volo.Chat.Conversations.ConversationController.SendMessageAsync (Volo.Chat.HttpApi). See inner exception ---> Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate schema for type - Volo.Chat.Messages.SendMessageInput. See inner exception ---> System.NullReferenceException: Object reference not set to an instance of an object.

    We will fix this in 8.2.2, sorry for that.

    If you are using the source code of Chat. You can fix this by change chat/src/Volo.Chat.Application.Contracts/Volo/Chat/Messages/SendMessageInput.cs

  • User Avatar
    0
    rwright-ruhealth created

    hi

    [ERR] An unhandled exception has occurred while executing the request. Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation for action - Volo.Chat.Conversations.ConversationController.SendMessageAsync (Volo.Chat.HttpApi). See inner exception ---> Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate schema for type - Volo.Chat.Messages.SendMessageInput. See inner exception ---> System.NullReferenceException: Object reference not set to an instance of an object.

    We will fix this in 8.2.2, sorry for that.

    If you are using the source code of Chat. You can fix this by change chat/src/Volo.Chat.Application.Contracts/Volo/Chat/Messages/SendMessageInput.cs

    My code already has this exact line. In fact, I have all of this code in the SendMessageInput.cs file. Is there anything else I can try? I did clean all projects deleting the bin and obj folders. A rebuild did not solve the solution.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a project that I can test?

    liming.ma@volosoft.com

  • User Avatar
    0
    rwright-ruhealth created

    hi

    Can you share a project that I can test?

    liming.ma@volosoft.com

    yes. Where should I upload it?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can use Gmail or onedrive or https://wetransfer.com/

  • User Avatar
    0
    rwright-ruhealth created

    hi

    You can use Gmail or onedrive or https://wetransfer.com/

    I sent it via wetransfer to your email address as listed in this support chat. Says it's available for 3 days. Thanks. It si coming from my gmail account which is almost similar to my username here. - almost.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Change your ChatMessageConsts as code below:

    namespace Volo.Chat.Messages;
    
    public static class ChatMessageConsts
    {
        public static int MaxTextLength { get; set; } = 4 * 1024; //4KB
        public static int MinTextLength { get; set; } = 1;
    }
    
    

  • User Avatar
    0
    rwright-ruhealth created

    hi

    First. Please test your app withour virtual directory .

    Then set log level to Debug and share your application logs.

    Thanks.

    public class Program 
    { 
        public async static Task<int> Main(string[] args) 
        { 
            Log.Logger = new LoggerConfiguration() 
                .MinimumLevel.Debug() 
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) 
                .Enrich.FromLogContext() 
                .WriteTo.Async(c => c.File("Logs/logs.txt")) 
                .WriteTo.Async(c => c.Console()) 
                .CreateLogger(); 
    

    In regards to this virtual directory issue where I cannot add roles or users, but I can login, can you investigate the project if I send it over? Everything works except user management. Also, the RabbitMQ errors
    Of note: I have a working version in 7.4.2 which I had to heavily modify. It works perfectly with CHAT and FileManagement sources installed. I am trying to upgrade and the upgrade breaks everything. Now, I am rebuilding from scratch in v.8.2.1 MVC/EF/SQLServer Tiered. My main issues seem to center around the application not working as soon as it's served from https://servername.org/myapp .

  • User Avatar
    0
    rwright-ruhealth created

    hi

    First. Please test your app withour virtual directory .

    Then set log level to Debug and share your application logs.

    Thanks.

    public class Program 
    { 
        public async static Task<int> Main(string[] args) 
        { 
            Log.Logger = new LoggerConfiguration() 
                .MinimumLevel.Debug() 
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) 
                .Enrich.FromLogContext() 
                .WriteTo.Async(c => c.File("Logs/logs.txt")) 
                .WriteTo.Async(c => c.Console()) 
                .CreateLogger(); 
    

    I sent you the api log and web log via wetransfer. Included #7669 in the info.

  • User Avatar
    0
    rwright-ruhealth created

    hi

    First. Please test your app withour virtual directory .

    Then set log level to Debug and share your application logs.

    Thanks.

    public class Program  
    {  
        public async static Task<int> Main(string[] args)  
        {  
            Log.Logger = new LoggerConfiguration()  
                .MinimumLevel.Debug()  
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)  
                .Enrich.FromLogContext()  
                .WriteTo.Async(c => c.File("Logs/logs.txt"))  
                .WriteTo.Async(c => c.Console())  
                .CreateLogger();  
    

    I sent you the api log and web log via wetransfer. Included #7669 in the info.

    I should also note that if you create a fresh project and include the account source or the chat source using ABP studio version 0.7.5 you will also not be able to login with the account source module installed on a fresh application with no modifications.

  • User Avatar
    0
    rwright-ruhealth created

    After some testing and experimenting with ABP Studio 0.7.5 beta and it's use of the new CLI and templates even for v 8.2.1 I have arrived at the conclusion ABP Studio does not properly tie the SOURCES into the application.

    After completely uninstalling ABP Studio and all remnants from .dotnet tools .abp .abpsuite, .nuget removed all Volo.* packages etc, then reinstalling the standard ABP CLI v 8.2.1 and then log in and install the old version of ABP SUITE 8.2.1 problems solved re installing account source. I can now create roles and users again.

    However, once I installed the CHAT source, I am no longer able to login again. This is really buggy. I am using the CHAT source successfully in version 7.4.2 with no problems.

    FYI I even used ABP studio on 8.3 RC1 and problems got even worse. Could not even launch the app correctly.
    Some serious in-house testing is needed for ABP Suite beta especially if the project developers plan to install the sources for customizations.

  • User Avatar
    0
    rwright-ruhealth created

    hi

    Change your ChatMessageConsts as code below:

    namespace Volo.Chat.Messages; 
     
    public static class ChatMessageConsts 
    { 
        public static int MaxTextLength { get; set; } = 4 * 1024; //4KB 
        public static int MinTextLength { get; set; } = 1; 
    } 
     
    

    These Const declarations exist already in a new 8.2.1 project.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    However, once I installed the CHAT source, I am no longer able to login again. This is really buggy.

    Can you share the logs?

    The logs you have shared show the RabbitMQ error causing the 500 error.

    What is your RabbitMQ configuration? Does it need username and password?

    RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed) ---> RabbitMQ.Client.Exceptions.ConnectFailureException: Connection failed ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.

  • User Avatar
    0
    rwright-ruhealth created

    hi

    However, once I installed the CHAT source, I am no longer able to login again. This is really buggy.

    Can you share the logs?

    The logs you have shared show the RabbitMQ error causing the 500 error.

    What is your RabbitMQ configuration? Does it need username and password?

    RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed) ---> RabbitMQ.Client.Exceptions.ConnectFailureException: Connection failed ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.

    I sent the logs via wetransfer. I believe the issues arise when the project is tiered with separate openiddict server and host api. I downgraded to 8.1.5 and I am using a non-tiered but layered MVC / EF project and installing and testing piece by piece. On 8.2.1 ABP even GDPR fails to load. Too many issues arose trying to go tiered. Then, when I added the (should be standard) virtual directory in IIS, everything goes from bad to worse.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, I have downloaded your logs.

    The main problem currently is RabbitMQ

    No connection could be made because the target machine actively refused it.

    What is your RabbitMQ configuration? Does it need a username and password?

  • User Avatar
    0
    rwright-ruhealth created

    Yes, I have downloaded your logs.

    The main problem currently is RabbitMQ

    No connection could be made because the target machine actively refused it.

    What is your RabbitMQ configuration? Does it need a username and password?

    My RabbitMQ is using the ABP out of the box configuration. Where would a password be set?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please share your RabbitMQ configuration in appsettins.json

  • User Avatar
    0
    rwright-ruhealth created

    Please share your RabbitMQ configuration in appsettins.json

    I am working on recreating a new project with the same configuration. Purpose is to create an error log after each source code module is installed. Current setup has RabbitMQ and Redis installed on the IIS server. Discovered the RabbitMQ server was stopped which caused the RabbitMQ errors. Started the RabbitMQ and other issues popped up. Could not login. Will Reinstall fresh and Track the progress for each module install. Something seems to break when adding sources instead of the packages. Will attach logs to this ticket. Via WeTransfer if preferred. Also, can attach a project stripped of the binaries, if needed.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks 👍

  • User Avatar
    0
    rwright-ruhealth created

    So far, builds are inconsistent when adding sources. I'm using ABP Studio and 8.2.1 ABP Sources. ABP Studio leaves a lot of version 7 .dotnet stuff in place as well. I am going to close this ticket and wait for additional improvements to ABP Studio. ABP Suite and ABP Studio do not pull the same bits. This is clear from my experience and research into both projects.

    AS for the Virtual Directory /Subdirectory tiered site where you have a separate auth server, web site and api host as in: mywebsite.com/dogs-authserver mywebsite.com/dogs-apihost mywebsite.com/dogs-website where the prefix "dogs" is just to let us know these sites work together in a dependency. the next site on this server could very well be: mywebsite.com/cats-authserver mywebsite.com/cats-apihost mywebsite.com/cats-website

    WE prefer not to use multiple DNS FQDN names, i.e., dogs-apihost.mywebsite.com dogs-authserver.mywebsite.com dogs-website.mywebsite.com etc.

    Additionally, 8.2.1 version with STUDIO seems to REQUIRE REDIS and RabbitMQ if you do anything tiered. Version 8.1.5 Does not.

    Where can I report BUGS directly for quality improvement of ABP STUDIO now on version 0.7.6 with many of the same issues as its predecessors? Thanks, ABP TEAM.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Where can I report BUGS directly for quality improvement of ABP STUDIO now on version 0.7.6 with many of the same issues as its predecessors?

    https://abp.io/support/questions/6416/ABP-Studio-Bugs--Issues

    Thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35