Visual Studio 2019 16,4, Nop 4.20

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,

Since I switched to Visual Studio 2019 version 16.4, I get an error message.

I can start the shop and log in as an admin, but if I want to change to the admin area, the program crashes and stops with an error.

Class: HomeModelFactory => row 84
var rssData = _cacheManager.Get(NopModelCacheDefaults.OfficialNewsModelKey, () => _nopHttpClient.GetNewsRssAsync().Result);

error:
System.AggregateException: "One or more errors occurred. (Response status code does not indicate success: 503 (Service Temporarily Unavailable).)"

HttpRequestException: Response status code does not indicate success: 503 (Service Temporarily Unavailable).



Does anyone have the same problem and can help.

Best regards
4 years ago
Yes I have the same error
This is calling the nopCommerce news feed NewsRSS.aspx
4 years ago
Its not related to the VS version
Something with the nopCommerce website ?
Calling the url string in the browser works

https://www.nopcommerce.com/newsrss.aspx?version=4.20&localhost=true&hideadvertisements=false&storeurl=http://localhost:15536/

Problem is on this line of code
            var stream = await _httpClient.GetStreamAsync(url);
4 years ago
Thank you. I have disabled it now and it works.
4 years ago
The easiest 'fix' might be to comment out this line

\Presentation\Nop.Web\Areas\Admin\Views\Home\Index.cshtml
                        @await Component.InvokeAsync("NopCommerceNews")
4 years ago
It is the Cloudflare's DDoS protection blocking the request to NopCommerce. For more info, you can check this thread.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.