RSS Feed

Migrating from WordPress to Blog Engine .Net

Thank God that there is such a tool like BlogML. Without it migrating from WordPress to BlogEngine Net would be a difficult and time-consuming task.

If you are hosting your WordPress Blog by yourself. There are tools to import database. AghaUsmanAhmed

If your Blog was on a official WordPress site , you don’t have access to database , follow those steps.

Simple Steps:


1. Export your WordPress to XML.

Just go to WordPress Tools and there is an option to export all to XML.

2. Convert XML to BlogML format

There is a tool made by Goran. .Net Lorem Ipsum

Use it to Convert XML.

If there is a runtime error or somekind of an Exception. Download VS 2008 solution and change

          static DateTime ParseWPDate(string value)
        {
             return DateTime.ParseExact(value, "ddd, dd MMM yyyy HH:mm:ss zz00", ci.DateTimeFormat);
        }

To

			static DateTime ParseWPDate(string value)
            try
            {
                return DateTime.ParseExact(value, "ddd, dd MMM yyyy HH:mm:ss zz00", ci.DateTimeFormat);
            }
            catch
            {
                return DateTime.Now;
            }

There can also be a problem with xml and some “atom” tag just delete it.

3. Import BlogML xml in BlogEngine .Net Settings.

Open BlogEngine .Net site in IE (Its Important beacuase import toll wont work on other browsers). Run Import Toll select converted xml and Thats All 😛

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s