Base solution for your next web application
Open Closed

Failed to load resource: net::ERR_CONNECTION_REFUSED #9237


User avatar
0
admin@SYNTAQ created

Hi,

Am getting :22742/AbpUserConfiguration/GetAll?d=1592719246547:1 Failed to load resource: net::ERR_CONNECTION_REFUSED on going to localhost:4200 when starting up.

The back end is running at http://localhost:55314/ and I can navigate swagger etc

If I change the url to http://localhost:55314/AbpUserConfiguration/GetAll?d=1592767829512 I get a response. So I guess the question is why is the port being changed to 22742? I cannot find this in any configuration file anywhere.

I am running Angular .Net core. Below is the dev console stack.

scheduleTask	@	zone.js:3324

push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:407 onScheduleTask @ zone.js:294 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:400 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:231 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMacroTask @ zone.js:254 scheduleMacroTaskWithCurrentZone @ zone.js:1183 (anonymous) @ zone.js:3357 proto.<computed> @ zone.js:1501 push../src/shared/helpers/XmlHttpRequestHelper.ts.XmlHttpRequestHelper.ajax @ XmlHttpRequestHelper.ts:29 push../src/AppPreBootstrap.ts.AppPreBootstrap.getUserConfiguration @ AppPreBootstrap.ts:146 (anonymous) @ AppPreBootstrap.ts:36 (anonymous) @ AppPreBootstrap.ts:69 xhr.onreadystatechange @ XmlHttpRequestHelper.ts:9 wrapFn @ zone.js:1270 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421 onInvokeTask @ core.js:26247 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:503 invokeTask @ zone.js:1671 globalZoneAwareCallback @ zone.js:1697 XMLHttpRequest.send (async) scheduleTask @ zone.js:3324 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:407 onScheduleTask @ zone.js:294 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:400 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:231 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMacroTask @ zone.js:254 scheduleMacroTaskWithCurrentZone @ zone.js:1183 (anonymous) @ zone.js:3357 proto.<computed> @ zone.js:1501 push../src/shared/helpers/XmlHttpRequestHelper.ts.XmlHttpRequestHelper.ajax @ XmlHttpRequestHelper.ts:29 push../src/AppPreBootstrap.ts.AppPreBootstrap.getApplicationConfig @ AppPreBootstrap.ts:53 push../src/AppPreBootstrap.ts.AppPreBootstrap.run @ AppPreBootstrap.ts:17 (anonymous) @ root.module.ts:48 ZoneAwarePromise @ zone.js:913 (anonymous) @ root.module.ts:44 push../node_modules/@angular/core/fesm5/core.js.ApplicationInitStatus.runInitializers @ core.js:25548 (anonymous) @ core.js:26762 _callAndReportToErrorHandler @ core.js:26855 (anonymous) @ core.js:26760 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:386 onInvoke @ core.js:26256 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:385 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:143 push../node_modules/@angular/core/fesm5/core.js.NgZone.run @ core.js:26170 push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModuleFactory @ core.js:26746 (anonymous) @ core.js:26791 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:386 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:143 (anonymous) @ zone.js:891 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 drainMicroTaskQueue @ zone.js:601 Promise.then (async) scheduleMicroTask @ zone.js:584 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:231 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:251 scheduleResolveOrReject @ zone.js:881 ZoneAwarePromise.then @ zone.js:1027 setDriver @ localforage.js:2734 LocalForage @ localforage.js:2523 4.3 @ localforage.js:2796 s @ localforage.js:7 e @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:7 ./node_modules/localforage/dist/localforage.js @ localforage.js:7 webpack_require @ bootstrap:83 ./src/root.module.ts @ root.component.ts:7 webpack_require @ bootstrap:83 ./src/main.ts @ hmr.ts:15 webpack_require @ bootstrap:83 0 @ password-complexity-…tor.directive.ts:10 webpack_require @ bootstrap:83 checkDeferredModules @ bootstrap:44 webpackJsonpCallback @ bootstrap:31 (anonymous) @ main.js:1


No answer yet!