I managed to trace the problem down to the real issue and that was inside my task logic. To pinpoint down to all issues, the first thing one must check is whether you enter the task logic or not. I managed to do so by using the LoggerService that is available in NopCommerce.
So I started with writing to my log at the first rule of logic. This made clear I was entering the task. After that I added logging at several places in my task logic which enabled me to track the issue. In my case I was trying to download a file via a url using a webrequest and this caused an error because dowloading that file was somehow blocked. Then I realised the file should not be downloaded because it was on the same server. This way my issue was resolved.
For working with the logger just add a private readonly Logging.ILogger _logger variable and perform constructor injection to ensure it is resolved at runtime. Then use the logger to log something at the first line of your tasks execute method.
Note: First : changing url works fine for me. ** After changing the store URL ** you should restart your application via Setting icon in top-right corner in admin panel and select "Restart application".
i tried following steps to resolve this error but still the error is there. 1) no www. in store url. 2) edited http to https in store url. 3) changed ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; to Tls also. 4) Clear cache and also restarted the application. 5) Enbaled SSL for every page also.
but, still the error is getting logged in log table. Please help me out from this. Thanks in advance.
i tried following steps to resolve this error but still the error is there. 1) no www. in store url. 2) edited http to https in store url. 3) changed ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; to Tls also. 4) Clear cache and also restarted the application. 5) Enbaled SSL for every page also.
but, still the error is getting logged in log table. Please help me out from this. Thanks in advance.
I solved the problem.
### cloudflare.com- Crypto- Always use HTTPS Redirect all requests with scheme “http” to “https”. This applies to all http requests to the zone.### An email was sent when "Always use HTTPS" was turned off.