I was trying to access my local web service this morning and was getting back the dreaded, generic "Server Application Unavailable" each time I hit the service via my code or browser.
For Example:
http://localhost/mywebservice/endpoint.svc
Resulted in:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Recorded in the eventlog:
| Event Type: |
Error |
| Event Source: |
ASP.NET 2.0.50727.0 |
| Event Category: |
None |
| Event ID: |
1084 |
| Date: |
29/09/2008 |
| Time: |
10:14:22 |
| User: |
N/A |
| Computer: |
--PRIVATE-- |
Description:
|
aspnet_wp.exe could not be started. The error code for the failure is C0000142. 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. |
Solution?
Try reinstalling ASP.NET (2.0.50727) to refresh the ASP.NET settings, config, metabase and security/worker accounts on the local machine:
- Open a command prompt and....
- Stop IIS: iisreset /stop
- Change to the .NET Framework 2.0 root directory: C:\windows\Microsoft.Net\Framework\v2.0.50727\
- Reinstall ASP.NET 2.0 by using the following command: aspnet_regiis -i
- Start IIS again: iisreset /start
- Try to access your web page again.
Note: there are many other fabulous options available to refresh your IIS settings... just give aspnet_regiis /? a run!