Wednesday, May 27, 2009

Manually add .NET 2.0 or 1.0 Framework to IIS

Normally ASP .NET 2.0 or 1.0 should be installed automatically for you with IIS, but there are instances when they are not. If that happens, it's pretty easy to add them as options in the web service extensions. Each contains a utility called aspnet_regiis.exe that will take care of it for you. You can find it in the following default locations:

.NET 1.0 - C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

.NET 2.0 - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

You can call use the tool from the command line with the -i switch to install that particular version of ASP .NET in IIS. You could go to Start->Run, then type or copy/paste:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i

and press OK. The command prompt should open and say it is installing whichever version you had chosen. After it finishes, you will then be allowed to control the ASP .NET web service extensions within IIS, and allow them to be used on pages your web server is hosting.

No comments: