我已经使用dot net frame work 4.5和MySQL Database在Visual Studio 2015中创build了一个web API 。 在我的系统上, API是完美的。 但是当我部署在我的服务器上,然后在本地运行,它给了我下面的错误
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.
<system.web> <authentication mode="None" /> <compilation targetFramework="4.5.2" /> <httpRuntime targetFramework="4.5.2" /> <httpModules>
以下是我的项目的属性
在服务器上我已经安装了IIS的以下function
安装后,我检查了iis但是没有.NET 4.5的POOL 。 同时添加新的池我找不到4.5版本。
我到目前为止做了什么?
IISfunction,然后将其添加回来。 仍然没有进展。 注意
我正在使用Windows Server 2012 R2 。
我坚持它,不知道该怎么做。 任何帮助将不胜感激。