Monday 9 July 2012

Command: Register asp.net with IIS where IIS was not already present, and just later decided to add IIS.

If you install the .NET Framework on a system that has IIS already installed, IIS is automatically configured to handle requests to ASP.NET pages, and to redirect the execution to the ASP.NET runtime. However, it may happen that you installed the framework on a Windows 2000, XP ,Vista, Window 7  where IIS was not already present, and just later decided to add IIS.


If Microsoft Visual Studio is installed:


Step 1:



Start->Microsoft Visual Studio->Visual Studio Tools->Visual Studio Command Prompt --> right Click : Run as Administrator.


Step 2:
            aspnet_regiis -i  
                    or
            aspnet_regiis.exe -i 


if Microsoft Visual Studio is not installed:



Step 1:


Open the Windows command prompt console window:


From the Windows Start menu, select Run.


Type CMD and click OK.


Step 2.


At the command prompt, type:
   <WinDir>\Microsoft.NET\Framework\<Ver>\aspnet_regiis.exe -i


Where <WinDir> is the directory of your Windows folder (e.g. C:\WINDOWS) and <Ver> is the actual version number of the .NET Framework (e.g. v1.1.4322).


Press Enter to run the executable. When it completes, close the command prompt console window.


No comments: