• 카테고리
    • 전체 글

    • 카테고리1
    • 카테고리2
    • 카테고리3
    • 카테고리4
  • 태그
  • 방명록

IIS에 .NET Framework 2.0 구성요소가 등록되어 있지 않은 경우

기술자료/OS 2007. 4. 25. 22:39
보통 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 구성요소를 설치하게 된다.

그래서 아래의 명령을 명령줄에 입력하면 된다.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.
50727\aspnet_regiis.exe -iru

사용자 삽입 이미지


즉 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.

728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

250x250

블로그 내에 소스 코드 삽입 이사온 기념 스킨도... RSS 전문 기능 비활성화 관련. 스킨 바꾸어 보았습니다. 서버 파일 정리 좀 했습니다.

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

windows 개발환경 Azure me2sms 수 me2dayzm Google Apps Engine WSS 비스킷 오류 twi2me SharePoint 것 MOSS 2007 매뉴얼 moss Visual Studio 불만 java me2photo Buscuit 인터파크 2010 친구 지름신 Tutorial 협업 블로그 좀 e-book

  • Total :
  • Today :
  • Yesterday :

Copyright © 2015-2025 Socialdev. All Rights Reserved.

Copyright © 2015-2025 Socialdev. All Rights Reserved.

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.