Unrecognized attribute “targetFramework” when deploying asp.net 4.0
28/01/2011 Leave a comment
Ok you start developement with .net framework 4.0 and possibly try to deploy your site to iis first time and getting this error :Unrecognized attribute “targetFramework” when deploying asp.net 4.0 Because you did not configure your iis run with .net framework 4.0.
For do it you have to change your path to
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
that execute command of
aspnet_regiis.exe -iru
if you already do this and getting this error you should better to check your site application pool for correct .NET framework version chosen.
Application Pools->Select yours -> Basic Settings -> And change .NET framework version
Thats it folks.