Error while running the 'Keep alive' schedule task

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 8 ans
Hi People! After change the Host to a new one with cloud server the registry log fulls with such message:

Error while running the 'Keep alive' schedule task. The underlying connection was closed: An unexpected error occurred on a receive.

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at Nop.Services.Common.KeepAliveTask.Execute() at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean dispose)

Can you pls help me on this issue? Tks a lot.
Il y a 8 ans
Receiving a slightly different exception in log here as well:

Error while running the 'Keep alive' schedule task. The remote server returned an error: (403) Forbidden.


System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at Nop.Services.Common.KeepAliveTask.Execute() at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean dispose)
Il y a 8 ans
i'm using nop 3.70.

it's error same. What happened? Every body HELP mE

Error while running the 'Keep alive' schedule task. The remote server returned an error: (403) Forbidden.

System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at Nop.Services.Common.KeepAliveTask.Execute() at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean dispose, Boolean ensureRunOnOneWebFarmInstance) at Nop.Admin.Controllers.ScheduleTaskController.RunNow(Int32 id)
Il y a 8 ans
Please go to admin Configuration -> Stores

and check that existing store url should be like http://yourstore.com/
Il y a 8 ans
it's store URL correct.

My store URL  http://www.demostore.com.

i changed store URL http://www.demostore2.com, Schedule task was run. WHY?
Il y a 8 ans
onebox wrote:
it's store URL correct.

My store URL  http://www.demostore.com.

i changed store URL http://www.demostore2.com, Schedule task was run. WHY?


the keppAlive will just ping the StoreURL that we set in store so if that url will is active then it will work

your storeurl must have "/" at end of the store url so your store url should be http://www.demostore.com/ or http://www.demostore2.com/ or whatever your current url on which your site is working
Il y a 8 ans
My store URL correct.

Error link.

https://drive.google.com/file/d/0B4k85LPUMoYZUElLVDNqNWhZbDA/view?usp=sharing
Il y a 8 ans
Error screenshot


https://drive.google.com/file/d/0B4k85LPUMoYZazJMbUQ1UTRlQk0/view?usp=sharing
Il y a 5 ans
Hi there,

I  deploy nopcommerce 4 on azure using azure web app services.I received following exception in Log.even I disable Keep alive schedule.My url setting is correct.


Error while running the 'Keep alive' schedule task. The underlying connection was closed: An unexpected error occurred on a send.

Full message  


System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.TlsStream.CallProcessAuthentication(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
   --- End of inner exception stack trace ---
   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at System.Net.WebClient.DownloadString(String address)
   at Nop.Services.Common.KeepAliveTask.Execute()
   at Nop.Services.Tasks.Task.Execute(Boolean throwException)
Il y a 4 ans
Same kind of error I am getting but I have mentioned correct Store URL.
but When I am dig into the error it showing my local path of the source code in Live. I don't know why it is been showing local path on live. (NopCommerce Version 4.9)
Below error I am getting can anyone help me out for the same.

System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at Nop.Services.Common.KeepAliveTask.Execute() in V:\Git_ProjectName\ProjectName_FlowChange\ProjectName-FlowChange\Libraries\Nop.Services\Common\KeepAliveTask.cs:line 27 at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean dispose, Boolean ensureRunOnOneWebFarmInstance) in V:\Git_ProjectName\ProjectName_FlowChange\ProjectName-FlowChange\Libraries\Nop.Services\Tasks\Task.cs:line 163
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.