Base solution for your next web application

Activities of "SASIMEXICO"

Hi guys,

I changed the new method for the old method (previous zero versions) and works fine now. But don't think that is better solution if zero 12 method is diferent for any reason.

    public List<NameValueDto> _GetWindowsTimezones()
    {
        return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz)
            .Select(tz => new NameValueDto
            {
                Value = tz,
                Name = TZConvert.WindowsToIana(tz) + " (" + GetTimezoneOffset(TZConvert.GetTimeZoneInfo(tz)) + ")"
            }).OrderBy(e=> e.Name).ToList();
    }

    public List<NameValueDto> GetWindowsTimezones()
    {
        var kk = TZConvert.KnownWindowsTimeZoneIds;
        return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz)
            .Select(tz => new NameValueDto
            {
                Value = tz,
                Name = tz
            }).ToList();
    }

Solved. Just need to create a new HttpClient without request injections from ZERO

No. Isn't a API CORS issue. Isn't a call from API, is a call pure from front to openweathermap. Not a call to API. This call is working fine in all our NET6+Angular projects NOT ZERO. Only have this issue in ZERO projects.

The MVC JQuery tutorial works fine for ASP.NET Angular but with some changes:

  1. Upgrade Swashbuckle (4 nuggets) nugget to latest.
  2. Run yarn add @elsa-workflows/elsa-workflows-studio into solution root
  3. Run yarn add @elsa-workflows/elsa-workflow-designer into solution root
  4. Run yarn add monaco-editor into solution root
  5. Go to node_modules created folder for yarn and copy 3 distribution folders
  6. Then create a Elsa folder into wwwroot and paste 3 copied foldres from node_modules
  7. Modify _Host:

`

href="/Elsa/elsa-workflows-studio/assets/images/favicon-32x32.png"

href="/Elsa/elsa-workflows-studio/assets/images/favicon-16x16.png"

href="/Elsa/elsa-workflows-studio/assets/fonts/inter/inter.css"

href="/Elsa/elsa-workflows-studio/elsa-workflows-studio.css"

src="/Elsa/monaco-editor/min/vs/loader.js"

src="/Elsa/elsa-workflows-studio/elsa-workflows-studio.esm.js"

monaco-lib-path="Elsa/monaco-editor/min"

`

Then works! Don't know why can't use what is into Elsa.Designer and need to copy manually all folders.

The MVC JQuery tutorial works fine for ASP.NET Angular but with some changes:

  1. Upgrade Swashbuckle (4 nuggets) nugget to latest.
  2. Run yarn add @elsa-workflows/elsa-workflows-studio into solution root
  3. Run yarn add @elsa-workflows/elsa-workflow-designer into solution root
  4. Run yarn add monaco-editor into solution root
  5. Go to node_modules created folder for yarn and copy 3 distribution folders
  6. Then create a Elsa folder into wwwroot and paste 3 copied foldres from node_modules
  7. Modify _Host:

`

href="/Elsa/elsa-workflows-studio/assets/images/favicon-32x32.png"

href="/Elsa/elsa-workflows-studio/assets/images/favicon-16x16.png"

href="/Elsa/elsa-workflows-studio/assets/fonts/inter/inter.css"

href="/Elsa/elsa-workflows-studio/elsa-workflows-studio.css"

src="/Elsa/monaco-editor/min/vs/loader.js"

src="/Elsa/elsa-workflows-studio/elsa-workflows-studio.esm.js"

monaco-lib-path="Elsa/monaco-editor/min"

`

Then works! Don't know why can't use what is into Elsa.Designer and need to copy manually all folders.

This not working for ASP.NET Core Angular. We are using this in Startup.cs:

