How to Upgrade Blog Engine .Net

by Web-Host-Site.com 29. May 2010 23:26

This is a Basic Upgrade Guide for the Blog Engine.Net blogging system on the DotNet Asp.Net 2.0 platform. This guide covers the most basic upgrade options in detail, notes on upgrading with Extra Features such as if you keep your Data in a Database or if you have custom Widgets or Themes are covered at the end. This tutorial provides a starting point for the upgrade even if you have more advanced set ups, it's good to get your basic data saved and upgraded before moving on to upgrading the other features.

How Upgrading Blog Engine .Net Works

To upgrade the Blog Engine .Net blog platform you just copy over the files from the new Blog Engine .Net Release to your Public Facing Internet Web Folder that serves your blog web site. But to keep all your data, blog posts, pages, users, and so forth you have to copy over that information from the App_Data folder of the older site if you use the default setting of saving this data in XML files. Notes about upgrading if you use a database instead of xml files is given at the end of this tutorial.

So the first step is to copy over your old site to your local machine, this way you have a back up of everything and can do the upgrade locally making sure everything works right before letting it go live on the Web.

Set up a local folder to store your old Blog Engine .Net files in. For example, create a folder named Web Sites in your My Documents folder then create a folder with the name of your blog web site in that folder. Inside that folder create a folder with the release number of Blog Engine .Net that your old site was using and another folder with the release number of the new updated Blog Engine .Net you are upgrading to.

Now connect to your Web Site folder, where you manage your web files through, either through FTP or a Control Panel or how ever you manage your site files. Then copy over your Blog Engine .Net files into the folder named with the older release you are upgrading from.

In the folder named after the new release version, unzip the new Blog Engine .Net files into that folder. Make sure you put the Web release files here not the Full Source solution files.

Transfer over your old Data to the new Blog Engine .Net Site

The important stuff to copy over to the new Blog Engine .Net site is your data, which means your old posts, pages, users, and so forth. To do this you need to copy over the files that exist in the App_Data folder of the old site. The tricky part is knowing exactly what each file stands for, how it is structured, and how it fits in the scheme of the new Blog Engine .Net release you are upgrading to. What you have to do is first know what the files and folders in the App_Data folder stand for then open them up for both the old and new Blog Engine .Net sites and compare them.

The pages and posts folders are safe to delete in the new site and copy over from the old site as is. For the rest of the xml files it's important that you open each of them from each site, the old and new, and do a side by side comparison. Copy over the data from the older version of the xml file for the settings you want to keep in the new upgraded set up. Also make note of any xml elements that are new in the new version and missing from the old version, these are the new upgraded settings you are upgrading to. These files are the settings you manage from your Admin Manage Settings panel of your Blog Engine .Net site.

Here's an explanation of what the files mean so you have an idea of what you are setting up when you copy over data between these files.

  • blogroll.xml - These are the sites you have listed in your Blog Roll via the Admin Settings Panel.
  • categories.xml - These are your blog's categories you set up via the Admin Settings Panel.
  • newsletter, pingservices, roles are all xml files that govern those items that you set up via your Admin Settings Panel.
  • users.xml - This is where your users and corresponding hashed passwords are stored, so it's important to keep this data consistent with your old site so you can log in with your old password and user name.
  • settings.xml - This is the biggest file to check each element on to make sure you carry over your old settings from your blog to the new one, but making sure you don't erase or mess up the new settings added with the new release that are missing from your older blog site. So check the differences between the old and new blog sites here and make sure you see each element and the settings for each, knowing what web site setting they govern. Copy over the ones you want to keep and note the new ones in the newer version.

Leave the stopwords.txt file the same in the newer site unless you added other words from the old site you want to keep, in which case you can copy those words over. These are stop words that won't be counted when people type them in on your blog's Search feature.

Putting it up on your Live Web Site

Now go back to your Web Site folder where you manage your web site files for your blog and delete all the the Blog Engine .Net files and folders, then upload the files and folders from your new Blog Engine .Net folder on your local computer that you just edited and transfered your old pages, posts, and settings to.

After that load your blog web site in a browser, check that everything went OK, check that all your old pages and posts made it over to the new Blog Engine .Net version, then log in with your old Admin account username and password to make sure that's done right. Check out the new Settings Panel and make any adjustments to your site that you need after checking that your old settings also transfered over correctly.

A must for the new Blog Engine .Net set up starting with version 1.6 is to make sure you set up your Comment Spam settings. Comment Spam was a big problem with Blog Engine .Net before but these new features starting with version 1.6 cut that down to almost nothing. To learn how to set up Comment Spam filters check out the Tutorial to Set up Comment Spam Filtering in Blog Engine .Net

Notes on extra Blog Engine .Net Upgrade Items

If you are using a database to store your Blog Engine .Net Data there is a setup folder in the main Blog Engine .Net Web folder, in there you'll see a general Read Me file and within folders for different database types a specific Read Me file along with scripts for each type of database supported by Blog Engine .Net. Read those Read Me files and follow the directions using the provided scripts to update your Blog Engine .Net blog data instead of what was detailed above in regard to the xml files in the App_Data folder. Make sure you have a back up of your old database files before you upgrade it, should you need to restore back the old site due to troubleshooting issues.

Any Widgets you've added to your old blog you'll have to copy over into the widgets folder of the new Blog Engine version you are upgrading to.

