Table of Contents


preface  xiii
acknowledgments  xvii
about the cover illustration  xviii

1  Windows Server 2003 overview   1
1.1 The whole .NET enchilada 1
Smart clients 2
Servers 3
Developer tools 4
1.2 Windows Server 2003 6
Assigning server roles 6
1.3 This book?s direction 8
1.4 The Windows Server 2003 family tree 10
Windows Server 2003 Standard Edition 10
Windows Server 2003 Enterprise Edition 10
Windows Server 2003 Web Edition 10
Windows Server 2003 Datacenter Edition 11
1.5 Summary 11

2  The .NET Framework, version 1.1   12
2.1 Requirements 12
Operating system 12
Software 13
Hardware 14
2.2 New features of version 1.1 15
The .NET Compact Framework 15
Effectively utilizing ADO.NET 19
ASP.NET mobile controls 26
Side-by-side execution with the .NET Framework 1.0 30
Framework security 31
2.3 Summary 33

3  ASP.NET best practices   34
3.1 ASP.NET?A simple example 34
3.2 Language best practices 41
Coding styles 41
Binding 42
3.3 Server controls 45
ViewState 45
Validation 46
3.4 Error handling 47
Using no error handler 47
Using try/catch blocks 50
Redirecting web.config errors 53
Using the error event of the application object 54
Best practice 54
3.5 State management 54
3.6 ASP.NET caching 56
Page output caching 56
Fragment caching 57
Using the built-in cache API 59
3.7 The ASP.NET sample application 61
Application files 61
3.8 Summary 66

4  Internet Information Services 6   68
4.1 Installing IIS 6 68
4.2 The IIS architecture 73
IIS services 73
The XML metabase 74
IIS 6 Isolation Modes 75
4.3 Configuring an ASP.NET application 78
Allowing dynamic content 78
Configuring an application pool 79
Configuring an IIS 6 web site 83
4.4 IIS authentication 89
4.5 Summary 94

5  The Component Services 1.5 architecture 95
5.1 Overview of Component Services 95
In the beginning ? there was COM 95
Moving to MTS 98
On to COM+ 98
5.2 The COM+ component architecture 99
COM+ applications 102
Your objects? context 103
5.3 Creating a COM+ component 104
Designing the COM+ component 104
Creating the component 106
Installing the component 115
5.4 Summary 118

6  Using COM+ Services 1.5   119
6.1 My Computer properties 119
6.2 Application properties 127
6.3 Component properties 135
6.4 COM+ services new to Windows Server 2003 140
Application pooling 140
Application recycling 140
Configuring applications as NT services 142
Low-Memory Activation Gates 143
Object constructor strings 145
COM+ partitions 146
Private components 150
The COM+ SOAP service 152
Copying and moving COM+ components 158
Pausing and disabling applications 158
Process dumping 159
6.5 Summary 161

7  Using XML and web services   162
7.1 Web services overview 162
XML 162
SOAP 171
WSDL 174
7.2 Building a web service 177
7.3 Accessing a web service 181
7.4 Summary 191

8  Utilizing Microsoft UDDI Services in your enterprise   192
8.1 Installing UDDI Services 193
8.2 The UDDI Services Console 197
Site properties 197
Server properties 201
8.3 Configuring and using UDDI Services 204
A UDDI Services example 205
8.4 Summary 214

9  Windows Server 2003 application security   215
9.1 Platform security 215
Application architecture 216
IIS authentication and authorization 216
Certificates 219
ASP.NET authentication and authorization 227
Enterprise Services authentication and authorization 229
SQL Server 2000 authentication and authorization 229
9.2 ASP.NET security 230
Windows authentication 230
Forms authentication 230
Passport authentication 248
The None authentication option 250
URL authorization 250
Impersonation 251
9.3 Securing web services 251
Configuring authentication 251
Limit your protocols 252
Secure web service connections 253
9.4 Enterprise Services security 254
Declarative security 254
Programmatic security 258
9.5 SQL Server 2000 security 260
SQL Server 2000 SSL 262
9.6 Security policies 264
9.7 Summary 269

10  Deploying .NET applications   270
Deployment strategies 270
Your assembly?s ?manifest-o? 271
XCOPY deployment 272
Windows Installer 274
10.2 Using Visual Studio .NET for deployment 274
The Setup Wizard 275
Setup editors 277
Configuring your setup project?s properties 282
Generating your MSI file 284
10.3 Creating a deployment plan 285
10.4 Summary 285

A  The data model   286



index 293