WEB320 Migrating ASP.NET 1.x Applications to ASP.NET 2.0 Stefan Schackow Program Manager Web Platform and Tools Team Microsoft Corporation.

Slides:



Advertisements
Similar presentations
FIRST LOOK AT “ORCAS” Scott Guthrie General Manager.NET Developer Platform.
Advertisements

ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
64bit Development Overview March 28 Microsoft. Objectives Learn about the current 64-bit platforms from a hardware, software and tools perspective Review.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
IIS 7: The Next Generation Web Application Server Platform Michael Volodarsky Program Manager Web Platform and Tools Team Microsoft Corporation.
Best Practices for UI with ASP.NET 2.0 Jeff King Program Manager Web Platform and Tools Microsoft Corporation.
 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.
Building Scalable and Reliable Web Applications Vineet Gupta Technology Evangelist Microsoft Corporation
Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Punit Shah Technical Lead | Microsoft
Workflows in SharePoint Brian Russo RJB Technical Consulting July 2009.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Preview of ASP.NET 2.0 in Delphi Course #3182 Jim Tierney Principal Engineer - Borland.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Deployment of web Site. Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft
DEV290 Building Office Solutions with Visual Studio Eric Carter Lead Developer Developer Platform & Evangelism Microsoft Corporation.
Ken Casada Developer Evangelist Microsoft Switzerland WebMatrix: Your Web Made.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Migrating from the.NET Framework Version 1.1 to 2.0 Ken Casada Developer Evangelist Developer & Platform Evangelism Microsoft Switzerland.
1 Thomas Lippert Senior Product Manager - Mobile What’s new in SMC 5.0.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
10 – 12 APRIL 2005 Riyadh, Saudi Arabia. Building multi-lingual ASP.Net application that handle western languages and Arabic with a single code base.
Upgrading Projects to Visual Studio 2010 Upgrading Projects to SharePoint 2010 Integrating with SharePoint 2010.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and.
Section 11: Implementing Software Restriction Policies and AppLocker What Is a Software Restriction Policy? Creating a Software Restriction Policy Using.
Microsoft Dynamics NAV 2009 and Architecture Overview Name Title Microsoft Corporation.
Partners’ Webinar 01/31/2013 Karol Jarkovsky Solution Architect Upgrading Kentico.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
WCL303 Business Desktop Deployment (BDD) 2007: Part 2, Deploying the 2007 Office system Michael Niehaus Systems Design Engineer Microsoft
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
DEV395 No Touch Deployment for Windows Forms Jamie Cool Program Manager.NET Client Microsoft Corporation.
Migrating from ASP.NET 1.1 to ASP.NET 2.0 Scott Guthrie Web Platform and Tools Team Microsoft Corporation
WEB322 ASP.NET Internals: Under the Covers – Exploring Internals, Page Lifecycle and the Compilation Model Simon Calvert Program Manager Web Platform and.
Migrating ASP to ASP.NET Matt Gibbs ASP.NET Development Manager.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Migrating from ASP.NET 1.1 to ASP.NET 2.0 Scott Guthrie Web Platform and Tools Team Microsoft Corporation
Internet Explorer 7 Updated Advice for the NHS 04 February 2008 Version 1.3.
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
Building Complete Web Application Using ASP.NET 3.5 & Visual Studio 2008 Omar Khan Group Program Manager Visual Studio.
Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
Migrating from the .NET Framework Version 1.1 to 2.0
Introduction to ASP.NET 2.0
The Modern ASP.NET Tech Stack!
Microsoft Build /13/2018 2:24 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Reaching more customers with accessible Metro style apps using HTML5
Building Modern Web Apps with ASP.NET MVC 6
ASP.NET 4 Core Runtime for Web Developers
From DTS to SSIS, Redesign or Upgrade
1/14/2019 3:57 AM © 2004 Microsoft Corporation. All rights reserved.
ASP.NET 2.0 Overview Created By: Ajay Bahoriya.
Introduction to ASP.NET Parts 1 & 2
Windows Forms in Visual Studio 2005: An Overview
Mark Quirk Head of Technology Developer & Platform Group
Visual Studio 2005 IDE Features
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

WEB320 Migrating ASP.NET 1.x Applications to ASP.NET 2.0 Stefan Schackow Program Manager Web Platform and Tools Team Microsoft Corporation

Agenda Migrating from Microsoft ASP.NET 1.X to ASP.NET 2.0 Microsoft Visual Studio 2003 to Visual Studio 2005 (RTM)

Migrating from ASP.NET 1.X to ASP.NET 2.0

ASP.NET 1.X to ASP.NET 2.0 Goal: Easy to upgrade from V1.1 to V2.0 We have minimized breaking changes New migration functionality added post- Beta2 No OS upgrade required Runs on Microsoft Windows 2000 & IIS 5.0 Runs on Microsoft Windows XP & IIS 5.1 Runs on Microsoft Windows Server 2003 & IIS 6.0

ASP.NET 1.X to ASP.NET 2.0 Beta 2 ASP.NET 1.1 & 2.0 can be installed on same machine Installing V2.0 on V1.1 server Always preserves existing V1.1 mappings New MMC tab to easily switch versions Existing ASP.NET 1.1 applications can run on top of ASP.NET 2.0

