Home > Microsoft .Net Development Tips > Application Testing and Security > Breaking Changes in .NET Framework 2.0
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

APPLICATION TESTING AND SECURITY

Breaking Changes in .NET Framework 2.0


Ed Tittel, Contributor
05.30.2006
Rating: --- (out of 5)


.NET Essentials Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


When it comes to upgrading older VS.NET applications from earlier version of the .NET Framework -- that is, from 1.0 or 1.1 to 2.0 -- developers are always concerned to know what's to worry about as they make the switch. The MSDN Breaking Changes Web page documents changes to the .NET Framework (called Run-Time Breaking Changes), or Visual Studio's design, compile and project upgrade functionality (called Design-Time Breaking Changes), which can cause application and development scenarios to act differently in the 2.0 version from the 1.0 and 1.1 versions.

This doesn't mean the changes will actually break an application (though most of the runtime items will do just that); it simply means they will cause changes in behavior during design review and testing that could potentially impact an application. Lest you grow overly concerned about this, the latest word from Microsoft is that less than 30 such items have been documented to date.

Breaking changes occur for a variety of reason that range from standards compliance, responses to customer feedback and functionality requests, and accuracy or correctness. Here's an example of the kinds of things you'll find documented in the two sets of breaking changes we point to in the preceding paragraph.

  • Standards compliance (run-time): the ISO tag for the Kyrgyz Republic (aka Kyrgyzstan) in System.Globalization was changed from KZ to KG.
  • Customer feedback (run-time): The ASP.NET project model was updated to remove the V1 model for view links, because no known Control vendors used the API, and because it was poorly documented.
  • Accuracy (run-time): Numeric precision for floating point values was increased in certain cases, partly because the CLI specification already indicated this change was possible.
  • Microsoft.Office APIs (design-time): The extensibility library removed its reference to Microsoft.Office.dll and switched to Microsoft.VisualStudio.CommandBars.dll, to remove dependencies on this no-longer needed dll. Any add-ins or macros that call that dll must be updated to use the new dll instead.
  • V1.1 Controls with a non-Boolean AutoSize property throws an exception when used in V2.0 designer (design-time): The .NET framework now uses a Boolean AutoSize property in its Control, so third-party non-Boolean AutoSize property causes an invalid cast exception. The name or type of the third-party property must be changed to avoid this exception.
  • XslTransform throw InvalidOperationException in V2.0, XsltException in V1.1 (design-time): If the user calls Execute on a transform class without loading a stylesheet, this results in an InvalidOperation Exception in V2.0, but an XsltException was thrown in V1.1. This is a genuine design error that must be corrected to avoid either exception.

    Browsing around the Design-Time and Run-Time Breaking Changes pages will therefore help developers figure out what's different about the environment that they must rework or repair when migrating V1.0 or V1.1 applications to V2.0 of the .NET Framework. Definitely worth a visit to anyone facing that situation!

    Ed Tittel is a writer and trainer whose interests include XML and development topics, along with IT Certification and information security. E-mail etittel@techtarget.com with comments, questions, or suggested topics or tools to review. Cool tools rule!

    Rate this Tip
    To rate tips, you must be a member of SearchWinDevelopment.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    .NET Framework security best practices
    New features in Windows 7 bring new UI considerations for developers
    Podcast: Windows CardSpace authors speak
    Book excerpt: Java EE and .NET security interoperability
    Book excerpt: Advanced Windows Debugging
    Book excerpt: Pragmatic unit testing in C# with NUnit
    Security interoperability with .NET/WSE and WebLogic Workshop 8.1
    Windows Developments: Product news, December 2007
    How to avoid regression bugs while adding new features
    VB code: New additions, November 2007
    VB code: Application security downloads

    Application Testing and Security
    Test-driven development in .NET yields complete unit test coverage
    How to write installers in Vista that work correctly under UAC
    How to elevate programs' privileges correctly using Vista's UAC
    Internet Explorer 8 beta's development tools add source visualizations
    Microsoft previews new features in Visual Studio 2010
    Advanced Windows Debugging Book Chapter and Podcast
    Book excerpt: Advanced Windows Debugging
    Book excerpt: Pragmatic unit testing in C# with NUnit
    Security interoperability with .NET/WSE and WebLogic Workshop 8.1
    How to avoid regression bugs while adding new features

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    common test platform  (SearchWinDevelopment.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts