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

Art picture Art · Mar 15, 2009 · Viewed 155.9k times · Source

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)?

Answer

Darin Dimitrov picture Darin Dimitrov · Mar 15, 2009

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