Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
In Visual Studio 2010 Essential Training, author Walt Ritscher demonstrates how to use Visual Studio 2010 Professional to develop full-featured applications targeting a variety of platforms. Starting with an overview of the integrated developer environment, the course covers working with code editors, navigating and formatting code, and deploying applications. Also included are tutorials on running performance and load tests, and debugging code. Exercise files accompany the course.
After you create a Silverlight or ASP.NET web application, you typically deploy it to a web server where others can access your application. At a bare minimum, a web deployment copies files from one server to another. In some situations, you might need to deploy it to multiple servers in a web farm. I've seen many ways to deploy applications to web servers--some of them downright clunky. Fortunately, for us, Microsoft created web deploy extensions for their enterprise web server, IIS, and Visual Studio can use these extensions to deploy your application.
For today's demo, I'm going to be using the solution UsingBingMapControl, which contains a Silverlight application and an ASP.NET application. The Silverlight pages are going to be rendered inside the ASP.NET application. Let me show you what the application will look like. I'm going to press F5 to run the application. This showcases the Bing Map control, which I can also programmatically access. For instance, I can click on this New York button to center the map on New York, or I can click here to zoom in on an area of the Grand Canyon.
So this is our ASP.NET application. Now I'm ready to deploy. I need to push it out to our web servers. For our demonstration today, we're going to be using a local server in IIS, but in reality we probably would be publishing this to a production server somewhere on a host. I can go to Build > Publish. In this dialog, I have several ways to connect to the web server. I can use the local file system on my machine, because IIS is running locally. If it was running elsewhere, I could use FTP, or File Transfer Protocol, or FrontPage Server Extensions to deploy.
I can also use Web Deploy, which is Microsoft's latest mechanism for deployment. I'll show you that dialog in just one minute. I'm going to delete all the existing files, and I'm going to save out to my desktop, which is where IIS is looking for the web files. Before I publish, I need to configure IIS for the correct authentication. I'm going to go run IIS, and here's the site we set up in the previous movie: the LyndaWeb. Now, I'm going to click on Basic Settings and then Connect As.
If we connect as application user, and we run off our desktop, I'm going to get denied access to the web config file. So I'm going to switch over to a different user. I'm going to use my user account on this machine to connect. I'm going to test my settings. And if I get green authorizations, I know that I'm correctly configured. Naturally on your machine, you're going to have to use account that makes sense for your computer. I'll close all these dialogs and close IIS, and then I'm going to click Publish.
Now I'm going to go look in my Desktop, in the LyndaWeb folder, and there are all the files necessary for my web application. Next, I'm going to test this in a web browser. I'll try Mozilla Firefox. I'll use localhost: and then my port number, which is 90, and we have successfully published our web application. Let me show you one more detail. I'm going to go back to Visual Studio and then choose Build > Publish. I can also deploy with this Web Deploy model.
As I showed you earlier, I'm doing a local deploy. But you can also publish using this web deploy model, which is a much more powerful system. This a great option if you're deploying to production servers. With web deploy, I can perform other tasks, like changing web.config files for different environments, configure IIS settings, and even install security certificates.
Find answers to the most frequently asked questions about Visual Studio 2010 Essential Training.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.