Yes. Two things.
I was getting the above error since my exported certificate from certmgr could not have a private key. This wasted lot of time for me to figure out.😊
I got this working. There were some steps involved in creating the certificate the right way.
Thanks
I am using the latest version 8.8.0 with Angular and .NET Core. I am follllowing your teams article :** https://volosoft.com/blog/Using-Azure-Key-Vault-with-ASP.NET-Core** I have carried out all steps as mentioned and also uploaded the certificate. But when i run the project i am getting the "System.InvalidOperationException: 'Sequence contains no elements'" error in AppAzureKeyVaultConfigurer.cs file. Seems the code is not able to find the uploaded certificate which exists with the registered app on Azure.
Is there any point i have missed because with the managed service it works perfectly. But not with certificate.
Thanks.
I am trying to add new languages to localization feature. When adding certain languages from the seed method, the console of browser shows the 'cannot find module- ./[culturecode].js' error. Languages which I tried and did not work are - Portuguese, Danish.
The language that I tried and worked based on instructions as per following link - Polish). I am using the aspnetzero Template- .Net Core + Angular Version- 8.7.0
I followed the procedure outlined here : https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Infrastructure-Core-Mvc-Localization
Can you please help me identify what would be the issue here ? Thanks.
Hi @ismcagdas ,
We shifted the Database creation to a background job as per your suggestion. However, we are still getting the timeout exception.
ERROR 2020-05-06 11:31:34,987 [21 ] Mvc.ExceptionHandling.AbpExceptionFilter - Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
CREATE DATABASE operation failed. Internal service error.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
CREATE DATABASE operation failed. Internal service error.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean isAsync, Int32 timeout, Boolean asyncWrite)
at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String methodName)
Any other workaround or suggestion would be highly welcome !
aspnetzero .Net core and Angular
Regarding separate DB for each Tenant => We have one requirement where every time tenant gets created, we need to create separate DB for Tenant Currently it is working fine at my local environment. Separate DB is created for each tenant When I deploy my application on Azure, there I am getting execution timeout error when creating new Database for a tenant on Azure
We have one method in TenantManager.cs as _abpZeroDbMigrator.CreateOrMigrateForTenant(tenant) which runs synchronously. This is taking time to create DB and apply all migration which results in timeout exception Do you have any workaround for this issue?
We are working on a tight timeline with client. Any quick workaround/suggestion to resolve this would be highly appreacited.
Thanks
Thank you so much @maliming . This worked .
We have Audit logs which will log the events triggered on App services(Add,Edit,Delete and so on) . Right now we are getting Time,UserName,Service,Action,Ip Address and Browser details from the servoce
One of our client requirement is that , he wants JSON result of an API service to get logged into this Audit Logs. However, we are unable to find a way to extend the current logging feature to accomodate JSON output.
Can you please guide us how we can achieve this using existing logging functionality ?
Any pointers in this direction would be helpful. Thanks.
registercustomuser throws timeout error
we are trying to register users one by one through loop using async api service,but it gives error when we are using AWS database(server DB). Some of users are registered successfully and for others, api gives 500 internal server error with Timeout expiration.
Message = "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."
this exception is thrown when registering multiple users:
$.each(result, function (index, obj) { graphUSers.id = obj.id; userobj.mail = obj.mail; userobj.surName = obj.surname; userobj.givenName = obj.givenName; _userService.registercustomuser(userobj).done(function (result) {
}) })
Can you please suggest resolution for this ? what options we can try to resolve this error ?
PS : we tried using/UnitOfWork statements in code but still it throws error
Thanks in advance.
I tried entering Malay language in NgxBootstrapLocaleMappingService like-
export class NgxBootstrapLocaleMappingService { map(locale: string): string { const cultureMap = { 'en': 'en-gb',
getModuleName(locale: string): string {
const moduleNameMap = {
'en': 'enGb',
But still it is giving me the same error- Could not find module ‘./ms.js’. Here is the detail error-
core.js:14597 ERROR Error: Uncaught (in promise): Error: Cannot find module './ms.js' Error: Cannot find module './ms.js' at .*.js$ namespace object:179 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:16156) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:16147) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at resolvePromise (zone.js:814) at resolvePromise (zone.js:771) at zone.js:873 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:16147) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595) defaultErrorLogger @ core.js:14597 push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:14645 next @ core.js:16628 schedulerFn @ core.js:12609 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54 push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47 push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:12593 (anonymous) @ core.js:16178 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:16115 onHandleError @ core.js:16178 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:392 push../node_modules/zone.js/dist/zone.js.Zone.runGuarded @ zone.js:154 _loop_1 @ zone.js:677 api.microtaskDrainDone @ zone.js:686 drainMicroTaskQueue @ zone.js:602 Promise.then (async) scheduleMicroTask @ zone.js:578 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410 onScheduleTask @ zone.js:297 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252 scheduleResolveOrReject @ zone.js:862 resolvePromise @ zone.js:808 (anonymous) @ zone.js:724 webpackJsonpCallback @ bootstrap:25 (anonymous) @ 892.js:1
Not sure how to go ahead. Can you please help ?