Side by side issues

This is something of a dying art, since Microsoft is doing their level best to pretend that .NET 1.0 doesn’t exist any more – but here are a few key utilities you’ll need when running .NET 1.0 and 1.1 side by side.

Each website on an IIS server must be bound to a specific .NET runtime; this GUI utility lets you quickly bind a website to the .NET version of your choices. Bear in mind that as a developer you’re very likely to be running the crippleware version of IIS which only allows a single website, and at most 10 connections (40 with registry hack) to that website. But on Server 2000 or Server 2k3, you can have as many websites as you like.

The language changes between .NET 1.0 and 1.1 are minimal, and in most cases you can actually load a VS.NET 2003 project in VS.NET 2002 without any problems, and vice versa. This solution conversion utility allows you to convert a VS.NET solution back and forth between 2002 and 2003 formats at will. You may want to check out the author’s blog as well; not many posts, but some are rather interesting:

.NET - Blacklisted APIs - “The functions you were never meant to call”

  1. Screen.GetWorkingArea() - Use instead, Screen.PrimaryScreen.WorkingArea (For some reason, GetWorkingArea takes 25 ms to complete).
  2. Application.DoEvents() - The call of the devil.
  3. Control.RecreateHandle() - There’s no reason why you should ever need to use this.
  4. Application.EnableVisualStyles() - Use a manifest. .NET 1.1 just doesn’t implement this function right.
  5. NativeWindow.ReleaseHandle() - Contains some nasty bugs.

I had no idea high school seniors were this smart. :)

Also, this won’t affect many of you, but any .NET assemblies instantiated via an <OBJECT> tag in HTML will always always bind to the latest version of the .NET runtime on the machine. There is no concept of side by side for assemblies loaded this way. Shocking, but true. I would strongly advise against building object tag “deployed” .NET apps for anything non-trivial.

Jeff Atwood

Written by Jeff Atwood

Indoor enthusiast. Co-founder of Stack Overflow and Discourse. Disclaimer: I have no idea what I'm talking about. Let's be kind to each other. Find me https://infosec.exchange/@codinghorror

⏲️ Busy signing you up.

❗ Something's gone wrong. Please try again.

✅ Success! Check your inbox (and your spam folder, just in case).

Related posts

The Ultimate Dogfooding Story

In software circles, dogfooding refers to the practice of using your own products. It was apparently popularized by Microsoft: The idea originated in television commercials for Alpo brand dog food; actor Lorne Greene would tout the benefits of the dog food, and then would say it’s so good that

By Jeff Atwood ·
Comments

Bill Gates and Code Complete

By now I’m sure you’ve at least heard of, if not already seen, the new Windows Vista advertisements featuring Bill Gates and Jerry Seinfeld. They haven’t been well received, to put it mildly, but the latest commercial is actually not bad in its longer 4 minute version:

By Jeff Atwood ·
Comments
See You at MIX08!

See You at MIX08!

Well, you won’t technically see me at MIX08 this year. But you will see some very cool top-secret stuff Vertigo created in the keynote. MIX is by far my favorite Microsoft conference after attending the ’06 and ’07 iterations. And not just because this year they have a Rock

By Jeff Atwood ·
Comments
Giving Up on Microsoft

Giving Up on Microsoft

Although I am generally platform agnostic, I make no secret of the fact that I am primarily a Microsoft developer. In a way, I grew up with Microsoft – as a teenager, I cut my programming teeth on the early microcomputer implementations of Microsoft BASIC. And I spent much of my

By Jeff Atwood ·
Comments

Recent Posts

map of the United States via rgmii.org showing all 3,143 counties by rural (gold) / metro (grey) and population

Launching The Rural Guaranteed Minimum Income Initiative

It's been a year since I invited Americans to join us in a pledge to Share the American Dream: 1. Support organizations you feel are effectively helping those most in need across America right now. 2. Within the next five years, also contribute public dedications of time or

By Jeff Atwood ·
Comments
Let's Talk About The American Dream

Let's Talk About The American Dream

A few months ago I wrote about what it means to stay gold — to hold on to the best parts of ourselves, our communities, and the American Dream itself. But staying gold isn’t passive. It takes work. It takes action. It takes hard conversations that ask us to confront

By Jeff Atwood ·
Comments
Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
I’m feeling unlucky... 🎲   See All Posts