1. Trang chủ
  2. » Công Nghệ Thông Tin

programming windows server 2003

326 268 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 326
Dung lượng 6,94 MB

Nội dung

www.it-ebooks.info Programming Windows Server 2003 www.it-ebooks.info Programming Windows Server 2003 ROBERT HILL FOSTER MANNING Greenwich (74° w. long.) www.it-ebooks.info For online information and ordering of this and other Manning books, go to www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. 209 Bruce Park Avenue Fax: (203) 661-9018 Greenwich, CT 06830 email: orders@manning.com ©2004 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Manning Publications Co. Copyeditor: Liz Welch 209 Bruce Park Avenue Typesetter: Denis Dalinnik Greenwich, CT 06830 Cover designer: Leslie Haimes ISBN 1-930110-98-7 Printed in the United States of America 12345678910–VHG–0706050403 www.it-ebooks.info To Leigh www.it-ebooks.info vii brief contents 1 Windows Server 2003 overview 1 2 The .NET Framework, version 1.1 12 3 ASP.NET best practices 34 4 Internet Information Services 6 68 5 The Component Services 1.5 architecture 95 6 Using COM+ Services 1.5 119 7 Using XML and web services 162 8 Utilizing Microsoft UDDI Services in your enterprise 192 9 Windows Server 2003 application security 215 10 Deploying .NET applications 270 www.it-ebooks.info ix 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 www.it-ebooks.info x CONTENTS 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 www.it-ebooks.info CONTENTS xi 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 www.it-ebooks.info xii CONTENTS 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 10.1 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 appendix A The data model 286 index 293 www.it-ebooks.info [...]... categories: client and server requirements 12 www.it-ebooks.info In order for the client to be able to run the NET Framework, you need one of the following: • • • • • • • • • Windows 98/98SE Windows ME Windows NT 4 Workstation (Service Pack 6a) Windows NT 4 Server (Service Pack 6a) Windows 2000 Professional Windows 2000 Server family Windows XP Professional Windows XP Home Windows Server 2003 family NOTE... RAM 10 CHA PTE R 1 www.it-ebooks.info WINDOWS SERVER 2003 OVERVIEW 1.4.4 Windows Server 2003 Datacenter Edition Windows Server 2003 Datacenter Edition is the most scalable of any product in the Windows Server 2003 family of products It is designed for the largest enterprises so that they can deliver their mission-critical applications, databases, ERP systems, or server farms It differs from Enterprise... NET applications that will run on Windows Server 2003 1.2.1 6 Assigning server roles After you install Windows Server 2003, one of your first tasks is to configure your server into a specific “role.” Each role must be manually configured by an administrator CHA PTE R 1 www.it-ebooks.info WINDOWS SERVER 2003 OVERVIEW Server roles are designed to help you tune your server to perform a specific task or... applications for Windows Server 2003 Currently, many books are available on Windows Server 2003 administration, but none are explicitly targeted at developers This book is written by a developer for developers and addresses the issues of writing and performance-tuning applications for the Windows Server 2003 environment Among the many new and interesting features built into Windows Server 2003 that you... of RAM, while the 64-bit version supports up to 64 GB of RAM 1.4.3 Windows Server 2003 Web Edition Windows Server 2003 Web Edition is the newest themed version in the Windows Server 2003 family It is specifically designed to be a web server, with an emphasis on hosting ASP.NET web applications It is most similar to Windows NET Standard Server in the features that it offers, but is not designed to do... services to the world 1.4 THE WINDOWS SERVER 2003 FAMILY TREE The Windows Server 2003 family includes four editions: Standard Edition, Enterprise Edition, Web Edition, and Datacenter Edition By breaking the product up into separate editions, Microsoft gives you more choices based on the needs of your business 1.4.1 Windows Server 2003 Standard Edition Windows Server 2003 Standard Edition is designed for... Server THE WHOLE NET ENCHILADA 3 www.it-ebooks.info • • • • • • • • Internet Security and Acceleration Server Microsoft Operations Manager Microsoft Project Server Mobile Information Server SharePoint Portal Server SQL Server Windows 2000 Server family Windows Server 2003 family A common feature of these server products is that they each utilize XML in some form This is important to businesses because... only on the x86 platform 1.4.2 Windows Server 2003 Enterprise Edition Windows Server 2003 Enterprise Edition is designed for medium to large enterprises with more than 500 users This product resembles Windows 2000 Advanced Server It differs from Standard Edition in that it provides you with clustering features, which allow you to scale your server load out, or add more servers to balance processing... regional life of two centuries ago‚ brought back to life by the pictures from this collection xviii www.it-ebooks.info C H A P T E R 1 Windows Server 2003 overview 1.1 1.2 1.3 1.4 1.5 The whole NET enchilada 1 Windows Server 2003 6 This book’s direction 8 The Windows Server 2003 family tree 10 Summary 11 It seems that “.NET” something or other is everywhere in the Microsoft world these days Microsoft has... chapter 8, we discuss Windows Server 2003 s UDDI Services You’ll learn how to use these services to describe and discover web services in an intranet environment Chapter 9: Windows Server 2003 application security In this chapter, we discuss security from both an application and a platform level You’ll learn how and when to best secure your applications running on the Windows Server 2003 platform Chapter . 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. collection. www.it-ebooks.info 1 CHAPTER 1 Windows Server 2003 overview 1.1 The whole .NET enchilada 1 1.2 Windows Server 2003 6 1.3 This book’s direction 8 1.4 The Windows Server 2003 family tree 10 1.5 Summary. www.it-ebooks.info Programming Windows Server 2003 www.it-ebooks.info Programming Windows Server 2003 ROBERT HILL FOSTER MANNING Greenwich (74° w. long.) www.it-ebooks.info For

Ngày đăng: 24/04/2014, 16:01

TỪ KHÓA LIÊN QUAN

w