错误提示: “System.Reflection.AmbiguousMatchException”类型的异常在 mscorlib.dll 中发生,但未在用户代码中进行处理. 发现不明确的匹配. 问题原由: 1)因为自己写DTO类继承了EntityDto<long>,且含有以下Id属性 . public new long Id { get; set; } 2)在转化时有两个Id,JSON.EncodeToEntity不知道该如何匹配. 处理结果: 自己写的DTO类不需要继承EntityDto&l
转自:http://www.cnblogs.com/ego/p/3321122.html 错误: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 调试或者在安装了VS2012的电脑上运行没事,但在干净的环境下,就报这个错误. 解决: 查了一下As
错误: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 调试或者在安装了VS2012的电脑上运行没事,但在干净的环境下,就报这个错误. 解决: 查了一下AssemblySignatureKeyAttribute,是.net framework4.
我们需要获取类,属性,方法的描述.这个跟获取枚举的描述一样,需要我们通过反射来做.这还需要我们的利用System.ComponentModel:Description 的属性来完成. 新建一个类:使用的是: System.ComponentModel:Description [Description("类的描述")] public class TestDes { [Description("id值")] public int Id { get; set; } [
在用mvc 的AuthorizeAttribute做身份验证,重写HandleUnauthorizedRequest方法,在Application_Error方法里出现异常System.Web.HttpException (0x80004005): Server cannot set status after HTTP headers have been sent. 反复尝试发现是在 protected override void HandleUnauthorizedRequest(Author
CPU/ABI显示No system images installed for this target的解决方案 手动下载image http://www.androiddevtools.cn/ SDK System images 这是在创建模拟器时需要的system image,也就是在创建模拟器时 CPU/ABI项需要选择的,下载并解压后,将解压出的整个文件夹复制或者移动到 your sdk 路径/system-images文件夹下即可, 如果没有 system-images目录就先创建此文