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.
- Download Paul Van Brenk’s dasBlog BlogML importer
- 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.
- Download BlogEngine.NET and set it up either locally on an ISP (importing can work with either)
- 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;
- Log into your BE install click on the Settings tab and scroll all the way to the bottom to view the Import & Export section.
- Click the Import button which launches the Blog Importer tool that looks like this:
- Enter the name of your BlogML XML file, the URL to your BE blog and your credentials
- Click Import
- 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.