随笔分类 -  .Net

C++/CLI程序启动时_CrtIsValidHeapPointer(pUserData)错误
摘要:奇怪的错误,坑死个人啊!!当C++/CLI程序引用了native lib顺利编译之后,程序启动有可能出现以下错误(_CrtIsValidHeapPointer(pUserData)):这是ms的一个已知bug,原因:The reason why you get this error is that ... 阅读全文
posted @ 2011-01-12 09:55 honker 阅读(315) 评论(0) 推荐(0)
异常CryptographicException: "Padding is invalid and cannot be removed."的原因
摘要:cryptography类使用不正确.程序在Web Farm上运行,需要在web.config中加入machineKey配置. 参考文章: Generate Machine Key Elements for Web Farm, by Dr. Peter Bromberg at EggHeadCafe... 阅读全文
posted @ 2009-08-20 13:31 honker 阅读(1262) 评论(0) 推荐(0)