Activities of "david.hurtado"

  • ABP Framework version: v4.0.1
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace: Access to XMLHttpRequest at 'https://api.server.com:51114/.well-known/openid-configuration' from origin 'https://front.server.com:51113' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • Steps to reproduce the issue:

We publish an empty app generate with ABP Suite. The deployment of the project is on IIS. API show me Swagger page and Angular Front app is runing but after make login i got this console error:

***Access to XMLHttpRequest at 'https://api.server.com:51114/.well-known/openid-configuration' from origin 'https://front.server.com:51113' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource***.
And the error promt is this:
***An error has occurred!
http failure response for https://api.server.com:51114/api/abp/application-configuration: 0 Unknown Error***

Checkig on the API's log file i found following code:
***[ERR] Connection ID "16717361818409893977", Request ID "8000005a-0000-e800-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://api.server.com:51114/.well-known/openid-configuration'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'https://front.server.com:51114/.well-known/openid-configuration'.
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host***

This is code that i have on the API

private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{
   context.Services.AddAuthentication()
       .AddJwtBearer(options =>
       {
           options.Authority = configuration["AuthServer:Authority"];
           options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]); ;
           options.Audience = "Tickets";
           options.BackchannelHttpHandler = new HttpClientHandler()
           {
               ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
           };
       });
}
    ***Google the error, someone says it's certificate error so we recreate a new certificate, but same error.***
Answer

Hi @christianharo You can bypass that error Clenning Browser cache history, Or Star the app in the browser private mode.

Hi, @nowayja

Another option you can do is this:

  1. Uninstall ABP Suite:
    1. CLI Command=> dotnet tool uninstall -g Volo.Abp.Suite
  2. Update you ABP with donet tool to ABP FW 4.0.0 stable.
  3. Delete all bin and obj folders in your project.
  4. Install ABP Suite Again.
  5. Create or add a new emty project and try to generate whith a new entity.
  6. After that select your fisrt project and update all nuggets, is important that all nuggets project has been on ABP 4.0.0 and blazorise 0.9.3-preview-2
  7. Try to generate. Good Look...

@alper Thanks for your help and suggets. I gonna probe that option.

I wan to make aditional comment We had been make a publish with ABP 3.3.1 on comunity version. And we don't get this errors. For Commercial ABP 4.0.0 with dot net 5, the numbers of files has incremented sifnificative, and is on this version when staring this errors.

Answer

@alper Thanks for your recomendations. I follow and make steps incate for you. Except rename Blazor Dll's No I get a vareity of error but Blazor App don't star. On Opera I get this conosole log message: Uncaught SyntaxError: Unexpected token '<' On Edge i get something like: Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR :51113/_framework/System.Numerics.dll:1 Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR 2galacweb.galac.com/:1 Uncaught (in promise) TypeError: Failed to fetch :51113/_framework/System.Reflection.Emit.ILGeneration.dll:1 Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR Do you have any suggest?

Answer

When I generate a Blazor Project (Using ABP4.0.0 stable) to Publish, compiler show me this error: System.Runtime.CompilerServices.SuppressIldasmAttribute.SuppressIldasmAttribute(): Error processing method 'System.Runtime.CompilerServices.SuppressIldasmAttribute.SuppressIldasmAttribute()' in assembly That's error doesn't appear when i compile to release or debug. Only show me that when i go to Publish Option. To avoid that i put Publish Trimmed option in false. <PublishTrimmed>false</PublishTrimmed> But when i deploy on testing server i got this console error. Failed to find a valid digest in the 'integrity' attribute for resource '<URL>' with computed SHA-256 integrity. When i run app on IDE Mode every thing it's Ok

I had a similar error: what I see the Blazorise nugget component you have referenced is wrong. You must use at least version 0.9.3-preview2; Since from that version it is compiled to MS Framework 5.0. You need to change the initialization in the Blazor project which changed as well.

Ok i Update all references of my project but it's doesn't work. But create a new project and copy the entities again and it's works. Generate alll the code without problems. Thanks for your help

Thanks for yours answers but It doesn't works. I made this: 1,. Delte all bin and obje folders on the project 2,. Run this command on my terminal: <i>dotnet tool uninstall -g Volo.Abp.Suite</i> 3, I get this message: "<i>Tool 'volo.abp.suite' (version '4.0.0') was successfully uninstalled.</i>" 4,. after thar i Run abp suite install

And again show me and error and not complete the generation of code. Show me the same error...

I created a project with ABP Suite framework 4.0.0 final relase, and i get an error when the UI on Blazor is generating. The project is running on ABP Framework 4.0.0 RC-4, and i get this error from that version Today update ABP Suite to final relase but error remain The error log is this: Message: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Frontend.Blazor.Page.Partials.Enum_Namespaces.txt

  • ABP Framework version: v4.0.0
  • UI type: BLAZOR
  • Exception message and stack trace: Log: Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Frontend.Blazor.Page.Partials.EnumNamespaces.txt at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.BlazorUiGenerateCommand.wcIsGR8h84(String ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.BlazorUiGenerateCommand.p9isrH12X8() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.BlazorUiGenerateCommand.qPSsdB9kTU() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.BlazorUiGenerateCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambdamethod1426(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
Showing 51 to 60 of 60 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11