Error :-
How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7
Solution :-
First make sure you have IIS installed.
Then perform the following steps:
- Click the Start button .In the Search box, type command prompt.In the list of results, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
- Type
cmd
and press ENTER - Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press ENTER.
Type aspnet_regiis.exe -ir and press ENTER again.
- If this is a fresh version of IIS (no other sites running on it) or
you're not worried about the hosted sites breaking with a framework
change you can use
-i
instead of-ir
. This will change their AppPools for you and steps 5-on shouldn't be necessary. - at this point you will see it begin working on installing .NET's framework in to IIS for you
- If this is a fresh version of IIS (no other sites running on it) or
you're not worried about the hosted sites breaking with a framework
change you can use
- Close the DOS prompt, re-open your start menu and right click Computer and select Manage
- Expand the left-hand side (Services and Applications) and select Internet Information Services
- You'll now have a new applet within the content window exclusively for IIS.
- Expand out your computer and locate the Application Pools node, and select it. (You should now see ASP.NET v4.0 listed)
- Expand out your Sites node and locate the site you want to modify (select it)
- To the right you'll notice Basic Settings... just below the Edit Site text. Click this, and a new window should appear
- Select the .NET 4 AppPool using the Select... button and click ok.
Here You goooo !!
No comments:
Post a Comment