2

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?

Community
  • 1
  • 1
Adam
  • 6,041
  • 36
  • 120
  • 208
  • Any difference in Visual studio version in local dev machine for this particular project? Just curious coz' targetframework is an attribute of httpRuntime tag in 2012 and above – Bikee Mar 24 '16 at 05:37
  • Nope, I run them both in Visual Studio 2013 Express. Can I maybe also configure the target framework elsewhere in a website project besides from web.config and that may cause a conflict? (I'm guessing here) – Adam Mar 24 '16 at 11:37
  • 1
    Did you find any solution for this? @Flo – Jordan Jun 27 '18 at 07:17

0 Answers0