Ich habe eine Website mit VS 2012 und MVC4, es funktioniert mein localhost, aber wenn ich veröffentlicht und legte meinen Host es funktioniert nicht. IIS-Konfigurationen sind identisch. Aber es gibt mir folgende Fehlerzeilen:Asp.net MCV4 Framework Ausgabe
Dies ist ein Fehler;
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:
Line 20: </appSettings>
Line 21: <system.web>
Line 22: <compilation targetFramework="4.5" />
Line 23: <httpRuntime targetFramework="4.5" />
Line 24: <authentication mode="Forms">
Vielen Dank für Ihre Beratung im Voraus
Ich bin kein Experte für dieses spezielle Thema, aber ist das wirklich der ganze Fehler? –
Ich habe Fehlerzeilen behoben. – nermik
Ist .NET 4.5 auf Ihrem Server installiert? – jrummell