Problem Upgrade 4.30 to 4.50.1

6 mesi tempo fa
I am working to upgrade nop 4.30 to 4.50.1, exists previus DB. When I compile the debug generated an error in CookieAuthenticationService.cs on line 108
var authenticateResult = await _httpContextAccessor.HttpContext.AuthenticateAsync(NopAuthenticationDefaults.AuthenticationScheme);
[System.NullReferenceException: 'Object reference not set to an instance of an object.']

The HttpContext return null value.

Anyone with an idea how to solve it? Has this happened before?

I appreciate the help
6 mesi tempo fa
See if this topic helps

Are you using 3rd party plugins?
If you still have problems, post the entire stack trace here.
6 mesi tempo fa
Hi New York, Thank you very much, the link in the post helped me a lot. Yes, I am using third party plugins, but I already managed to solve the HttpContext problem with the old link from the forum post. Now after compiling I get this error:

This page isn’t working right nowlocalhost redirected you too many times.
To fix this issue, try clearing your cookies.

Normally I edit the Store table and in the Url field I change from https to http and in the SSLEnable field I put False and that usually works, but not this time. Do you have any idea to solve that?
6 mesi tempo fa
Try an incognito/private browser (or try another browser - e.g. Edge rather than Chrome).  If it works there, then you need to clear your cookies and do a hard refresh.