atomsite.net

The AtomPub server for .NET

Category Issue with Windows Live Writer 2009 RC

Posted in WLW by JarrettV on 1/8/2009 1:17:54 PM - CST

There is a problem with categories and AtomPub in the latest Release Candidate of Windows Live Writer. Unfortunately, there is no straight forward way to reproduce the "Null category scheme not supported" error.

System.ArgumentException: Null category scheme not supported
   at WindowsLive.Writer.BlogClient.Clients.AtomProtocolVersion.Atom10ProtocolVersion.CreateCategoryElement(XmlDocument ownerDoc, String category, String categoryScheme, String categoryLabel)
   at WindowsLive.Writer.BlogClient.Clients.AtomClient.Populate(BlogPost post, Uri documentUri, XmlElement node, Boolean publish)
   at WindowsLive.Writer.BlogClient.Clients.AtomClient.EditPost(String blogId, BlogPost post, INewCategoryContext newCategoryContext, Boolean publish, String& etag, XmlDocument& remotePost)
   at WindowsLive.Writer.BlogClient.Blog.EditPost(BlogPost post, INewCategoryContext newCategoryContext, Boolean publish)
   at WindowsLive.Writer.PostEditor.UpdateWeblogAsyncOperation.DoWork()
   at WindowsLive.Writer.CoreServices.AsyncOperation.InternalStart()

I contacted Joe Cheng about the problem and he replied with:

Can you try adding scheme="" to your <categories> element? I know that is a little weird.

If you'd rather not do that, you can create a wlwmanifest.xml file with the following contents:

<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns="http://schemas.microsoft.com/wlw/manifest/weblog">
 <options>
  <categoryScheme />
 <options>
</manifest>

I've added this to the wlwmanifest.xml file that is available for each collection.  I believe it has fixed the problem but I won't be sure until I've done more testing.

I just wanted to get this out there in case others are having the same issue.

Comments

Gravatar
Posted by JarrettV on 1/10/2009 2:05:40 PM - CST
Just checked in some code that should resolve the issue. Note, WLW 2009 final will likely include a bugfix for this.

Add Comment

Login using
Google Yahoo flickr AOL
and more
Or provide your details
Please enter your name. Please enter a valid email. Please enter a valid website.
Please supply a comment.
0.0 (0)
on 1/13/2009 3:50:22 PM - CST

Recent Entries

© Copyright 2012 Powered by AtomSite 1.4.0.0