When installing Sitecore XP/XM on-premises using SIF (Sitecore Installation Framework), you may run into frustrating issues during the .NET Hosting Bundle download step. The issue often looks like this:
[-------- DownloadDotNetMultiTargeting : DownloadFile ------------------------]
[DownloadDotNetMultiTargeting]:[Download] https://download.visualstudio.microsoft.com/download/pr/b50f2f63-23ed-4c96-9b38-71d319107d1b/26f8c79415eccaef1f2e0614e10cd701/dotnet-hosting-6.0.21-win.exe => C:\Users\jitus\AppData\Local\Temp\dotnet-hosting-win.exe
Error downloading https://download.visualstudio.microsoft.com/download/pr/b50f2f63-23ed-4c96-9b38-71d319107d1b/26f8c79415eccaef1f2e0614e10cd701/dotnet-hosting-6.0.21-win.exe: The underlying connection was closed: The connection was closed unexpectedly.
[TIME] 00:00:19
Error downloading https://download.visualstudio.microsoft.com/download/pr/b50f2f63-23ed-4c96-9b38-71d319107d1b/26f8c79415eccaef1f2e0614e10cd701/dotnet-hosting-6.0.21-win.exe: The underlying connection was closed: The connection was closed unexpectedly.
When I checked the URL, I got 404 to fix the issue
I replace the URL in
Prerequisites.jsonValue https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/6.0.36/aspnetcore-runtime-6.0.36-win-x64.exe and that fixed the issue