Download presentation
Presentation is loading. Please wait.
1
Tools to Power Your Vision Aleksandrs Lielbriedis Microsoft Latvia
2
Agenda New Features in VS.NET 2003 Web Service Enhancements Code Obfuscator Application Center Test IIS 6.0
3
.NET Framework Platform and Tools Operating system Common language runtime Base class library ADO.NET and XML ASP.NET Web forms Web services WindowsForms Common language specification Visual Basic ® Basic ® C++C#J#… Visual Studio.NET
4
.NET Framework version 1.1 Increased scalability and performance Side-by-side exec with.NET Framework 1.0 No-touch deployment from the Internet Code access security for ASP.NET ASP.NET Mobile Controls Support for ODBC and Oracle DB 7i and 8i IPv6 Included with Windows ® Server 2003
5
Windows Server 2003 with.NET Framework 1.1 - application server errors beyond
6
ASP.NET Mobile Controls Build-in Mobile Development Mobile Web Pages Local Code.NET Compact Framework Device operating system Mobile Web browser Smart Device Programmability
7
One programming model One development tool One set of skills Build-in Mobile Development Broad-reach Web applications Visual Studio.NET ASP.NET Mobile Web Controls Over 200 device models Smart device applications Visual Studio.NET Microsoft.NET Compact Framework Pocket PC, Windows CE.NET WWW
8
Increased IDE Performance Startup time reduced Improved IntelliSense ® Dynamic help faster Object browser faster Code editor drop-down menus faster
9
Upgrading Applications Run multiple version of Visual Studio side-by-side: Visual Studio 6.0 Visual Studio.NET 2002 Visual Studio.NET 2003 Upgrade from Visual Studio.NET 2002 to Visual Studio.NET 2003 Only the project files are updated Doesn’t change any of your source files Application configuration
10
VB 6.0 Upgrading Form layout ActiveX ® controls ADO binding RES files Code COM libraries User controls Web classes
11
J# Visual J++ and Java Upgrading Visual J++ Project Other Java- language source C# Java Language Conversion Assistant.class files.exe.dll Jblmp.exe
12
Productivity Enhancements Enhanced “Add Web Reference” dialog Code editor enhancements New components Debugging enhancements Designer enhancements Schema designer zoom Mobile Web form designer
13
Developer Productivity Languages Visual Basic.NET Fully object-oriented Free threading, structured exception handling Host Visual Basic 6.0 controls in Windows Forms applications Improved IntelliSense and debugger Variable declaration in loops Bitshift operators Mobile applications Microsoft ® Visual C++ ®.NET Managed extensions for C++ ISO C++ conformance Windows Forms designer Enhanced floating point and performance optimizations P4 targeting Note: Items in green are new in Visual Studio.NET 2003
14
Languages Microsoft ® Visual C# ®.NET (new in 2002) Component-oriented, type-safe Improved IntelliSense Custom build steps Code insertion for common tasks Mobile applications Microsoft ® Visual J# ™.NET Java-language syntax Full integration with Visual Studio.NET Easy way to move Java-language skills, code to the.NET Framework Full access to the.NET Framework Note: Items in green are new in Visual Studio.NET 2003
15
Productivity and Language Enhancements
16
Web Service Enhancements WS-I: Web service interoperability Industry organization: Microsoft, IBM, Intel… Industry standard specifications Security (WS-Security) Transactions (WS-Transaction) Routing (WS-Routing) More in the future WSE: Microsoft implementation of WS-I Enhancements to ASP.NET Web services Develop using Visual Studio.NET
17
Web Service Enhancements Signing Encrypting Routing Only A can decrypt the message
18
Web Service Enhancements
19
Obfuscator
20
Microsoft ACT ACT is a web stress tool designed to simulate a high volume of HTTP requests Test applications or web services as they are being developed Discovers bottlenecks and provides performance information Not a multiple client tool (developer only)
21
Creating an ACT test Manually create tests Browser recording tests Setting the test properties Simultaneous browser connections Run time or iterations
22
Adding dynamic data Changing request data makes the simulation more accurate You can modify any part of the request or response Query strings Controlling the current user Cookies ASP.NET view state
23
Security Authentication schemes supported: Basic Integrated Windows DigestPassportForms Encryption types supported Secure Socket Layer
24
Using SOAP SOAP request can be obtained from the web service help page You’ll need to format the SOAP request to be properly encoded Utilize Visual Studios built-in macro recorder
25
Creating an ACT Test
26
Analyzing the results Getting performance information is an iterative process Stand-alone ACT interface has better reporting Saturation point Processor, memory, disk, network, backend Response time: TTLB of 10,000 ms Watch client CPU utilization!
27
Decreasing requests/second
28
MHz cost formula for a Page Mhz Cost = N * S * avg (CPU) / avg(RPS) Where: N = Number of Processors S = Speed of Processors CPU = Processor: % CPU Utilization RPS = ASP.NET: Requests/Second
29
MHz cost formula explained A test using a 2 processor web server achieved 80 requests per second, with the processors 70% utilized So, this works out to … 2 processors * 700 MHz = 1,400 MHz 70% CPU utilization = (1,400) * (0.70) = 980 MHz available to use 80 ASP requests per second 980/80 = 12.25 MHz per ASPx request
30
Performance counters Processor Processor, % CPU Utilization Memory System, Context Switches/Sec Network bandwidth Network interface, Bytes Total/Sec Disk Physical Disk, % Disk Time_Total Backend resource ASP.NET, Requests Queued
31
Performance tips Try to use a dedicated web server for testing Use SQLDataReader for SQL Server data access, not the OleDB reader Turn off debug mode when not using Turn off view state where its not needed Turn off session state if not needed
32
Performance tips (cont.) Pre-batch compile - request a page from the web application Running code in both managed and unmanaged worlds is expensive Cache items that have a long expiration Use a Repeater instead of a DataGrid control – its less expensive
33
web app Making Your.NET Apps More Reliable A New Architecture for IIS6 GOAL: enable complete app isolation from other web apps and core web server Web service in INETINFO split out to do this: HTTP.SYS: kernel mode listener and request router WAS: config and process manager W3WP.exe: where web apps are processed Multiple W3WP.exe’s WAS W3WP.exe web app HTTP.SYS kernel W3WP.exe W3WP.exe
34
Making Your.NET Apps More Reliable Application Pools Can create 1 or more application pools Each served by 1 or more W3WP.exe’s. Each W3WP.exe serves only 1 pool. Reqs routed directly to pool by HTTP.sys Isolate apps based on: Site/CustomerFunctionalityReliability
35
Making Your.NET Apps More Reliable.NET Application Domains vs Application Pools Application Domains Lightweight CLR unit of isolation One app domain per IIS application Combine w/W3WP.exe’s to achieve high scalability and isolation ASP.NET manages app domains independently Recycled within a single process Can have private components, session variables, etc. HTTP.SYS W3WP.exe ASP.NET WAS App pool W3WP.exe ASP.NET AppDomain AppDomain AppDomain AppDomain AppDomain AppDomain AppDomain AppDomain Application Pool W3WP.exe ASP.NET App pool
36
Making Your.NET Apps More Reliable Periodic Process Recycling What is it? Periodically restart applications based on: Uptime # of requests Scheduled time Memory consumption On-demand Why use it? Refresh apps to ensure availability Prevent bad apps from taking over the system
37
Making Your.NET Apps More Reliable Dynamic Kernel Caching GET http://www.acme.com/store/sproketcatalog.aspx RequestResponse WithoutCacheWithCacheRequestResponse
38
Summary More “in the box” Developer productivity enhancements Java developers can develop for.NET platform Web Service Enhancements Stress test your ASP.NET applications Protect your intelectual property IIS 6.0
39
ASP.NET Hosting http://www.dot-net.lvhttp://dotnet.asp.lv
40
© 2003 Microsoft Corporation. All rights reserved. Microsoft, Windows, the Windows logo, Visual Studio, the Visual Studio logo, BizTalk, Visual SourceSafe, Visio, IntelliSense, Visual Basic, Visual J++, Visual C++, and Visual C# are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.