If Windows 11 is version 25H2 or earlier, bypass the failed online download by installing .NET Framework 3.5 from version-matched Windows 11 media with DISM; for Windows 11 26H1 build 28000 or later, use Microsoft’s standalone installer instead.
1. Check the Windows 11 version
- Press Windows+R.
- Enter
winver.exe and press Enter.
- Note the Version and OS Build.
Microsoft uses different .NET Framework 3.5 installation methods beginning with Windows 11 26H1 build 28000 ^1^.
Error 0x80240438 is listed as WU_E_PT_ENDPOINT_UNREACHABLE for Windows Features on Demand, indicating that the feature installer cannot reach its update endpoint ^2^. Installing from local media avoids that download path.
- Create or download Windows 11 installation media corresponding to the Windows version installed on the PC. Microsoft’s procedure is:
- Open the Download Windows 11 page.
- Under Create Windows 11 Installation Media, select Download Now.
- Run
MediaCreationTool.exe and choose to create an ISO ^3^.
- Double-click the ISO to mount it.
- Open File Explorer → This PC and note its drive letter, such as
D:.
- Open Windows Terminal (Admin) or Command Prompt as administrator.
- Run the following command, replacing
D: with the mounted ISO’s drive letter:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
- Wait for The operation completed successfully, then restart Windows.
- Search for Windows Features and confirm .NET Framework 3.5 (includes .NET 2.0 and 3.0) is selected.
/LimitAccess prevents DISM from contacting Windows Update, while /Source supplies the required files from the ISO ^4^.
Important: Do not use sources\sxs from a different Windows version. Microsoft warns that mismatched source files can leave Windows unsupported or unserviceable ^4^.
3. For Windows 11 26H1 build 28000 or later
.NET Framework 3.5 is no longer installed through Windows Features on this release.
- Open Microsoft’s Windows 11 .NET Framework 3.5 installation page.
- Select Download .NET Framework 3.5 for Windows 11 26H1.
- Run the downloaded standalone installer as administrator.
- Restart if requested.
The 26H1 installer works only with the specified Windows version ^1^.
If DISM reports component-store corruption
Repair Windows first from an elevated terminal:
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart, mount the matching ISO again, and repeat the NetFx3 installation command. Microsoft documents /RestoreHealth for repairing the Windows component store and sfc /scannow for scanning and repairing system files ^5^.
If this is a work-managed PC
Ask the administrator to check:
Local Group Policy Editor → Computer Configuration → Administrative Templates → System → Specify settings for optional component installation and component repair
The policy must either provide a valid alternate \sources\sxs location or permit direct Windows Update access. Features on Demand cannot use WSUS as their repair-content source ^6^.
References
- Install .NET Framework 3.5 on Windows 11
- Can't install OpenSSH features
- Create installation media for Windows
- Deploy .NET Framework 3.5 by using Deployment Image Servicing and Management (DISM)
- Repair a Windows Image
- Deploy .NET Framework 3.5 by using Group Policy Feature on Demand setting