Base solution for your next web application

Activities of "SASIMEXICO"

Hi guys,

I configured the token expiration in 15 minutes and works perfect. But can be possible to make this 15 minutes countdown only for inactivity time, not 15 minutes ever?

Thx!

Hi,

I'm using Zero 12.0.0 with net maui app NET8.0, compiling with net-ios 8.0 and net8.0-android34.

For Android all is fine, but for iOS never starts de app, always in spinner screen forever.

My project definition

<Project Sdk="Microsoft.NET.Sdk.Razor"> <PropertyGroup> <OutputType>Exe</OutputType> <RootNamespace>GenTime.Mobile.MAUI</RootNamespace> <UseMaui>true</UseMaui> <SingleProject>true</SingleProject> <ImplicitUsings>enable</ImplicitUsings> <EnableDefaultCssItems>false</EnableDefaultCssItems> <AssemblyName>GenTime.Mobile.MAUI</AssemblyName> <!-- Display name --> <ApplicationTitle>TuWawa</ApplicationTitle> <!-- App Identifier --> <ApplicationId>com.tenerife.cabildo.tuwawa</ApplicationId> <ApplicationIdGuid>5664ADE0-0A6B-4CFF-A3FD-975486AE90CA</ApplicationIdGuid> <!-- Versions --> <ApplicationDisplayVersion>1.68</ApplicationDisplayVersion> <ApplicationVersion>68</ApplicationVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">23.0</SupportedOSPlatformVersion> <TargetFrameworks>net8.0-ios;net8.0-android34.0</TargetFrameworks> <Title>Movilidad Tenerife</Title> <Version>1</Version> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-android33.0|AnyCPU'"> <AndroidPackageFormat>apk</AndroidPackageFormat> <AndroidKeyStore>False</AndroidKeyStore> <AndroidUseAapt2>True</AndroidUseAapt2> <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-android33.0|AnyCPU'"> <AndroidKeyStore>False</AndroidKeyStore> <AndroidUseAapt2>True</AndroidUseAapt2> <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi> <AndroidPackageFormat>apk</AndroidPackageFormat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'"> <BuildIpa>False</BuildIpa> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-ios|AnyCPU'"> <BuildIpa>False</BuildIpa> <CodesignResourceRules>Platforms\iOS\Info.plist</CodesignResourceRules> <CodesignEntitlements>Platforms\iOS\Info.plist</CodesignEntitlements> </PropertyGroup> <PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'"> <ProvisioningType>manual</ProvisioningType> <CodesignKey>iPhone Distribution</CodesignKey> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-android33.0|AnyCPU'"> <AndroidPackageFormat>apk</AndroidPackageFormat> <AndroidUseAapt2>True</AndroidUseAapt2> <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-android33.0|AnyCPU'"> <AndroidUseAapt2>True</AndroidUseAapt2> <AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi> <AndroidPackageFormat>apk</AndroidPackageFormat> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'"> <CodesignResourceRules>Platforms\iOS\Info.plist</CodesignResourceRules> <CodesignEntitlements>Platforms\iOS\Info.plist</CodesignEntitlements> </PropertyGroup> <ItemGroup> <!-- App Icon --> <MauiIcon Include="Resources\AppIcon\appicon.svg" Color="#353742" BaseSize="128,128" /> <!-- Splash Screen --> <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#FFFFFF" BaseSize="150,55" /> <!-- Images --> <MauiImage Include="Resources\Images*" /> <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> <!-- Custom Fonts --> <MauiFont Include="Resources\Fonts*" /> <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> <MauiAsset Include="Resources\Raw**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> </ItemGroup> <ItemGroup> <PackageReference Include="Abp" Version="8.0.0" /> <PackageReference Include="Abp.AutoMapper" Version="8.0.0" /> <PackageReference Include="Abp.Web.Common" Version="8.0.0" /> <PackageReference Include="Abp.Zero.Common" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" /> <PackageReference Include="Plugin.LocalNotification" Version="10.1.8" /> <PackageReference Include="Xam.Plugin.Connectivity" Version="4.0.0.190-beta" /> <PackageReference Include="Xam.Plugins.Settings" Version="4.1.0-beta" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\GenTime.Application.Client\GenTime.Application.Client.csproj" /> <ProjectReference Include="..\GenTime.Application.Shared\GenTime.Application.Shared.csproj" /> </ItemGroup> <ItemGroup> <Folder Include="wwwroot\media\misc&quot; /> </ItemGroup> <ProjectExtensions> <VisualStudio> <UserProperties XamarinHotReloadDebuggerTimeoutExceptionGenTimeMobileMAUIHideInfoBar="True" /> </VisualStudio> </ProjectExtensions> </Project>

