InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

.NET 3.5 SP1 Is Breaking Some Applications

Posted by Abel Avram on Oct 09, 2008

Sections
Development
Topics
.NET ,
.NET Framework
Tags
Castle ,
Microsoft

.NET 3.5 SP1 was released in August and, theoretically, it should not break applications based on previous versions of the CLR, respectively 2.0, 3.0, 3.5. But there are reports that some applications are broken including the open source project Castle.

Scott Hanselman, a Senior Program Manager at Microsoft, wrote on issues existing with .NET 3.5 SP1. First, he asked: "Will the .NET Framework 3.5 SP1 break my 2.0 apps?", then he answered "Almost certainly not.". After explaining why 3.5 SP1 should not affect existing .NET applications, based on CLR 2.0 and later, he admits he has "hit an edge case". He advises on doing in-house testing to make sure the SP1 won't break anything:

It IS possible that something could break, so as with all SP’s you should do compatibility testing to make sure you’re not hitting an edge case.

Castle Project founder, Hamilton Verissimo de Oliveira, who has joined Microsoft this year, has complained about SP1 breaking Castle. He explains what is broken and what they did to work around it:

    • The SP broke DynamicProxy 2 when creating a proxy for generic interfaces/methods
    • The code that started to throw an exception is there to deal with a very edge case
    • Breaking DynamicProxy breaks everyone that uses it (Rhino Mocks, Castle Windsor, NHibernate and Moq - those are the main ones I can think of now)
    • I recently confirmed the problem and changed DynamicProxy code to not use those methods “r5323: Disabled the GetOptional/RequiredCustomModifiers calls so all tests (but one) pass”

Hamilton recommends:

If some team on CLR decided to run Castle tests cases with SP1, they would have detected that. Mono does aggregate external tests cases repositories to test their platform implementation. MS could do the same for a handful of OSS projects, where license is not a problem. If that’s not possible due to legal issues, the CLR team can streamline the communication with OSS teams and get early feedback.

Scott Hanselman promises there will be a patch to .NET 3.5 SP1 before SP1 will be rolled out through Windows Update, some time in November. When that happens, all machines currently with .NET 2.0 will be upgraded to 3.5 SP1. In the meantime, those who are having problems with .NET 3.5 SP1 are encouraged to post the bugs on Microsoft's Connect site.

Why to Test Using the Beta by John Saunders Posted
CLR 3.x? by Eugene Tolmachev Posted
  1. Back to top

    Why to Test Using the Beta

    by John Saunders

    It is also the case that if the Castle people had tested their code with the beta of SP1, then we would not be having this conversation. The beta was out there for three months!

  2. Back to top

    CLR 3.x?

    by Eugene Tolmachev

    Correct me if I'm wrong, but CLR in .NET 3.x is still 2.0.
    - Does 3.5 sp1 also patch my .NET 2.0 *framework*?
    - Is there a single version of CLR on a machine?
    - If not, is there a way to specify the CLR version to use?

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.