IIS reset fails after updating .NET framework

iisnet

After I uninstalled Visual Studio 2010 beta 2 and installed Visual Studio 2010 RC, executing IISRESET gives the following error message:

C:\Program Files\Microsoft Visual
Studio 10.0\VC>iisreset /stop

Attempting stop… Stop attempt
failed. The system cannot find the
file specified. (2147942402, 80070002)

Further information :

Before beta2, the same computer also had beta1 installed. The OS is Windows 2008 Web Server

Does anyone have a solution ?

Best Answer

May be a long shot, but I have resolved many of these issues by manually running aspnet_regiis from the Framework directory that is causing me issues. There is a separate version of the tool in each of the Framework directories... usually with a root of C:\WINDOWS\Microsoft.NET\Framework.....