How to register ASP.NET 2.0 on a web server (IIS7)?

I already have an application for web pages, but when I open it in visual studio 2008, it says:

ASP.NET 2.0 is not registered on the web server. You need to manually configure the web server for ASP.NET 2.0 so that the site works properly.

I am using asp.net 2.0, IIS7 and running the vista home premium.

How to register ASP.NET 2.0 on my web server (IIS7)?

+48
iis iis-7
Mar 15 '09 at 10:15
source share
6 answers

ASP.NET 2.0:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir 

ASP.NET 4.0:

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir 

Run the command line as administrator to avoid the error ...requested operation requires elevation




aspnet_regiis.exe no longer needs to be used with IIS7 to install ASP.NET

  • Open control panel
  • Programs \ Turn Windows features on or off
  • Internet Information Services.
  • World Wide Web Services
  • Application Development Features
  • ASP.Net <== check mark here
+94
Mar 15 '09 at 10:26
source share

If someone like me still cannot register ASP.NET with IIS.

You just need to run these three commands one by one on the command line

cd c: \ windows \ Microsoft.Net \ Framework \ v2.0.50727

after that, run

aspnet_regiis.exe -i -enable

and finally reset IIS

Iisreset

Hope this helps a needy person ... cheers!

+9
Jun 05 '13 at 14:02
source share

If you installed IIS after the .Net framework, you can solve the problem by reinstalling the .Net framework. Part of its installation determines whether IIS is present and updates IIS accordingly.

+8
Mar 15 '09 at 10:25
source share

Open Control Panel - Programs - Turn Windows Features On or Off expand - Internet Information Services expand - World Wide Web Services expand - Application Development Options check - ASP.Net

It is advisable that you test another function in order to avoid a future problem that may not give direct error messages. Please remember to mark this question as an answer if it solves your problem for the purpose of others.

+1
Jul 14 '10 at 6:30
source share

The system I was working on is the Windows Server 2008 standard with IIS 7 (I believe that my experience will apply to all Windows systems of the same age).

Launch

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir 

SEEMED for work, as

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -lv 

showed .Net framework v4 registered in IIS.

But, doing the same for .Net v2, namely

 C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir 

NOT brought

 C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -lv 

shows the registered structure.

(And for me, the installer for Kofax Capture Network Server was still missing in ASP.NET.)

Decision:

  • Open Server Manager
  • Go to Roles / Web Server (IIS)
  • Click Add Role Services
  • check ASP.NET in the "Application Development" section (and click "Install")

After that, aspnet_regiis.exe -lv (any version) shows the registered structure. (And the Kofax installer was also happy and working.)

+1
Dec 18 '15 at 10:03
source share

I decided to solve it by running Repir in the .NET framework Extended, in the Add / Remove program;

Using win2008R2, .NET framework 4.0

0
May 11, '10 at 21:29
source share



All Articles