Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

IIS - Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. (D:\lowSite4\web.config line 11)

웹 애플리케이션을 IIS에 연결하고 실행했더니 "targetFramework" 속성을 인식할 수 없다는 오류가 발생합니다. 이때의 이벤트 로그에는 다음과 같은 항목이 남아 있습니다.

Event code: 3008 
Event message: A configuration error has occurred. 
Event time: 2019-09-09 오후 2:55:37 
Event time (UTC): 2019-09-09 오전 5:55:37 
Event ID: de225f0c559645bcb5a1b2df3c721d3a 
Event sequence: 1 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/7/ROOT-154-132124821373916102 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: D:\lowSite4\ 
    Machine name: TESTPC 
 
Process information: 
    Process ID: 4540 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\lowSite4 
 
Exception information: 
    Exception type: ConfigurationErrorsException 
    Exception message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. (D:\lowSite4\web.config line 11) 
 
Request information: 
    Request URL: http://TESTPC:8005/default.aspx 
    Request path: /default.aspx 
    User host address: 192.168.0.12 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\lowSite4 
 
Thread information: 
    Thread ID: 5 
    Thread account name: IIS APPPOOL\lowSite4 
    Is impersonating: False 
    Stack trace:    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)

물론, 해당 web.config에는 다음과 같이 targetFramework 항목이 존재합니다.

<?xml version="1.0"?>

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.0" />
    </system.web>

</configuration>

원인은, 이 웹 응용 프로그램은 .NET Framework 4.0을 대상으로 만들어진 것인데, 호스팅하는 IIS 측의 AppPool에 설정된 닷넷 버전은 2.0이었기 때문입니다. 따라서 4.0으로 바꾸기만 하면,

apppool_net_version_1.png

잘 동작합니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 9/25/2019]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 166  167  168  169  170  171  172  173  174  175  176  [177]  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
668정성태2/21/200933716개발 환경 구성: 35. SQL Express 버전과 User Instance 옵션
667정성태2/14/200945334웹: 9. IE 7. IWebBrowser2 인터페이스 메서드의 Navigate / Navigate2 차이점 [3]파일 다운로드1
666정성태2/12/200932128웹: 8. IE 8: 프로세스와 윈도우의 관계 - LCIE [1]파일 다운로드1
665정성태2/7/200928574웹: 7. Internet Explorer 8 - XHR, XDR, XST, XSRF [1]
664정성태2/5/200924554Windows: 42. Concurrency Runtime
663정성태2/5/200929123.NET Framework: 123. WPF - Arial Narrow 폰트 문제
662정성태2/3/200924285VS.NET IDE: 59. HyperAddin 도구 사용 설명 [1]
661정성태2/3/200928169오류 유형: 68. msxml6r.dll 설치 오류
660정성태2/3/200926941Windows: 41. UAC 보안 취약 [2]
659정성태2/2/200938129오류 유형: 67. ClickOnce 응용 프로그램이 실행되지 않을 때.
658정성태2/1/200930330Team Foundation Server: 30. 소스 서버 보안
657정성태2/1/200933473Windows: 40. Q1 Ultra + Windows 7 베타
656정성태2/1/200934476디버깅 기술: 24. .NET JIT 최적화 코드 생성 제어
655정성태1/31/200931126Windows: 39. IE8 표준 모드 [4]
653정성태1/29/200925986.NET Framework: 122. XML Serializer를 이용한 값 복사: 성능은 어떨까!파일 다운로드1
652정성태1/22/200926504.NET Framework: 121. WPF - PrintTicket provider failed to bind to printer.
651정성태1/20/200924229.NET Framework: 120. 타입이 다른 배열끼리의 변환
650정성태1/19/200936130COM 개체 관련: 21. C/C++ 프로젝트에 /clr 옵션 적용으로 인한 COM 개체 사용 오류
649정성태1/18/200933741Windows: 38. Q1U UMPC에 Windows 7 베타 설치하기
648정성태1/18/200931927Windows: 37. Windows PE를 USB 메모리에 적용
647정성태1/18/200942431Windows: 36. Windows PE ISO 이미지 만들기 [1]
646정성태1/18/200935546디버깅 기술: 23. COMPLUS_ZapDisable - JIT 최적화 코드 생성 제어 [1]
645정성태1/11/200934193Windows: 35. 서명되지 않은 드라이버 로딩 방법
644정성태1/11/200925108Windows: 34. VPC 설치 후기 [2]
643정성태1/10/200930290Windows: 33. Windows 7 베타와 VMA 충돌 [1]
642정성태1/8/200928863개발 환경 구성: 34. Sysinternals의 모든 툴을 한번에 업데이트 하는 방법 [1]
... 166  167  168  169  170  171  172  173  174  175  176  [177]  178  179  180  ...