IIS and .Net 2.0
by Joseph on Jul 11th in .Net, aspnet_regiis.exe, ASPX, IIS
I was installing a web application today, and came across a strange problem. ASPX .Net 2.0 wouldn’t start. Luckily, a google search of “error 0x80131902” brought me to “Jonathan’s Blog“, which explained how to fix the issue.
Essentially, all that was needed was the following steps (quoted from Jonathan’s article):
- With a command window, get to the latest version of .net under
- C:\Windows\Microsoft.Net\Framework\
- Now run the following command: “net stop w3svc” to stop web services.
- Then use “aspnet_regiis.exe -ua” to uninstall all instances of ASP.NET from IIS.
- Follow with “aspnet_regiis.exe -i” to install ASP.NET into IIS.
- Now restart web services with “net start w3svc”.
One small caveat I’d like to add here… You actually need to run the aspnet_regiis.exe from its containing folder, which for me was C:\Windows\Microsoft.Net\Framework\v2.0.50727.