ASP.NET the targetframework attribute is not allowed

我的未来我决定 提交于 2019-12-11 02:08:07

问题


I have these lines in my web.config:

<httpRuntime maxRequestLength="5120000" executionTimeout="54000" requestValidationMode="2.0" targetFramework="4.5"/>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5">

But on the httpRuntime element I get the design time error the targetframework attribute is not allowed

The strange thing is that this occurs on my local development machine and other sites on it work fine with these definitions in their respective web.config files. All sites are using the same application pool. ASP.NET4.5 is installed (I double checked using the Microsoft Web Installer tool)

I checked here and here and here already

All other posts recommend installing ASP.NET4.5 on the server, but that has been done by me already. What else can I check?

来源:https://stackoverflow.com/questions/36190394/asp-net-the-targetframework-attribute-is-not-allowed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!