Unrecognized attribute ‘targetFramework’ 4.0

Hi Folks,

If you tried to deploy your asp.net application on Win 08 – IIS7 and you were getting this error:
Unrecognized attribute ‘targetFramework’ 4.0

This means the application pool that runs your website is not configured to run under .NET Framework 4.0.

On IIS 7:
1) Click on your application pool.
2) Click on the right pane, Advanced settings.
3) Under General Tab, Select .NET Framework Version.
4) Select v 4.0.
5) Recycle your application pool by right click on it.
6) Refresh your page.

Refresh your page and it works :)

Hope this helps…


Regards,
Mostafa Arafatwitter.com/mostafaelzoghbi

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>