Installing and registering ASP.Net with
IIS and add ASP.Net 4.0 Application Pool in IIS
Why do we need to
install and register ASP.Net in IIS?
To allow IIS server to serve ASP.Net pages.
What will happen if ASP.Net
is not registered with IIS?
If Asp.Net is not registered with IIS then below error will
occur while accessing ASP.net website
Error Description:
The page you are requesting cannot be
served because of the extension configuration. If the page is a script, add a
handler. If the file should be downloaded, add a MIME map.
How to verify if ASP.Net
is registered with IIS?
Once the ASP.Net is registered the IIS will show ASP.Net 4.0
Application pools.
How to install .Net framework
(For installing ASP.NET)?
You will need to download and install the necessary .Net
Framework on your system using below link Download .Net Frameworks.
What is “aspnet_regiis.exe”?
“aspnet_regiis.exe”
is used to register ASP.Net in IIS server which is available after successful
installation of .Net Framework.
Where to find “aspnet_regiis.exe”?
“aspnet_regiis.exe”
is available at below location after successful
installation of .Net Framework.
If your window
is installed in C drive you could find the aspnet_regiiis.exe
at the following locations.
32 BIT
C:\Windows\Microsoft.NET
64 BIT
C:\Windows\Microsoft.NET\Framework64
Now based on whether your System is 32 BIT or 64 BIT and the .Net
Framework version you want to register, you need to get into the .Net Framework
Folder.
Assume if your Windows is 64 BIT and you need to register .Net Framework
4 then path for aspnet_regiis.exe will be
“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\”
How to register ASP.Net
with IIS server using “aspnet_regiis.exe”?
Follow below steps:
<1> Open windows menu options by clicking on bottom
left “Start” button (Or Press windows key).
<2> Type “CMD” in
search box at bottom in menu, It will show cmd.exe in context menu.
<3> Right click on “cmd.exe” and choose Run as administrator from
the context menu.
<4> On the command prompt, navigate
to the Directory that has the “aspnet_regiis.exe”
file for that you need to type.
CD <
aspnet_regiis.exe file path>
For
eg.
CD
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
<5> Type the following
command and hit enter to register ASP.Net with IIS.
aspnet_regiis –i
Once the ASP.Net is installed in
IIS, you will see ASP.Net 4.0 Application pools in the IIS server
How to register ASP.Net
of different versions with IIS server using “aspnet_regiis.exe”?
Follow same steps mentioned above to register other .Net
Framework versions.
No comments:
Post a Comment