ANZ Template version 9.0 (Angular+.NetCore) Code base
Details:
Impersonate Error: Login As this User - Redirect to login page. User impersonation as the tenant does not allow to impersonate login "Login As this User." Action always redirects to Login page with tenant selected.
The Aplication is hosted in Azure web app service(Linux). From website log we are not getting any much informative error seems impersonate URL returns 302 error.
Urgent help needed !
Using Asp net zero template, currently there is no encryption/decryption for API request and response. Lets say If we call API ChangePassword() then I can see current password and new password values in request (using developer tool , network tab). This value can easily hack by any other person. For this we need to encrypt and decrypt API request and response. Do we have any such provision in the current framework?
Getting the following error of CORS in our .NET Core and Angular project version 8.6.0.0
Process of getting this error :
The Page consists of 2 end point APIs integrated in it. One is GetLeadsList (GET Call) and another is RegisterLead (POST call) - POST happens through pop-up. Both the APIs are present in the provided screenshot.
There is no error generated when called with the AppService using RestSharp But when the same url is hit by using the service calls, it generates a CORS issue.
Can you help please ? Unable to understand why we are getting the CORS issue CORS issue .
Thanks.
Hello,
We are getting the following Gulp error after giving the "npm start" command while running the angular project. version : 8.6 .NET Core + Angular
So far we have tries unstalling and reinstalling Gulp, deleting the node modules etc. But still the error persists.
Need urgent help with this please ....
This is the screenshot of error :
And here are the logs :
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\username\source\repos\Elevate.Broker\src\ElevateBroker.Web.Host\node_modules\.bin;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\Microsoft MPI\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\dotnet\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\LINQPad6;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\UserName\AppData\Local\Microsoft\WindowsApps;C:\Users\UserName\.dotnet\tools;C:\Users\UserName\AppData\Roaming\npm;C:\Users\UserName\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle [email protected]~start: CWD: C:\Users\ UserName \source\repos\Elevate.Broker\src\ElevateBroker.Web.Host
10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'gulp buildDev && ng serve --host 0.0.0.0 --port 4200' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `gulp buildDev && ng serve --host 0.0.0.0 --port 4200`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:321:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:321:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\ UserName \source\repos\Elevate.Broker\src\ElevateBroker.Web.Host
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v13.9.0
19 verbose npm v6.13.7
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `gulp buildDev && ng serve --host 0.0.0.0 --port 4200`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Could you please also include our customers in the email theread please as per their request so that they get the emails as well ?
Faheem - [email protected]
Matan - [email protected]
Thnak you.
Is there a plan to integrate Metronic version 7.0.4 into aspnetzero ? And is that likely to happen anytime soon ?
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.
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
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.