Issue Tracker – V1.1 Issue Tracker – V1.1 version running on top of ASP.NET 2.0 post-Beta 2

ASP.NET 1.X to ASP.NET 2.0 Beta 2 Forms Authentication Works across both ASP.NET versions ASP.NET 2.0 uses AES encryption by default Tweak to change this

Sharing Forms Authentication Tickets

ASP.NET 1.X to ASP.NET 2.0 New ASP.NET reserved directory names (App_) New naming convention for protecting directories Avoid naming directories with this prefix ASP.NET Reserved directories /Bin – Reserved for assemblies. Same as 1.0 & 1.1 /App_Code – Reserved for code /App_Data – Reserved for data (*.mdf,.xml, etc.) /App_Themes – Reserved for theme files (.skin) /App_WebReferences – Reserved for.wsdl files /App_LocalResources – Reserved for local page resources /App_GlobalResources – global resources

ASP.NET 1.X to ASP.NET 2.0 XHTML compliance XHTML compliant markup is now emitted by default Good for standards compliance, but can break some UI Defaults to mode=“Transitional” Can set mode=“Legacy” or “Strict” Recommend updating pages to be XHTML compliant long-term

ASP.NET 1.X to ASP.NET 2.0 Other XHTML issues: New pages include a DOCTYPE directive indicating XHTML 1.0 Transitional compliance Can cause rendering problems Update your HTML to be XHTML compliant

ASP.NET 1.X to ASP.NET 2.0 Well known client-side script files are now encapsulated as resources.js files are now referenced: WebResource.axd?a=s&r=WebUIValidation.js Hand-editing WebUIValidation.js file will no longer work Use expanded client-side scripting support instead

ASP.NET 1.X to ASP.NET 2.0 Potential for naming collisions 2,000+ new classes in V2.0 Common name collisions: Membership, Roles, Theme Does not affect compiled binaries CLR automatically picks the correct type Collisions will affect you only if you re-compile

ASP.NET 1.X to ASP.NET 2.0 Identify collision candidates today Can use fully qualified class names (e.g., MyProject.Membership instead of Membership) Or use an alternative class name

Visual Studio 2003 to Visual Studio 2005 (RTM)

Visual Studio Conversion Visual Studio 2005 makes significant changes to web projects Provides much more flexibility for web scenarios Key Benefits No more project file required Web projects no longer compiled into single DLL Can update pages/code while using the debugger No need to re-compile when making changes Significantly cleaner code-behind model Web projects can be written in multiple languages

Visual Studio Conversion Visual Studio 2005 converts existing Visual Studio 2003 projects on open One way conversion (cannot open in Visual Studio 2003 afterwards) Always enable backup option as part of upgrade wizard All conversion changes are logged

Visual Studio Conversion When running under source control: Move project to new location on disk Open project and run the conversion wizard Check back into source control

Issue Tracker – File Structure after Conversion

Visual Studio 2005 Conversion New Code-Behind Model Visual Studio no longer generates/modifies code in your code- behind Control definitions use new partial class feature of V2 compilers Still enables definition of custom base pages + control classes

Visual Studio 2005 Conversion Syntax differences: ASP.NET 1.1 page definition ASP.NET 1.1 code-behind class definition public class WebForm1 : System.Web.UI.Page ASP.NET 2.0 page definition ASP.NET 2.0 code-behind class definition public partial class WebForm1 : System.Web.UI.Page

Issue Tracker – After Running the Conversion Wizard

Visual Studio 2005 Conversion New dynamic compilation model: Monolithic code-behind assembly is no longer used Pages are compiled on-demand into separate assemblies Lead to some problems in Beta 2 and earlier Based on customer feedback – more “smarts” built into conversion wizard Smoother migration for RTM!

Visual Studio 2005 Conversion Post-Beta 2 changes to conversion wizard Moves non-page type definitions out of code-behind and into App_Code Cross-file class references continue to work MyControl ctl = (MyControl) Page.LoadControl(“ctl.ascx”); Calls to Type.GetType are adjusted

Cross File Class References

Visual Studio 2005 Conversion ASP.NET 2.0 introduce pre-compilation Compiles source code into assemblies Deploy only pages and assemblies No source ends up on the server Similar function to compilation from 1.1 Works with new dynamic compilation model

Visual Studio 2005 Conversion Can pre-compile with: aspnet_compiler.exe command line tool “Publish Website” menu option within Visual Studio 2005 Two choices when pre-compiling: All.aspx markup is removed All.aspx markup preserved

Application Pre-Compilation

Session Summary ASP.NET V1.1 and V2.0 run side-by- side on same server No need to migrate apps in order to start using V2.0 New conversion wizard in RTM makes migration even easier Things to-do today: Start making HTML markup XHTML compliant Avoid class naming conflicts with new V2.0 features now where possible

Compatibility DevLabs! Also in Redmond, WA June th July 25 th -28 th No Cost to Attend (you cover your T&E) Drop by Web Cabana afterwards for more info

Your Feedback is Important! Please Fill Out a Survey for This Session on CommNet

© 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.