Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "omkarchoudhari"

We migrated our Angular & .NET Core version to 9.3.1 - rc , but it seems that in latest version of the template , previous Metronic classes do not exist anymore.They have been replaced with new ones. So the issue is we are not able to migrate easily to the newest template. Same is the case for version 9.2.1

Our client project is already using the metronic classes since last 6 months.

Can you suggest the quickest solution for this please ? we do not want migration to affect the existing UI of client project already in production.

Any urgent help would be appreciated.

Thanks

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?

Answer

Hello,

Finally got this error resolved !!!!

So the first thing i changed in the apim is adding up of the inbound processing. This is the change:

<allowed-origins> <origin></origin> </allowed-origins> <allowed-methods preflight-result-max-age="6000"> <method></method> </allowed-methods> <allowed-headers> <header></header> </allowed-headers> <expose-headers> <header></header> </expose-headers>

  1. Then i made the change in my service file for posting a new resource as follows:

so this is the change made in the leadsservice app for handling the post call.

Answer

Hello @ismcagdas,

We are still stuck with the CORS issue described above. Have tried all possible solution without success. Is it possible to have a screen sharing session on MS Teams tomorrow to troubleshoot the issue ? Or even via Remote connection. Please inform suitable time for this .

Thanks

Answer

Hello,

So far we have tried the following :

  1. We have Azure CORS already configured , added wildcard (*) so that it can accept any HTTPS /HTTP requests.
  2. We have used HTTP Proxies to take care of CORS related issues
  3. We also tried using chrome extension for CORS. But it still gives CORS error while calling API
  4. We also tried with creating a service in Angular to directly call the remote API (Without using service proxies). Still we get same error.
  5. I have attached the Azure configuration image here for your reference.

Even after 4 days of troubleshooting we are stuck with this issue. Apprecite your help urgently....

Answer

No there are no such errors received in the logs of api application... It is actually a straight forward api call that is being made. But when i checked... there were no errors in the log file.

The api calls are made from our aspnetzero template to the azure portal system of the client... the client has all the logic apps made ready, and to which we are hitting the api. We have already configured CORS to accept * for domain. Does not work from postman. Works on Azure.

Question

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.

Question

Is there a plan to integrate Metronic version 7.0.4 into aspnetzero ? And is that likely to happen anytime soon ?

Showing 71 to 80 of 148 entries