내 준비 서버 내에 .net 버전 4.5가 설치되어 있고 asp.net mvc 웹 응용 프로그램을 개발했습니다. 내가 생산에 생산에 응용 프로그램을 배포 할 때asp.net 버전 4.0에 내 asp.net MVC 웹 응용 프로그램을 배포 할 수 없습니다
는 이제 web.config 파일에 오류가 제기 : -
parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
Source Error:
Line 63: </caching>
Line 64: <customErrors mode="RemoteOnly" />
Line 65: <compilation targetFramework="4.5">
Line 66: <assemblies>
Line 67: <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
Source File: C:\inetpub\wwwroot\web.config (file:///C:/inetpub/wwwroot/web.config) Line: 65
_____
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 So
내가 생산에 .NET 버전을 확인하고는 4.0 대신 4.5이었다.
그래서 지금은 프로덕션 서버에서 다음을 수행합니다 : -
- 나는 & 생산에 .NET 버전 4.5을 설치 다운로드합니다.
- 밤 사이에 프로덕션 서버를 다시 시작하십시오.
그래서이 문제를 해결할 것입니다, 또는 나는 새로운 .NET 버전을 적용하기 위해 IIS에 내 전체의 asp.net MVC를 재 - 배포 할 수 있나요? 이미 (그렇지 않으면 당신이 오류가 표시되지 않을 것이다) 서버에 사이트를 배포 한
예, 응용 프로그램을 배포 할 때 응용 프로그램 풀 4.5을 사용하도록 설정되어 있는지 제공하지 4.0 – Gjohn
그래서 난 그래서 난 내 코드를 유지하기 위해 생산에 4.5적인 버전 .nt를 설치합니다 ,, 내 코드를 수정하지 않습니다 그대로 ... –
생산에 4.5를 설치 한 후에도 작동합니까? 다시 배포 할 필요없이? –