16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 4: Windows SharePoint Services Architecture 109<br />

pass all other page requests to the correct h<strong>and</strong>ler or infrastructure. Stsfltr.dll passes<br />

all static HTML pages to an IIS ISAPI extension. .Aspx pages are passed either<br />

directly to the ASP.NET infrastructure or to the IHTTP h<strong>and</strong>ler. Stsfltr.dll also h<strong>and</strong>les<br />

inclusions <strong>and</strong> exclusions.<br />

Rendering .ASPX Pages<br />

During installation, Windows SharePoint Services defines the association between<br />

types of resources <strong>and</strong> the h<strong>and</strong>lers for each. This set of mappings is defined in the<br />

section of the Web.config file that is discussed later in this chapter.<br />

One of the h<strong>and</strong>lers defined in this section is the IHTTP h<strong>and</strong>ler, which is registered<br />

to h<strong>and</strong>le all .aspx requests. The IHTTP h<strong>and</strong>ler either passes the ASP.NET page<br />

directly to ASP.NET (direct mode) or runs the page in safe mode.<br />

Direct Mode<br />

Normally when ASP.NET pages are run, the page is read <strong>and</strong> then compiled into a DLL<br />

file that is saved to the Web server. Because a compiled DLL runs much faster than an<br />

.aspx page, the DLL can be used instead of having to parse the page each time it is<br />

requested. In Windows SharePoint Services, h<strong>and</strong>ling ASP.NET pages in this manner is<br />

called direct mode. Only the ASP.NET pages that are in the _layouts directory of the<br />

front-end Web server run in direct mode. The _layouts directory contains fixed application<br />

pages used by Windows SharePoint Services, such as the Create List, Create<br />

Field, <strong>and</strong> Site Settings pages. This directory is considered to be outside the website.<br />

All other ASP.NET pages, including Web Part Pages, run in safe mode.<br />

Safe Mode<br />

Templates<br />

ASP.NET pages that are considered to be inside a website are run in safe mode. In<br />

safe mode, .Aspx pages are not allowed to compile code into a DLL. Also, only controls<br />

on the page that are on the safe controls list are run. The safe controls list is<br />

included in the Web.config file. All Web Part Pages run in safe mode.<br />

Windows SharePoint Services comes with templates that are used to create sites <strong>and</strong><br />

site pages. Templates can apply to an entire site or to different parts of a site, such<br />

as Web Part Pages, meeting workspaces, lists, areas, <strong>and</strong> quotas. By default, templates<br />

are stored in the Program Files\Common Files\<strong>Microsoft</strong> Shared\Web Server<br />

Extensions\60\templates directory on the local file system of the front-end Web<br />

server. The use of templates saves database space <strong>and</strong> increases performance in<br />

Windows SharePoint Services.

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

Saved successfully!

Ooh no, something went wrong!