0

I have a .NET 4.0 WCF Service hosted on a machine running .NET 3.5 Compact and .NET 4.5.2.

Whenever I try to run the service I get a Configuration Error with the following message:

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Line 2:  <configuration>
Line 3:    <system.web>
Line 4:      <compilation debug="true" targetFramework="4.0" />

I thought 4.5.x frameworks were a replacement for 4.0. How can this be resolved?

Pantelis
  • 2,060
  • 3
  • 25
  • 40
  • 1
    It sounds like your application pool is set to run on 2.0/3.5 framework instead of 4.0/4.5. It's also quite possible that you don't have ASP.NET 4/4.5 registered at all. – Luaan May 18 '15 at 06:18
  • Duh, right! Totally forgot to check the app pool. Thats it, thanks @Luaan – Pantelis May 18 '15 at 06:20

0 Answers0