using Abp.AspNetCore; using Abp.AspNetCore.Mvc.Antiforgery; using Abp.AspNetCore.SignalR.Hubs; using Abp.AspNetZeroCore.Web.Authentication.JwtBearer; using Abp.Castle.Logging.Log4Net; using Abp.Extensions; using Abp.Hangfire; using Abp.PlugIns; using Abp.Timing; using Castle.Facilities.Logging; using GenTime.AppService; using GenTime.Authorization; using GenTime.Chat; using GenTime.Configuration; using GenTime.Configure; using GenTime.EntityFrameworkCore; using GenTime.Identity; using GenTime.Schemas; using GenTime.Web.Chat.SignalR; using GenTime.Web.Common; using GenTime.Web.HealthCheck; using GenTime.Web.IdentityServer; using GenTime.Web.Swagger; using GraphQL.Server; using GraphQL.Server.Ui.Playground; using Hangfire; using HealthChecks.UI.Client; using IdentityServer4.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Server.Kestrel.Https; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; using Newtonsoft.Json; using Owl.reCAPTCHA; using StackExchange.Redis; using Stripe; using System; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Threading.Tasks; using HealthChecksUISettings = HealthChecks.UI.Configuration.Settings; using ILoggerFactory = Microsoft.Extensions.Logging.ILoggerFactory; using Microsoft.Extensions.Azure; using Azure.Storage.Queues; using Azure.Storage.Blobs; using Azure.Core.Extensions; using Elsa.Persistence.EntityFramework.Core.Extensions; using Elsa.Persistence.EntityFramework.Sqlite; using Elsa; using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Mvc; using Abp.AspNetCore.Mvc.Results; using Microsoft.AspNetCore.Mvc.Filters; using Abp.Dependency; using Abp.AspNetCore.Configuration; using Abp.AspNetCore.Mvc.Results.Wrapping; using Abp.AspNetCore.Mvc.Extensions; using Abp.Reflection.Extensions; using Elsa.Server.Api.Endpoints.WorkflowDefinitions;

When swagger is enabled cause error in:

        if (WebConsts.SwaggerUiEnabled)
        {
            //Swagger - Enable this line and the related lines in Configure method to enable swagger UI
            services.AddSwaggerGen(options =>
            {
                options.SwaggerDoc("v1", new OpenApiInfo() { Title = "GenTime API", Version = "v1" });
                options.DocInclusionPredicate((docName, description) => true);
                options.ParameterFilter<SwaggerEnumParameterFilter>();
                options.SchemaFilter<SwaggerEnumSchemaFilter>();
                options.OperationFilter<SwaggerOperationIdFilter>();
                options.OperationFilter<SwaggerOperationFilter>();
                options.CustomDefaultSchemaIdSelector();
            }).AddSwaggerGenNewtonsoftSupport();
        }`

ERROR: Could not load type 'Swashbuckle.AspNetCore.SwaggerGen.IDataContractResolver' from assembly 'Swashbuckle.AspNetCore.SwaggerGen, Version=6.2.1.0, Culture=neutral, PublicKeyToken=d84d99fb0135530a'.

and if swagger is disabled cause error in:

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapHub<GensecureHub>("/signalr-gensecure");

            // For Dashboard.
            endpoints.MapFallbackToPage("/_Home");

            endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
            endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");

            if (bool.Parse(_appConfiguration["HealthChecks:HealthChecksEnabled"]))
            {
                endpoints.MapHealthChecks("/health", new HealthCheckOptions()
                {
                    Predicate = _ => true,
                    ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
                });
            }
        });
   

ERROR: Unable to load one or more of the requested types. Could not load type 'Swashbuckle.AspNetCore.SwaggerGen.IDataContractResolver' from assembly 'Swashbuckle.AspNetCore.SwaggerGen, Version=6.2.1.0, Culture=neutral, PublicKeyToken=d84d99fb0135530a'.

When you will publish a good tutorial for ASP.NET Core Angular?

Thanks!

With dashboard too?

This tutorial works for ASP.NET Core Angular? Or only MVC JQuery?

It's solved ELSA 2 in 10.4?

Once again, this just defines what widgets are avaliable for each Dashboard. What we want to do is define the default location and size of the widgets, so that by default the dashboard isn't empty when the users access it for the first time

Showing 1 to 10 of 44 entries