Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input string was not in a correct format #44

Open
Corpy2014 opened this issue Jun 13, 2014 · 0 comments
Open

Input string was not in a correct format #44

Corpy2014 opened this issue Jun 13, 2014 · 0 comments

Comments

@Corpy2014
Copy link

Hi there,

Just found this library and it seems pretty good so far but when trying to publish a new post the following error occurs:

Input string was not in a correct format.

I work in VB.NET and try to publish a post to a BlogEngine.NET Blog with the following code:

Dim wrapper As New MetaWeblogWrapper("http://www.example.com/metaweblog.axd", "user", "password")

Dim post As New Post()
post.Title = "Title"
post.Body = "Body"

wrapper.NewPost(post, True)

This error occurs on "MetaWeblogWrapper.cs" at line 37:

public virtual int NewPost(Post post, bool publish)
{
var content = Map.From.Post(post);
return Convert.ToInt32(_wrapper.NewPost(this.BlogID, Username, Password, content, publish));
}

Any help on this is highly appreciated.

Thanks a lot,

Corpy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant