If you’ve encountered the error “Could not access network location %SystemDrive%\inetpub\wwwroot" while installing software (like Infragistics NetAdvantage) or configuring IIS on Windows, you’re not alone. This common issue occurs when the Windows registry contains an incorrect path reference to the IIS wwwroot directory.
What Causes This Error?
This error typically occurs when:
- Installing web development software that needs to access IIS
- The registry contains environment variables instead of actual paths
- IIS configuration is corrupted or incomplete
- Software installers cannot resolve the
%SystemDrive%environment variable
The Solution: Registry Path Fix
⚠️ Important: Always backup your registry before making changes. Registry editing can be dangerous if done incorrectly.
Step-by-Step Fix
- Open Registry Editor
- Press
Windows + Rto open the Run dialog - Type
regeditand press Enter - Click “Yes” if prompted by User Account Control
- Press
- Navigate to the Registry Key
- Go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\PathWWWRoot - You can paste this path directly into the registry editor’s address bar
- Go to:
- Modify the Registry Value
- Double-click on the
PathWWWRootentry - Current (problematic) value:
%SystemDrive%\inetpub\wwwrootor\inetpub\wwwroot\ - New (fixed) value:
C:\inetpub\wwwroot - Click OK to save the changes
- Double-click on the
- Verify the Change
- Ensure the value now shows the full path without environment variables
- Close Registry Editor
- Restart and Test
- Restart your computer or the installer
- Retry the installation or operation that was failing
Alternative Solutions
Method 2: Create the Directory Manually
If the directory doesn’t exist:
mkdir C:\inetpub\wwwroot
Method 3: Reinstall IIS
If the problem persists, consider reinstalling IIS:
- Go to Control Panel → Programs and Features
- Click Turn Windows features on or off
- Uncheck Internet Information Services
- Restart Windows
- Re-enable IIS with the same steps
Custom IIS Installation Paths
If your IIS wwwroot is installed in a different location:
- Use that custom path instead of
C:\inetpub\wwwroot - Common alternative locations:
D:\inetpub\wwwrootC:\wwwroot- Custom enterprise paths
Verification Steps
After applying the fix, verify it worked:
- Check IIS Manager
- Open IIS Manager
- Verify the Default Web Site points to the correct physical path
- Test Registry Value
- Run:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp" /v PathWWWRoot - Should return the absolute path without environment variables
- Run:
Prevention Tips
- Always use absolute paths in IIS configuration
- Regularly backup your registry before software installations
- Keep IIS updated to the latest version
- Use IIS Manager to verify paths after installations
Troubleshooting
If the fix doesn’t work:
- Ensure you have administrator privileges
- Check if the path actually exists on your system
- Verify IIS is properly installed
- Look for additional registry keys that might need updating
Note: This solution has been tested on Windows 7, Windows 10, and Windows Server versions. The registry path remains consistent across these platforms.
Have you encountered this error with other software? Share your experience in the comments below!
-->
Comments