Today in VS2010 created a default WebApplication, anyway can not run in IIS, this iis7.5 made me a day to finish, in fact very simple is to change the version number.
First to build a website to try, release, and then set up the site in IIS, the establishment of the site's interface is very simple process is easy:
After the establishment of the operation incredibly error, said that there are problems in the web.config, and then show the current. NET Framework version is 2.0, think of it should be to select the 4.0 version. But looking for a long time also did not find where to modify the use of the frame version. I was so depressed that I was almost crushed. After one hours of groping finally solved the problem, the original site. NET version is no longer the same as before. Select settings in the ASP.net property page of the Site Properties dialog box, which is now set in the application pool, alas, this change is a dead man. In addition to selecting in the application pool when creating a new Web site, there are several other places to choose from.
The following four steps are more important ...
Set up the. NET Framework version when creating a Web site:
To set up the. NET Framework version for the application you have added
Iii. changing the IIS default. NET Framework version
Set up the. NET Framework version for application pools
It's finally done.