프로젝트를 만들려고했지만 web.config에서 TargetFramework 특성을 인식하지 못한다는 오류를 계속받습니다.ASP.NET TargetFramework 특성이 인식되지 않습니다.
편집 : web.config가 추가되었습니다. 나는 같은 문제로 한 가지 질문을 보았고 ASP.NET의 버전과 동일한 버전이어야한다고 말했다. 그러나 나는 그것을하는 법을 정말로 모른다.
P. 로컬 웹에서 파일을 실행할 수 없으므로 다른 버전의 Visual Studio로 변경할 수 없습니다 (해당 프로그램을 사용함). 그러나 그것은 다른 문제입니다.
지금은 오래되었습니다. 그것이 어려운 문제라고 생각해라. 당신의 Web.config = "4.0"targetFramework의 속성을 가지고 있지만, 응용 프로그램 풀은 ASP.NET 2.0을 실행하도록 설정되어있는 경우
는<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/> </system.web>
<system.codedom>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
</system.webServer>
</configuration>
이 줄이있는 구성 파일의 부분을 게시 할 수 있습니까? –
잘못된 asp.net 버전 - 아마도 당신이 실행 asp.net 버전이 아닌 일부 속성을 사용합니다. – Aristos