Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The exercise files that accompany this course were built for ASP.NET 3.5. If you're working with ASP.NET 4.5, you can easily upgrade the website to this newer version of the framework, and I'll show you how to do that. First, open up one of the websites from the exercise files. I'll go to the menu and I'll select File > Open Website. Next, I'll open up one of the websites. I'll choose this one, the Programming website from chapter four, and I'll click Open. Now, my computer has the 3.5 framework and so the website opens cleanly. If I were working on Windows 8 or on another copy of Windows that didn't have ASP.NET 3.5, I'd be immediately prompted to upgrade the website to the available version, 4.5. But even if I'm not prompted, I can still do the upgrade, and here's how. First, I'm going to open the existing web.config file. The structure of this configuration file is for ASP.NET 3.5. It's pretty long and pretty complex. And one of the big changes that happens, starting in ASP.NET 4, was a great simplification of this configuration file. I'll scroll down and show that there are dozens of lines here. Now, I'll exit full screen, and I'll come over to the Solution Explorer, and I'll right-click on the folder that contains the website. And I'll choose Property Pages from the bottom of the menu. On this screen, I'll select the Build category, and I'll change the framework to .NET Framework 4.5, and I'll click OK. When prompted to confirm the change, I'll click Yes. This makes an immediate change to the web.config file.
You'll see a new HTTP runtime tag with a target framework of 4.5. But then, if you scroll down the file, you'll see that it's a lot shorter than it was before. It's greatly simplified and most of the content I see here is just comments. I'll test the application by going to the menu and choosing Debug > Start Without Debugging. That fires up the development web server and loads the file list from the website, and then I can click into one of the ASPX files and see that it works fine. So that's the process you'll need to follow for each of the websites in the exercise files. Again, they're built for 3.5, but you can easily upgrade them to 4.5 if you desire. And if you're working on a copy of Windows that doesn't have the older version of the framework the upgrade will be forced.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98934 Viewers
61 Video lessons · 86222 Viewers
71 Video lessons · 70072 Viewers
56 Video lessons · 102298 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.