My info.plist

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>LSRequiresIPhoneOS</key> <true/> <key>UIBackgroundModes</key> <array> <string>location</string> </array> <key>UIDeviceFamily</key> <array> <integer>1</integer> <integer>2</integer> </array> <key>UIRequiredDeviceCapabilities</key> <array> <string>arm64</string> <string>gps</string> <string>location-services</string> <string>wifi</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> </array> <key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> <key>XSAppIconAssets</key> <string>Assets.xcassets/appicon.appiconset</string> <key>NSLocationWhenInUseUsageDescription</key> <string>Movilidad requires GPS to track cars and travel orders</string> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <string>Movilidad requires GPS in background to track cars and travel orders</string> <key>NSCameraUsageDescription</key> <string>This app requires access to your camera. Please grant access to your camera when requested.</string> <key>NSMicrophoneUsageDescription</key> <string>This app requires access to your microphone. Please grant access to your microphone when requested.</string> <key>LSApplicationQueriesSchemes</key> <array> <string>http</string> <string>mailto</string> </array> <key>CFBundleIdentifier</key> <string>com.tenerife.cabildo.movilidad</string> <key>CFBundleShortVersionString</key> <string>1.68</string> <key>CFBundleDisplayName</key> <string>MovilidadTenerife</string> </dict> </plist>

Any suggestion?

Zero 12.0.1 Mobile.MAUI

Just starting a clean solution and this happen.

Any solution?

Hi,

Using latest Zero 12 When using the busyIf directive the content show overlay but not the spinner ball rotate...

When access to Configuration component (with all tabs, starting with time zone as default) the api returns a error 500 then no time zones listed, in host and tenant too.

I'm using a zero 12.0.1 (latest with NET7) and postgree.

Any solution, please?

What steps would need to be taken in order to convert an ASP.NET Zero application to a hybrid database architecture, specifically in regard to the addition of a new tenant that requires a separate database?

we've added a custom connection string to the tenant, but it doesn't seem to use it at all. We've not found anything clear in the documentation.

Are we missing a step?

Hi ZERO,

I'm trying to add a openweathermap API call into my project, then always return CORS error.

Service Proxy

export class WeatherServiceProxy { private httpClient: HttpClient;

constructor(@Inject(HttpClient) httpClient: HttpClient) {
    this.httpClient = httpClient;
}

getCurrentWeather(lat: string, lon: string, apiKey) {
    let url = 'https://api.openweathermap.org/data/2.5/weather?lat=' + lat + '&lon=' + lon + '&units=metric&APPID=' + apiKey;
    return this.httpClient.get(url);
}

}

Component Call

    this.weatherService.getCurrentWeather('41.69059766384649', '2.4914624650715758', this.openWeatherMapAPIKey)
        .subscribe(res => {
            console.log('getCurrentWeather', res);
            this.currentWeather = res;
        }, err => {
        }, () => {
            console.log('error');
        })

The call always crash for CORS

Access to XMLHttpRequest at 'https://api.openweathermap.org/data/2.5/weather?lat=41.69059766384649&lon=2.4914624650715758&units=metric&APPID=66c99a512af822a19700e0fb026aad4b' from origin 'https://gensam.dev.sasi.com.es' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

