Community Server 2.1 to ASP.NET 2.0 upgrade
Until a few hours ago, BloggingAbout.NET ran on ASP.NET 1.1. For multiple reasons I wanted to upgrade to ASP.NET 2.0, one of them being that most Community Server addons are released ASP.NET 2.0 only. So I’ve created an exact copy of BloggingAbout.NET on my laptop and prepared the upgrade. And although I’ve taken the time to prepare everything I had some problems uploading all the files.
CS 2.1 consists of over 5000 files. So I created an entire backup just before the upgrade and deleted everything but a few folders. I really wanted a clean install as I’ve been ugrading and adding files since .Text or so. Then I tried to upload all files, but after 2500 files, the rest just kept failing. I still have no idea what it was, but I tried again after restarting my ftp client and it worked. I just hope I haven’t missed any file.
Anyway, perhaps I can help people out with their upgrade. You might want to prepare already, because Community Server 3.0 is only going to be available in ASP.NET 2.0. Here are the steps to take:
- Backup your website
- Backup your database
- Upload an app_offline.htm file.
This is a new ASP.NET 2.0 option. When it finds this file, it shows it on every page. I placed a message about BloggingAbout.NET being under maintenance.
- Change the ASP.NET version to 2.0.
Immediatly your site will go offline, because of the file uploaded in the previous step.
- Delete all folders except:
- I also had a directory where weblog owners store their images, a temp folder and a folder where files are being stored for activity reports and such.
- Remember to adjust the web.config connectionstrings to the correct database.
- Upload all the files.
- Rename app_offline.htm to some other name, so next time you’ll be able to use it again.
That’s exactly what I have done, although step 8 took a little longer than expected. Everything worked like a charm from the first start. New features I’ve added are the ReallySimpleDiscoveryHandler and new MetaWeblogHandler by Robert McLaws, although I’ve modified the source so files are uploaded in a different folder. Also the fact that the original was packed together with a few other addons, is something I don’t really like, so I created a completely new assembly. From day one, Dave Burk has requested the configurable imagedump folder, but Robert hasn’t added this yet. Perhaps I’ll do this and release the modified addon myself. So Robert, if you read this, please beat me to it! 🙂