惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
B
Blog
博客园 - Franky
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
云风的 BLOG
云风的 BLOG
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
V
V2EX
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队

博客园 - upzone

FTP Handler cannot be hosted in x64 Host instance Next Release of BizTalk Server: BizTalk Server 2010 R2 Passed MS BI Certification: 70-448 Passed new BizTalk Certification: 70-595 FW: BizTalk's furture OLAP Architectures Comparison (ROLAP, MOLAP, HOLAP) 远程桌面访问Matlab的方法 FW: BIZTALK: Cannot perform encryption or decryption because the secret is not available from the master secret server 401 Unauthorized when call WCF in BizTalk,The authentication header received from the server was 'Negotiate,NTLM' - upzone Matlab first Prog. Visual Studio 2008: Install New Project Template SQL Server 兼容模式 FW: HTTP错误500显示具体的出错信息的方法 装了Visual Studio 2010 后 Enterprise Single Sign-On 无法启动. Javascript 实现延迟跳转 - upzone - 博客园 Issue when try to get select count using Linq to SQL 六一,外公走了 FW: MOSS SSP Failed to provision - No running instances of Shared Services Provider provisioning TFS Build Notification: TFS 30063, you are not authorized to access the tfs
XmlSerialize error: There was an error generating the XML...
upzone · 2010-06-25 · via 博客园 - upzone

自定义class 做xmlserialize 时候报错: There was an error generating the XML document.

令人非常恼火的错误,参照:

Troubleshooting Common Problem with XmlSerializer http://msdn.microsoft.com/en-us/library/aa302290.aspx

XmlSerializer 常见问题 http://msdn.microsoft.com/zh-cn/library/aa302290.aspx

解决办法

1. try catch InvalidOperationException, 查看InnerException,

2. 确保类有Serializable 标记

3. 我这边的问题是没有一个无参数的构造函数