Steve Trefethen
Contact me
About Me View my LinkedIn profile

Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
Need consulting?
Need Consulting?

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Moving from dasBlog to BlogEngine.NET

January 15 2010 12:11PM
In addition to moving this blog to BlogEngine.NET (BE) I've recently moved my personal home blog from dasBlog to BE and I’ve had to lookup the steps to export/import blog data more than once so I decided to capture them once and for all here. The process shouldn’t really take more then about 30 minutes to complete.
  1. Download Paul Van Brenk’s dasBlog BlogML importer
  2. Run the importer to convert your dasBlog content to BlogML. I ran into a few issues trying to import 1500+ comments from my blog so it required a bit of debugging/tweaking.
  3. Download BlogEngine.NET and set it up either locally on an ISP (importing can work with either)
  4. To avoid a Username/Password error upon importing into BlogEngine.NET add the line indicated below to BlogEngine.NET\api\BlogImporter.asmx (solution originally sourced from this work item on CodePlex)
    [SoapHeader("AuthenticationHeader")]
    [WebMethod]
    public string AddPost(ImportPost import, string previousUrl, bool removeDuplicate) {
        if (!IsAuthenticated())
            throw new InvalidOperationException("Wrong credentials");
    
        ...snip...
    
        Post post = new Post();
        post.Title = import.Title;
        post.Author = import.Author;
        post.DateCreated = import.PostDate;
        post.DateModified = import.PostDate; // or "DateTime.Now"  <- LINE ADDED
        post.Content = import.Content;
  5. Log into your BE install click on the Settings tab and scroll all the way to the bottom to view the Import & Export section.
  6. Click the Import button which launches the Blog Importer tool that looks like this:

     image
  7. Enter the name of your BlogML XML file, the URL to your BE blog and your credentials
  8. Click Import
  9. Hit your BE blog and enjoy your imported data!

Btw, here is a post to a few other items I had to address to really get my blog moved over.

Tags: BlogEngine.NET | dasBlog

Comments

2/2/2010 5:23:34 PM #

sikat ang pinoy

I came across to your blog just to announce that blogengine 1.6 has been release this February 2010. It has lots of upgrade and features added. Upgrade instruction is available on dotnetblogengine.net/.../...ET-16-is-Released.aspx

sikat ang pinoy United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Spam filtering provided by: Spam Counter
341 comments approved, 1535 spam caught since October 28, 2009
Powered by Commentor