03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

752 x CHAPTER 19 DEPLOYING YOUR WEBSITE<br />

add it manually. To do this, click the Add l<strong>in</strong>k <strong>in</strong> the Actions panel to add it. Then use the Move<br />

Up l<strong>in</strong>ks to move it to the top of the list. Click Yes when you see the warn<strong>in</strong>g about <strong>in</strong>herit<strong>in</strong>g<br />

changes. Your dialog box should look similar to Figure 19-10.<br />

FIGURE 19-10<br />

9. You can now close the Internet Information Services Manager, because the site is configured correctly<br />

as far as IIS is concerned. However, it still won’t run correctly because you need to configure<br />

security permissions on the filesystem, as you see later.<br />

How It Works<br />

Each new IIS <strong>in</strong>stallation has a Default Web Site, the site that listens to http://localhost by default.<br />

In this exercise, you configured this default website to run Planet Wrox, but you can also create a whole<br />

new site that can run side by side with other websites. You po<strong>in</strong>ted the root of the site to the Release<br />

folder that conta<strong>in</strong>s your website. With that mapp<strong>in</strong>g set up, IIS is able to see what files to serve when<br />

you request a URL like http://localhost. It means that a URL like http://localhost/Log<strong>in</strong>.aspx<br />

is mapped to the physical file at C:\Beg<strong>ASP</strong><strong>NET</strong>\Release\Log<strong>in</strong>.aspx. You also assigned the website<br />

an application pool — an IIS mechanism to isolate <strong>and</strong> configure one or more IIS websites <strong>in</strong> one fell<br />

swoop. Two websites runn<strong>in</strong>g <strong>in</strong> different application pools do not affect each other <strong>in</strong> case of a problem<br />

such as a crash. In this exercise you selected an application pool that uses the .<strong>NET</strong> <strong>4.5</strong> Framework<br />

<strong>and</strong> that uses the Integrated Pipel<strong>in</strong>e mode. In this mode, IIS <strong>and</strong> <strong>ASP</strong>.<strong>NET</strong> are tightly <strong>in</strong>tegrated,<br />

which means you can use <strong>ASP</strong>.<strong>NET</strong> features (such as Forms Authentication, which you saw <strong>in</strong> Chapter<br />

16) <strong>in</strong> st<strong>and</strong>ard IIS functionality such as serv<strong>in</strong>g static files. For more <strong>in</strong>formation about this mode,<br />

check out the official IIS website via http://t<strong>in</strong>yurl.com/IntegratedPipel<strong>in</strong>eMode.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!