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

Activities of "omkarchoudhari"

We tried doing this but it is not working. Can you suggest some solution or workaround for the same ?

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.

Yes. Two things.

  1. Generate a certificate (.PFX) with a private and public key using a tool like OpenSSL.
  2. Upload public key (.pem) to the registered app in the Azure portal
  3. Right-click .PFX certificate and install it in personal folder on your machine.

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

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, Action1 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 !

Thank you so much @maliming . This worked .

I tried entering Malay language in NgxBootstrapLocaleMappingService like-

export class NgxBootstrapLocaleMappingService { map(locale: string): string { const cultureMap = { 'en': 'en-gb',

'ms': 'ms',
'MY-ms': 'ms'
getModuleName(locale: string): string {
    const moduleNameMap = {
        'en': 'enGb',

'ms': 'ms',

'MY-ms': 'ms'

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 ?

Showing 41 to 50 of 70 entries