Windows XP에 IIS을 설치한 후 sample sorce을 Virtual drectory에 넣었다.

하지만, Configuration Error 에러 메시지가 나오는 현상이다.

Server Error in '/test' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 22: 			</controls>
Line 23: 		</pages>
Line 24: 		<compilation debug="true" targetFramework="4.0">
Line 25: 			<assemblies>
Line 26: 				<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Source File: H:\700.project 2012\testweb\web.config    Line: 24


Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634


문제는 다름 아닌 아래쪽 메시지에서 찾을 수 있었다.


Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634

구글에서 검색한 결과 다들 .NET 버전을 확인하라고 하는데....

처음엔 무슨 말인지 몰랐다.

그런데 IIS에서 ASP.NET 탭을 본 기억이 나서 확인 한 결과....

( IIS >  Right click on WebSite > Properties > ASP.NET > Version )



ASP.NET 버전은 4.0 으로 변경하면 정상적으로 보인다.

이것을 몰라서 그동안 완전 고생했었다..ㅡㅡ;;


.

Posted by 노을지기