Reputation:
I'm developing a web app in .NET and it has target 4.5 (can't use 4.0 because some people used 4.5 only features). Right now I'm trying to upload the app into IIS but it shows me this error (It's in Spanish but I'll translate):
Atributo 'targetFramework' no reconocido. Tenga en cuenta que en los nombres de atributo se distinguen mayúsculas y minúsculas.
Unrecognized attribute targetFramework. Note that attribute names are case-sensitive
I'm pretty sure I have IIS with .NET framework installed, and I have searched a lot and found out that it seems not to exist v4.5 for IIS, but it still doesn't work.
Upvotes: 1
Views: 2800
Reputation: 3216
Looking at the last lines in the first screenshot, it seems your IIS application pool is using the .NET CLR 2.0.
You should double check which application pool your ASP.NET application is actually using, and change the application pool settings to use the .NET CLR 4.0
Upvotes: 5