If you've created a new FavIcon for your site and copied over the pic.ico file and any other image files you've added to the pic folder of your old site, copy them over to the new Blog Engine .Net site as well.

If you have any custom themes you have to check out any CSS modifications in the new version of Blog Engine .Net this is listed in the change log of the New release on the Blog Engine .Net main site. Make sure your custom themes conform to the new CSS changes noted in the Blog Engine .Net Release Notes after you copy them over to your themes folder.

If you have installed any custom Controls or Extensions make sure they are compatible with the new version of Blog Engine .Net and then copy them over to the new site before you upload it.

Having a Local IIS on your Development Computer to Test with

It's a good idea to have a local copy of IIS server on your local computer to run your new Blog Engine .Net sites off of and see if there any issues. Test your set up in there and make any adjustments before uploading it all to your live Internet site.

Lastly, if you have any trouble and you need to go back to your old set up, just delete your new upgraded site that doesn't work and upload the old site you have backed up on your local computer. That takes care of any worse care senarios. Run the upgraded site on your local IIS and work out any troubleshooting steps there before uploading that to your live site. If it works fine in your local IIS but not on your live web server, then you should note the differences between those two set ups and then narrow it down from that list to the problem. You can use the Community Forum for Blog Engine .Net to ask questions and also check out the Troubleshooting documentation. After that, feel free to post any comments or questions here in these comments.

I hope you enjoyed this tutorial about Upgrading Blog Engine .Net blogging system for the Asp.Net web platform, and that it helps you set up a nice online blogging environment. Please help other people who may need this information by posting this link to this tutorial where you can on the Web. Link to this tutorial - <a href="http://www.web-host-site.com/post/upgrade-blog-engine-dotnet.aspx" title="Learn to Upgrade Blog Engine .Net in Detail">Comprehensive look at Upgrading the Blog Engine .Net blogging system for ASP.Net</a>

Tags: , ,

BlogEngine.NET

Comments

6/25/2010 9:10:58 AM #

Puppets in my idea were the best way to teach children, as least when I was growing up!

Garth Straughan United States | Reply

7/4/2010 5:04:11 PM #

I used to have a web site about this topic, but it attracted so many spam comments I had to shut it. You appear to have a better spam filter! Kudos!

Todd Mannick United States | Reply

7/5/2010 11:35:13 AM #

Hello webmaster can I use some of the information from this post if I provide a link back to your site?

Lorette Kleckley United States | Reply

7/5/2010 5:53:33 PM #

Interesting article, thanks. Can you explain the first section in additional detail please?

Chang Pasanen United States | Reply

7/6/2010 1:20:10 AM #

I came across this topic on another web site and didn't see the point, but your post makes it clearer to me now. Cheers!

Willian Lindbeck United States | Reply

7/6/2010 5:48:51 AM #

Hai admin How are You ? I like your post and i want to stumble it for my friend but i cant see your social bookmark widget in this blog. Please help me friend Thanks

Gloria Wittmann United States | Reply

7/6/2010 7:51:09 AM #

Can I quote you in my report for school?

Reynaldo Devone United States | Reply

7/7/2010 5:04:33 AM #

Can I quote you in my report for school?

Lanny Hajdas United States | Reply

7/7/2010 12:26:53 PM #

This is cool! How did you learn this stuff when you were a newcomer to it?

Colby Zolman United States | Reply

7/18/2010 7:57:27 PM #

This is very educational content and written well for a change. It's nice to see some people still understand how to produce a quality post!

vocal warm up exercises United States | Reply

7/28/2010 6:40:03 PM #

Blog Engine .Net Blog Engine .Net Blog Engine .Net I fully accept as true with the above remark, the web is with a doubt growing into the most important medium of communication across the globe and its due to websites similar to this that ideas are spreading so quickly

Kasey Everhardt Maldives | Reply

8/2/2010 10:13:27 PM #

This is very inspirational stuff and written well for a change. Nice to see some people still understand how to produce a quality post!

sarging openers United States | Reply

8/6/2010 5:34:47 PM #

i hope to read more

sssssonya Puerto Rico | Reply

8/13/2010 9:44:43 AM #

You´ve got a secret admirer would you please email me with subject

Calcutta Yellow Page United States | Reply

8/13/2010 9:12:39 PM #

Hello,

I wanted to let you know that I have been watching for a a couple of months on and off and I would like to sign up for the daily feed. I am not to computer smart so I'll give it a try but I might need some help. This is a good find and I would hate to lose contact, and maybe never find it again.

Anyway, thanks again and I look forward to reading again in the future!

tucson flat fee mls United States | Reply

8/19/2010 11:41:39 PM #

Your server keeps crashing. I've been to this blog three occasions nowadays and generally instances the page does not load. What webhosting business do you use ?

accountants in Hollywood United States | Reply

8/20/2010 9:37:31 PM #

I was looking for crucial information on this subject. The information was important as I am about to launch my own portal. Thanks for providing a missing link in my business.

sacramento mls United States | Reply

8/24/2010 5:34:43 PM #

Totally agree. Found this great site whilst trying to find a good one to comment on. Well done!

Gary Cole United States | Reply

8/27/2010 9:36:34 PM #

your blog is pretty iterestig

Myrtle Beach Foreclosures Saudi Arabia | Reply

8/29/2010 7:59:47 PM #

I was wonder if I could cite you as a source on one of my LiveJournal posts? Of course I will give you a link back.

Elias Porres United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading