Error: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website
To resolve that issue please follow steps below –
1. Unregister all the versions of ASP.NET with command “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ua”.
2. Delete the ASPNET account from “Local Users and Group – Users”.
3. Then registere ASP.NET 2.0 with IIS using “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –i”.
4. Give permissions to the ASPNET account using “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ga machinename\ASPNET”.
5. Reset the IIS and that resolved the issue for ASP.NET 2.0.
6. Register ASP.NET 1.1 with IIS as well using command “C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis –i”.
7. Reset the IIS.
or
Run the following from your command line to reset IIS registry settings for aspnet user.
C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727>aspnet_ regiis -i
After following the above steps we configured virtual directory versions as required and test both ASP.NET 1.1 and ASP.NET 2.0 application.
Everything will work after that.
Thanks!