GET https://api.openweathermap.org/data/2.5/weather?lat=41.69059766384649&lon=2.4914624650715758&units=metric&APPID=66c99a512af822a19700e0fb026aad4b net::ERR_FAILED

I tried same ServiceProxy and same component into other project .NET6 + Angular NOT ZERO, then the call to openweathermap API runs perfect, already in localhost. Maybe the ZERO solution need to implement something to resolve this CORS issue? Any additional config?

In the same way, I can't use power-bi angular module for the same reason... always CORS error/issue.

Need help and solution for this issue. Thanks!

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 7.1.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net 6

If issue related with ABP Framework

  • What is ABP Framework version? .net 6

If issue is about UI

  • Which theme are you using? default
  • What are the theme settings? default

other

DB : PostgreSQL

Npgsql version: 6.0.3

The project is starting. Only the changes to use PostgreSQL have been applied.

Exception message and stack trace:

Microsoft.EntityFrameworkCore.DbUpdateException HResult=0x80131500 Mensaje = An error occurred while saving the entity changes. See the inner exception for details. Origen = Microsoft.EntityFrameworkCore.Relational Seguimiento de la pila: en Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) en Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection) en Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList1 entries) en Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList1 entriesToSave) en Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) en Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<>c.<SaveChanges>b__104_0(DbContext _, ValueTuple2 t) en Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) en Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) en Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) en Microsoft.EntityFrameworkCore.DbContext.SaveChanges() en Abp.EntityFrameworkCore.AbpDbContext.SaveChanges() en Abp.Zero.EntityFrameworkCore.AbpZeroCommonDbContext3.SaveChanges() en SenerDemo.Migrations.Seed.Host.DefaultEditionCreator.CreateEditions() en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\Host\DefaultEditionCreator.cs: línea 31 en SenerDemo.Migrations.Seed.Host.DefaultEditionCreator.Create() en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\Host\DefaultEditionCreator.cs: línea 21 en SenerDemo.Migrations.Seed.Host.InitialHostDbBuilder.Create() en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\Host\InitialHostDbBuilder.cs: línea 16 en SenerDemo.Migrations.Seed.SeedHelper.SeedHostDb(SenerDemoDbContext context) en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\SeedHelper.cs: línea 26 en SenerDemo.Migrations.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action1 contextAction) en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\SeedHelper.cs: línea 42 en SenerDemo.Migrations.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\Migrations\Seed\SeedHelper.cs: línea 18 en SenerDemo.EntityFrameworkCore.SenerDemoEntityFrameworkCoreModule.PostInitialize() en C:\Toni\GitLab\sener\src\SenerDemo.EntityFrameworkCore\EntityFrameworkCore\SenerDemoEntityFrameworkCoreModule.cs: línea 64 en Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2(AbpModuleInfo module) en System.Collections.Generic.List1.ForEach(Action1 action) en Abp.Modules.AbpModuleManager.StartModules() en Abp.AbpBootstrapper.Initialize()

Esta excepción se generó originalmente en esta pila de llamadas: [Código externo]

Excepción interna 1: InvalidCastException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array/range. See the Npgsql.EnableLegacyTimestampBehavior AppContext switch to enable legacy behavior.

Steps to reproduce the issue:"

I create a new solution via Abp Suite (Postgres)

Add Migration (Initial)

Run solution

I get above error.

Note:

If I put floowing code in Startup.cs error goes away. AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);

This could be considered a bug?

Regards

Prerequisites

  • What is your product version?
    • 10.3
      
  • What is your product type (Angular or MVC)?
    • Angular 
      
  • What is product framework type (.net framework or .net core)?
    • .NET Core

Question

Since 10.x came out what is the intended way to create a default Dashboard?

When adding new entries to MenuProvider.cs we wanted to add a little "sub menu"(collapsable list for example), but NavigationMeuItem doesn't seem to have any sort of property to allow that. Is there an official/intended implementation for this?

Showing 1 to 10 of 36 entries