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 Hatası

0

YWindows IIS web sunucuda aşağıdaki gibi hata alıyorum:

Server Error in '/' 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: 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: 
 

An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


Source File: C:\inetpub\wwwroot\web.config    Line: 38 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031

Bu hatanın çözümü nedir?

alattin alattin (16999)
9 yıl önce sordu

    Toplam 1 Cevap


    0

    Eğer web uygulamanız .Net Framework 4.5 kullanıyorsa fakat sunucuda yani IIS üzerinde .netframework 4.5 yüklü değilse 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 Hatası ie karşılaşırsınız.

    Hatanın çözümü için sunucuya .NetFramework 4.5 yüklemelisiniz.

    .NetFramework 4.5  buradan indirebilirsiniz: Microsoft .NET Framework 4.5 indir

    alattin alattin (16999)
    9 yıl önce cevaplandı

      üyelik gerektirir

      Cevap yazabilmek için üye girişi yapmalısınız.

      Eğer uzmanim.net üyesiyseniz giriş yapabilirsiniz: üye girişi yap
      uzmanim.net'e üye olmak çok kolaydır: hemen kayıt ol