My friend ask me to work on his project he did not give me source code of the project , he has deployed project on IIS 7.5 , so I restore the project in visual studio using right click on the project from IIS and then explore and then copy this path and open project from visual stuido using that path , it open correctly but when i run it ,it gives the below error message
Error 1 Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. C:\HostingSpaces\admin1\MYproject.pro\wwwroot\web.config 33
I have checked that My hosted application application pole is set to ASP.NET 4.0 Classic and the Web.config says targer framwork 4.0
What would be the cause , can i restore the project to visual studio using this methos as i explained,
What is wrong with Target framework
Rajeev PunhaniPosted Mar 9, 2017, 11:10 PM
Hi Mark,
This issue occurs when your target framework is 4.0 but your application pool is 2.0. Go to your application and select Advance settings and see the application pool used.Now go to application pool and change your framework to 4.0.