Removing aspnet runtime from IIS

Removing aspnet runtime from IIS


To remove ASp.net runtime from your IIS follow below steps.

IIS running on 32-bit mode.

1. Open command prompt.
2. set $:\WINDOWS\Microsoft.NET\Framework\v2.0.50727> as current directory
3. execute aspnet_regiis -u
4. iisreset

Above steps will uninstall 32-bit asp.net runtime from your IIS running on 32-bit mode.

IIS runnning on 64-bit mode.

1. Open command prompt.
2. set $:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727> as current directory
3. execute aspnet_regiis -u
4. iisreset

Above steps will uninstall 64-bit asp.net runtime from your IIS running on 64-bit mode.

To install appropriate version of asp.net runtime based on IIS running on either 32-bit or 64-bit mode
Go to appropriate framework directory and execute aspnet_regiis -i

For asp.net 2.0 and iis running on 64 bit mode, execute aspnet_regiis -i
from Framework64\v2.0.50727 folder.

For asp.net 2.0 and iis running on 32 bit mode, execute aspnet_regiis -i
from Framework\v2.0.50727 folder.

To switch IIS runiing on 64-bit mode to 32-bit mode.

execute below command


cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64  0
After switching IIS running mode execute appropriate version of aspnet_regiis -i to install asp.net runtime.

fore more information follow http://support.microsoft.com/kb/911720

Below are the steps to swithc IIS running on 64-bit mode to 32-bit mode


 Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>cd\

C:\>cd windows

C:\WINDOWS>cd microsoft
The system cannot find the path specified.

C:\WINDOWS>cd mic*

C:\WINDOWS\Microsoft.NET>cd framework64

C:\WINDOWS\Microsoft.NET\Framework64>aspnet_regiis -u
'aspnet_regiis' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\Microsoft.NET\Framework64>cd v2.*

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>aspnet_regiis -u
Start uninstalling ASP.NET (2.0.50727).
.......................
Finished uninstalling ASP.NET (2.0.50727).

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>iisreset

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted


C:\>cd inetpub

C:\Inetpub>cd admin
The system cannot find the path specified.

C:\Inetpub>cd admin
The system cannot find the path specified.

C:\Inetpub>dir
 Volume in drive C has no label.
 Volume Serial Number is 0C4A-D5FF

 Directory of C:\Inetpub

11/11/2008  11:11 PM    <DIR>          .
11/11/2008  11:11 PM    <DIR>          ..
11/13/2008  09:09 AM    <DIR>          AdminScripts
11/11/2008  11:28 PM    <DIR>          wwwroot
               0 File(s)              0 bytes
               4 Dir(s)  13,566,140,416 bytes free

C:\Inetpub>cd ad*

C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAp
pOnWin64  1
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Enable32BitAppOnWin64           : (BOOLEAN) True

C:\Inetpub\AdminScripts>

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>cd..

C:\WINDOWS\Microsoft.NET\Framework64>cd..

C:\WINDOWS\Microsoft.NET>cd fr*

C:\WINDOWS\Microsoft.NET\Framework>cd v2.0*

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
Start installing ASP.NET (2.0.50727).
........................................
Finished installing ASP.NET (2.0.50727).

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>iisreset

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted


C:\>cd inetpub

C:\Inetpub>cd admin
The system cannot find the path specified.

C:\Inetpub>cd admin
The system cannot find the path specified.

C:\Inetpub>dir
 Volume in drive C has no label.
 Volume Serial Number is 0C4A-D5FF

 Directory of C:\Inetpub

11/11/2008  11:11 PM    <DIR>          .
11/11/2008  11:11 PM    <DIR>          ..
11/13/2008  09:09 AM    <DIR>          AdminScripts
11/11/2008  11:28 PM    <DIR>          wwwroot
               0 File(s)              0 bytes
               4 Dir(s)  13,566,140,416 bytes free

C:\Inetpub>cd ad*

C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAp
pOnWin64  1
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Enable32BitAppOnWin64           : (BOOLEAN) True

C:\Inetpub\AdminScripts>


C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>


In above commands, you can see how to browse the specific instance in 32bit or 64 bit enviroment and add or remove it from IIS.

Satalaj



 

Currently rated 3.0 by 10 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5