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”Screen.GetWorkingArea() - Use instead, Screen.PrimaryScreen.WorkingArea (For some reason, GetWorkingArea takes 25 ms to complete)Application.DoEvents() - The call of the devil.Control.RecreateHandle() - There’s no reason why you should ever need to use this.Application.EnableVisualStyles() - Use a manifest. .NET 1.1 just doesn’t implement this function right.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.

Read more

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

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven't any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don't stop there - read the Story of Your Life novella it was based on

By Jeff Atwood · · Comments

I Fight For The Users

If you haven't been able to keep up with my blistering pace of one blog post per year, I don't blame you. There's a lot going on right now. It's a busy time. But let's pause and take a moment

By Jeff Atwood · · Comments

The 2030 Self-Driving Car Bet

It's my honor to announce that John Carmack and I have initiated a friendly bet of $10,000* to the 501(c)(3) charity of the winner’s choice: By January 1st, 2030, completely autonomous self-driving cars meeting SAE J3016 level 5 will be commercially available for passenger

By Jeff Atwood · · Comments