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

IisIis 7asp.net 2.0

Iis Problem Overview


I have a web-page application already created, but when I open it in visual studio 2008, it says there that:

ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure you Web server for ASP.NET 2.0 in order for your site to run correctly.

I'm using asp.net 2.0, IIS7 and running on vista home premium.

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

Iis Solutions


Solution 1 - Iis

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 Command Prompt as Administrator to avoid the ...requested operation requires elevation error


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

  1. Open Control Panel
  2. Programs\Turn Windows Features on or off
  3. Internet Information Services
  4. World Wide Web Services
  5. Application development Features
  6. ASP.Net <== check mark here

Solution 2 - Iis

If anyone like me is still unable to register ASP.NET with IIS.

You just need to run these three commands one by one in command prompt

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

after that, Run

> aspnet_regiis.exe -i -enable

and Finally Reset IIS

> iisreset

Hope it helps the person in need... cheers!

Solution 3 - Iis

If you installed IIS after the .Net framework you can solve the porblem by re-installing the .Net framework. Part of its install detects whether IIS is present and updates IIS accordingly.

Solution 4 - Iis

Open Control Panel

  • Programs
  • Turn Windows Features on or off expand - Internet Information Services expand - World Wide Web Services expand - Application development Features check - ASP.Net

Its advisable you check other feature to avoid future problem that might not give direct error messages Please don't forget to mark this question as answered if it solves your problem for the purpose of others

Solution 5 - Iis

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

Running

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

SEEMED to work, as

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

showed the .Net framework v4 registered with IIS.

But, running the same for .Net v2, namely

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

did NOT result in

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

showing the framework registered.

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

The solution was:

  • Open Server Manager
  • Go to Roles/Web Server (IIS)
  • Push Add Role Services
  • check ASP.NET under Application Development (and press Install)

After that, aspnet_regiis.exe -lv (either version) shows the framework registered. (And the Kofax installer was also happy and worked.)

Solution 6 - Iis

I got it resolved by doing Repir on .NET framework Extended, in Add/Remove program ;

Using win2008R2, .NET framework 4.0

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionArtView Question on Stackoverflow
Solution 1 - IisDarin DimitrovView Answer on Stackoverflow
Solution 2 - IisBravoView Answer on Stackoverflow
Solution 3 - IissipsorceryView Answer on Stackoverflow
Solution 4 - IisFrancis FrankView Answer on Stackoverflow
Solution 5 - IisbooFarView Answer on Stackoverflow
Solution 6 - IisSanjay10View Answer on Stackoverflow