如何在.NET下使用MetaWeBlog API迁移博客
新建了个网站,想把之前所有的博客都迁移过去。
学习进行的很顺利,就在我开始测试另外一个博客vwww.aboutdnn.net时,一个错误出现了:
服务器总是报告"Conversion from string "" to type 'Integer' is not valid",对于这个出错,我很是费解,一样的代码,为什么换了一个博客就开始出问题呢?Rich Strahl 的一篇文章解答了我的问题: MetaWebLog API and Blog Writers
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
CookComputing.XmlRpc.XmlRpcFaultException: Server returned a fault exception: [0] Conversion from string "" to type 'Integer' is not valid.
at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument xdoc, Type returnType)
at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm, Type svcType)
at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest req, WebResponse webResp, Stream respStm, Type returnType)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters)
at XmlRpcProxy16e9c151-0058-43cc-ab6c-b59358b72772.NewPost(String , String , String , Post , Boolean )
at AlexJamesBrown.JoeBlogs.MetaWeblogWrapper.NewPost(Post content, Boolean publish)
at BlogMigrator.Form1.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\NL186000\My Documents\Visual Studio 2008\Projects\BlogMigrator\BlogMigrator\Form1.cs:line 40
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Plurals Light
这里有一个library:
Joe Blogs
在codeplex上也有一个:Joe Blogs
这个library完整的实现了对WordPress 的API,同时也支持MetaWeblog API,所以也可以用来处理MetaWeblog API
这里是的使用说明:http://www.alexjamesbrown.com/geek/development/dotnet/using-joeblogs/
Migrating content from MovableType or TypePad to Drupal with Python
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述