I came across this strange error toady. I had my web application hosted on local iis (web application developed in .Net Framework 2.0) and whenever I tried to access it with the URL” http://localhost/MyApp” browser used to throw an error saying “Server Appplication Unavailable”
I tried googleing for the error and tried various methods described in various forums and blogs. But nothing helped
Event Viewer (Go to Start>Run and type eventvwr, select Application in the left panel.) had twofollowing two errors logged
Error 1:
aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Error 2:
aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I treid almost everything that was discussed on the internet not none of them could solve my propblem. Ultimately here is something which solved the problem. But I have no clue whether this method will solve the problem all the time or not. You can try this as it has solved my problem
Open Visual Studio Command Prompt by going to” Start>Programs>Visual Studio 2005/2008>Visual Studio Tools” and type in the following command at the command prompt
aspnet_regiis -u
It uninstalls the version of ASP.NET that is associated with the ASP.NET IIS Registration tool from the computer. It will take some time to complte the uninstallation. Once done, enter the following command at the command prompt
aspnet_regiis -i
which installs the version of ASP.NET that is associated with Aspnet_regiis.exe and updates the script maps at the IIS metabase root and below.
Once done, go to Srtart>Run and type in the command “iisreset” and hit enter.
This should solve the problem.
Now if you try your web application hosted in localhost, it loads up.
For more info on aspnet_regiis check this link.