보통 WSS 및 ASP.NET 사이트를 구축하려면 반드시 시스템에 IIS와 함께, .NET Framework 2.0 이 설치되어 있어야 한다. 그러나 종종 IIS 가 설치되기 전에, .NET Framework 2.0이 설치를 해서, IIS 내에 .NET Framework 2.0 기능을 전혀 활성화 시키지 못하는 경우가 있다. 대부분의 경우는 2.0을 다시 설치하거나 기타 2.0에 관련된 Update를 하면 되기는 하지만, 이 또한 비용이 드는데다, 다시 설치하게 되면 기존 설치 기록들이 잘못 적용될 수 있다.
다시 설치하지 않고 해결 하는 방법은 의외로 간단하다. 일단 .NET Framework 2.0이 설치되어 있으면 아래와 같은 경로가 있을 것이다.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
위의 경로를 들어가면, 여러가지 관리도구들과 핵심 어셈블리들이 있는데, 그 중 aspnet_regiis.exe 를 이용하여 IIS에 관련된 .NET 구성요소를 설치하게 된다.
즉 aspnet_regiis.exe 에 -iru 라는 옵션을 넣어 한번 실행해 주면 완료된다. 아래에 이 aspnet_regiis.exe에 대한 옵션들에 대한 설명이다. 참고로 추가한다.
Administration utility (2.0.50727) to install and uninstall ASP.NET on the local machine.
-- ASP.NET REGISTRATION OPTIONS -- -i Install this version of ASP.NET and update scriptmaps at the IIS metabase root and for all scriptmaps below the root. Existing scriptmaps of lower version are upgraded to this version.
-ir Install this version of ASP.NET, register only. Do not update scriptmaps in IIS.
-iru Install this version of ASP.NET. If there are any existing applications that uses ASP.NET, it will not update scriptmaps in IIS.
-enable When -enable is specified with -i, -ir or -r, ASP.NET will be enabled in the IIS security console (IIS 6.0 or later).
-disable When -disable is specified with -i, -ir or -r, ASP.NET will be disabled in the IIS security console (IIS 6.0 or later).
-s <path> Install scriptmaps for this version at the specified path, recursively. E.g. aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1
-sn <path> Install scriptmaps for this version at the specified path, non-recursively.
-r Install this version of ASP.NET and update scriptmaps at the IIS metabase root and for all scriptmaps below the root. Existing scriptmaps are upgraded to this version regardless of the original versions.
-u Uninstall this version of ASP.NET. Existing scriptmaps to this version are remapped to highest remaining version of ASP.NET installed on the machine.
-ua Uninstall all versions of ASP.NET on the machine.
-k <path> Remove all scriptmaps to any version of ASP.NET from the specified path, recursively. E.g. aspnet_regiis.exe -k W3SVC/1/ROOT/SampleApp1
-kn <path> Remove all scriptmaps to any version ASP.NET from the specified path, non-recursively.
-lv List all versions of ASP.NET that are installed on the machine, with status and installation path.
-lk List all the path of all IIS metabase keys where ASP.NET is scriptmapped, together with the version. Keys that inherit ASP.NET scriptmaps from a parent key will not be displayed
-c Install the client side scripts for this version to the aspnet_client subdirectory of each IIS site directory.
-e Remove the client side scripts for this version from the aspnet_client subdirectory of each IIS site directory.
-ea Remove the client side scripts for all versions from the aspnet_client subdirectory of each IIS site directory.
-ga <user> Grant the specified user or group access to the IIS metabase and other directories used by ASP.NET.