DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Server Unavailable Fixup

07.27.2005
| 6753 views |
  • submit to reddit
        
REM This batch file addresses "Server unavailable" error
@echo off 

REM "Changing to the Framework install directory"
cd /d C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

echo "Stopping IIS"
iisreset /stop 
echo "----------------------"

echo "Stopping the ASP.NET state service if it is running"
net stop aspnet_state
echo "----------------------"

echo "Re-registering ASP.NET"
aspnet_regiis -i 
echo "----------------------"

echo "Restarting IIS"
iisreset /start 
echo "----------------------"