GeeksWithBlogs and SubText Bloggers: Input string was not in a correct format

GeeksWithBlogs.net and other SubText Users:

If you are trying to create a new blog post, and you get the following error:

Input string was not in a correct format.    at
System.Text.StringBuilder.FormatError()
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider,
String format, Object[] args)
   at Subtext.Framework.Util.KeyWords.Scan(String source, String oldValue,
String newValue, Boolean isFormat, Boolean onlyFirstMatch)
   at Subtext.Framework.Util.KeyWords.Format(Entry entry)
   at Subtext.Framework.Data.DatabaseObjectProvider.FormatEntry(Entry e,
Boolean UseKeyWords)
   at Subtext.Framework.Data.DatabaseObjectProvider.Create(Entry entry,
Int32[] categoryIds)
   at Subtext.Framework.Entries.Create(Entry entry)
   at Subtext.Framework.XmlRpc.MetaWeblog.PostContent(String username,
String password, Post& post, Boolean publish, PostType postType)

The problem has been fixed.  It was repoted by Joe Pruitt and fixed by Phil Haack not too long ago.  It was happening for Joe (and me) when attempting to submit a post containing curly braces AND having keywords set up in SubText.  No doubt both Joe and me had this problem due to posting powershell and C# code snippets. 

If you can't get the update yet, you can always just remove your keyword definitions from SubText.  Thats what I did.  :P

Print | posted on Tuesday, December 29, 2009 4:42 AM

Feedback

# re: GeeksWithBlogs and SubText Bloggers: Input string was not in a correct format

Left by Jeff Julian at 12/29/2009 6:06 AM
Gravatar I will see what it will take to update the GWB codebase for this fix. I may email you if I need more information.

Your comment:





 
 

Copyright © Lance Robinson

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski