I got the solution. Just follow the following steps:
1) Open IIS management console
2) Click on Application Pools
3) Click on DefaultAppPool
4) On the right side bar you will find: "Edit Application Pool". Below this title, click on "Basic Setting" and from there you can change the .Net framework from v. 2 to v. 4. I keep managed application line as it is "integrated".