1

I keep getting this error when trying to debug an asp.net website (not web application):

Error 1 The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the element of the Web.config file.

All version numbers in the web.config have been set to v3.5 but I still get this error.

This happens after trying to run the site for the first time, at which point I get the unable to start debugging on web server error, followed by this one continually.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Jake Stimpson
  • 303
  • 2
  • 13

1 Answers1

0

The IIS bindings needs setting up correctly

m_collard
  • 2,008
  • 4
  • 29
  • 51
  • this should be moved to aphorisms.stackexchange.com :) and the question closed as a duplicate of [this one](https://stackoverflow.com/a/3314483/1132334), which solved the problem (at least for me, today). – Cee McSharpface Jul 04 '18 at 22:52