If your web application has dependency on the System.Net.Http Nuget package, it may break after you upgrade .NET Framework version to 4.7.2 or a newer version. This issue occurs if you are using Visual Studio 15.5 or a higher version.
If a web browser starts loading the web page but it never finishes loading it, look for the resources being loaded and the debug errors in F12 Developer Tools.
If the page has an iframe, try testing the page after removing the iframe. If it works without the iframe, then look for further leads to narrow the issue down.
SameSite cookie prevents cross-site request forgery (CSRF) attacks by restricting the usage of third-party resources in web applications. Resource examples are the URLs in GET, POST, link, iframe, Ajax, image etc. If a URL is different than the actual web application’s URL, it means that it’s a third-party resource.
We have recently upgrade a .NET Core 2.2 application to 3.1 version. While trying to run it in Visual Studio, we came across “rzc discover exited” and “hostpolicy.dll required” errors:
- In Visual Studio output while trying to run the solution:
rzc discover exited with code -2147450749
- In PowerShell after performing “build run” command:
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in [path]