HI guys, Last night my Azure CPU pegged high for no apparent reason at 03:32: There is nothing to suggest any errors in any logs but it appears that Zero decided to restart for some reason, here is my log:
INFO 2019-10-04 02:31:51,228 [178 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nuagecare.NcForm.NcFormAppService.SubmitForms (Nuagecare.Application) in 283.3617ms
INFO 2019-10-04 02:31:51,228 [178 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'Nuagecare.NcForm.NcFormAppService.SubmitForms (Nuagecare.Application)'
INFO 2019-10-04 02:31:51,228 [178 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 300.4157ms 200 application/json; charset=utf-8
**DEBUG 2019-10-04 02:32:47,023 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules...**
DEBUG 2019-10-04 02:32:47,289 [1 ] Abp.Modules.AbpModuleManager - Found 24 ABP modules in total.
DEBUG 2019-10-04 02:32:47,320 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.Web.Startup.NuagecareWebHostModule, Nuagecare.Web.Host, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,320 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.Web.NuagecareWebCoreModule, Nuagecare.Web.Core, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,320 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.NuagecareApplicationModule, Nuagecare.Application, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.NuagecareCoreModule, Nuagecare.Core, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AbpKernelModule, Abp, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.Ldap.AbpZeroLdapModule, Abp.Zero.Ldap, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetZeroCore.AbpAspNetZeroCoreModule, Abp.AspNetZeroCore, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.MailKit.AbpMailKitModule, Abp.MailKit, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.EntityFrameworkCore.NuagecareEntityFrameworkCoreModule, Nuagecare.EntityFrameworkCore, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,336 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerEntityFrameworkCoreModule, Abp.ZeroCore.IdentityServer4.EntityFrameworkCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerModule, Abp.ZeroCore.IdentityServer4, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetZeroCore.Web.AbpAspNetZeroCoreWebModule, Abp.AspNetZeroCore.Web, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,351 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,382 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.AspNetCore.SignalR.AbpAspNetCoreSignalRModule, Abp.AspNetCore.SignalR, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,382 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Nuagecare.Startup.NuagecareGraphQLModule, Nuagecare.GraphQL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,382 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Runtime.Caching.Redis.AbpRedisCacheModule, Abp.RedisCache, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,382 [1 ] Abp.Modules.AbpModuleManager - Loaded module: Abp.Hangfire.AbpHangfireAspNetCoreModule, Abp.HangFire.AspNetCore, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:47,398 [1 ] Abp.Modules.AbpModuleManager - 24 modules loaded.
DEBUG 2019-10-04 02:32:47,539 [1 ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2019-10-04 02:32:47,539 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2019-10-04 02:32:47,539 [1 ] o.Configuration.LanguageManagementConfig - Converted Nuagecare (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2019-10-04 02:32:47,554 [1 ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2019-10-04 02:32:48,539 [1 ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: Nuagecare.EntityFrameworkCore.NuagecareDbContext, Nuagecare.EntityFrameworkCore, Version=6.5.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2019-10-04 02:32:50,179 [1 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources.
DEBUG 2019-10-04 02:32:50,539 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp
DEBUG 2019-10-04 02:32:50,742 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero
DEBUG 2019-10-04 02:32:50,820 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Nuagecare
DEBUG 2019-10-04 02:32:50,836 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb
DEBUG 2019-10-04 02:32:50,851 [1 ] bp.Hangfire.HangfireBackgroundJobManager - Start background worker: Abp.Hangfire.HangfireBackgroundJobManager
DEBUG 2019-10-04 02:32:50,945 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Found 6 classes define auto mapping attributes
DEBUG 2019-10-04 02:32:50,945 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Web.Models.TokenAuth.ExternalLoginProviderInfoModel
DEBUG 2019-10-04 02:32:50,945 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Friendships.Cache.FriendCacheItem
DEBUG 2019-10-04 02:32:50,961 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Dto.OrganizationUnitDto
DEBUG 2019-10-04 02:32:50,961 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Dto.RoleDto
DEBUG 2019-10-04 02:32:50,961 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Dto.UserDto+RoleDto
DEBUG 2019-10-04 02:32:50,961 [1 ] Abp.AutoMapper.AbpAutoMapperModule - Nuagecare.Dto.UserDto+OrganizationUnitDto
DEBUG 2019-10-04 02:33:00,507 [1 ] enancy.SubscriptionExpirationCheckWorker - Start background worker: Nuagecare.MultiTenancy.SubscriptionExpirationCheckWorker
DEBUG 2019-10-04 02:33:00,507 [1 ] cy.SubscriptionExpireEmailNotifierWorker - Start background worker: Nuagecare.MultiTenancy.SubscriptionExpireEmailNotifierWorker
INFO 2019-10-04 02:33:01,179 [1 ] fire.SqlServer.SqlServerObjectsInstaller - Start installing Hangfire SQL objects...
INFO 2019-10-04 02:33:01,289 [1 ] fire.SqlServer.SqlServerObjectsInstaller - Hangfire SQL objects installed.
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Starting Hangfire Server
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Using job storage: 'SQL Server: tcp:nuagecare-sqlserver.database.windows.net,1433@Nuagecare'
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Using the following options for SQL Server job storage:
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Queue poll interval: 00:00:15.
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Using the following options for Hangfire Server:
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Worker count: 10
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Listening queues: 'default'
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Shutdown timeout: 00:00:15
INFO 2019-10-04 02:33:01,695 [1 ] Hangfire.BackgroundJobServer - Schedule polling interval: 00:00:15
FATAL 2019-10-04 02:33:03,679 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Hosting startup assembly exception
System.InvalidOperationException: Startup assembly StartupBootstrapper failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'StartupBootstrapper' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
FATAL 2019-10-04 02:33:03,695 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Hosting startup assembly exception
System.InvalidOperationException: Startup assembly DiagnosticServices.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'DiagnosticServices.HostingStartup' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
FATAL 2019-10-04 02:33:03,695 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Hosting startup assembly exception
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.AzureAppServices.HostingStartup' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
Note the three FATAL messages which we have been told to ignore because "Zero continues to operate normally so just ignore these messages". Hardly professional but hey-ho there we go. My question is why would this happen? I would attach my log file but there's no way to do it in this forum.
Hi guys, banging my head against a wall here so I thought I would reach out. I have a piece of server code which reads a default Word document store in blob storage. It then carries out a merge with these documents using entity data and then saved back to a different folder in the same container with a similar folder structure but under a unique folder created for the relevant entity. All relevant uri's are persisted in SQL Server for each document review. The cost of this when processing all documents in one go is considerable:
I have changed my server code to deal with individual requests and a delay between each. But I can't put a delay on the angular code so I can debug:
checkedIds.forEach((id) => {
let input = new LoadDefaultDocumentInput();
input.ncEntityId = this.ncEntity.id;
input.ncDocumentTemplateId = id;
//setTimeout(function () {
this._ncDocumentService.createDefaultDocument(input)
.pipe(delay(10000))
.subscribe((response) => {
this.newDocumentLoaded.emit(response);
if (id === _.last(checkedIds)) {
this.allDocumentsLoaded.emit(true);
setTimeout(function () {
this.showModalForDocumentsLoading.emit(false);
}, 5000);
}
});
//}, 10000);
});
Can anyone tell me why this .pipe(delay(10000))
command is not working? I have the requisite import from rxjs:
import { of } from 'rxjs/internal/observable/of';
import { delay, concatMap } from 'rxjs/operators';
Any ideas anyone?
I seem to remember a discussion about how to get the count of online users for each tenant using SignalR. Can anyone point me to the correct discussion? I have searched this forum and the github pages to no avail.
Hi Guys, Following the guidelines at SignalR Integration I have created a new SignalR hub based on the ChatHub in the Web.Core project. I want to be able to call a method on the hub from a service in my Application project but the Web.Core project is not available. The Zero chathub is accessed from the ChatController in the Web.Host project but I do not have a controller, simply a service in the Application project. What's the best way to do this?
Currently a user can lock themselves out of the system and an admin user (or someone with the requisite permission) can unlock that person by using the drop down Admin -> Users. It would be nice to see users who are locked out on the user grid and also the number of failed logins. Should I raise this as a change request on github or is it not something in your plans? Just asking, it's not a show stopper.
The latest versions of kendo's Angular components has deprecated the dependency on rxjs-compat. Can this package be removed safely from Zero or are there any other dependencies?
When I have a link table like the NcDocumentDocumentTag table below: How do I return the relevant NcDocumentTag records for the NcDocument table? In Entity Framework the NcDocumentTag table would normally be loaded through lazy loading but using Abp's repositories as follows doesn't work:
var NcDocument = await _ncDocumentRepository.GetAll()
.Where(m => m.Id == input.Id)
.Include(m => m.DocumentTags)
.FirstOrDefaultAsync();
And I would not have to create an entity in my Core project for the link table but that doesn't seem to work with the .Include() extension. Any ideas anyone?
6.8.0, angular, .net-core framework 4.6 I am getting the following error in my logs when releasing to a testing deployment slot in Azure (using publish method from Visual Studio for the .net core solution)
FATAL 2019-06-18 11:20:00,376 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Hosting startup assembly exception
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.AzureAppServices.HostingStartup' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of inner exception stack trace ---
The system appears to be working normally after this error is thrown but I don't like this kind of noise in my log. Does anyone have any ideas or pointers as to what may be causing the error and, more to the point, are there likely to be any repercussions when this testing deployment slot is swapped with staging and then swapped with production?
dotnet-core, angular, Zero 6.8.0, .NET framework 4.6.1 In Azure I have two deployment slots for my dotnet-core project, testing and staging. I create an appsettings json file for each of my environments: In Azure I create an ASPNETCORE_ENVIRONMENT variable for each of these slots and check the slot setting: This is great, I can now release initially to testing and then swap with staging for focus-group review and then swap staging with production when all UATs are passed. Each slot reads the correct appsettings json file and data is persisted to and delivered from the relevant testing, staging or production datastore (and any other settings I have in the appsettings file such as PayPal sandboxes etc.).
In the Angular project the position is different. I'm not fully conversant with the inner workings because I leave this kind of black magic to the Zero (thanks, guys). I believe the compile process reads the environment.ts file which exports the const environment value:
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `angular-cli.json`.
export const environment = {
production: false,
hmr: false,
appConfig: 'appconfig.json'
};
Thus, if I run ng build --testing
I believe the system will now read the appsettings.testing.json file for my server variables which will connect my angular app to the relevant dotnet-core API.
My question is:
Is there any way to have the angular app read an application setting from the relevant deployment slot and thus force the system to use the relevant appsettings file?
At the moment my only solution is to carry out the deployment slot swap and then copy a new version of appsettings.production.json to both environments with the relevant settings for the appropriate dotnet-core API. This means having to keep three copies of appsettings.production.json, one for each environment, testing staging and production, which I deploy via FTP after the swap. This also means bringing down my app for a few seconds whilst the appsettings file is transferred, something I can live with but hardly ideal. Any ideas anyone?
angular, dotnet-core, 6.8.0, .NET 4.6.1 Is it possible to modify the abp implementation of sweet alert confirm (abp.message.confirm(...)) ? When a user refreshes a grid (or uses the search functionality in Zero grids) it is possible that the authorization cookie has expired and I want to redirect the user to the sign in page. At the moment there are two buttons, I would like to replace them with a single button: "Ok". My code reads as below:
}, (error: HttpErrorResponse) => {
this.gridLoading = false;
if (error.status === 401) {
//this to capture refresh of grid when login has expired
abp.message.confirm(null, this.l('LoginHasExpired'), function (isConfirmed) {
if (isConfirmed) {
abp.auth.clearToken();
abp.utils.setCookieValue(AppConsts.authorization.encrptedAuthTokenName, undefined, undefined, abp.appPath);
location.href = '';
}
});
} else { ... code removed for brevity ...
It seems it is not possible to add a function to the info, success, warn or error messages to carry out the same. Also - please note the spelling mistake at: AppConsts.authorization.encrptedAuthTokenName Which should read: AppConsts.authorization.encryptedAuthTokenName In the same file (AppConsts) you also have: subscriptionExpireNootifyDayCount which should read: subscriptionExpireNotifyDayCount