小马

现在是零将来是无限

导航

2005年5月18日

NUnit ERROR DOMConfigurator: ConfigureFromXML called with null 'element' parameter

摘要: 原因:没有为dll指定正确的配置文件解决办法:1. 如果是用Visual Studio .NET,在预生成事件命令行中键入: copy /y "$(ProjectDir)App.config" "$(TargetPath).config"copy /y "$(ProjectDir)hibernate.cfg.xml" "hibernate.cfg.xml"2.在NUnit gui 中的proje... 阅读全文

posted @ 2005-05-18 02:58 mahope 阅读(793) 评论(0) 推荐(0) 编辑

2005年5月4日

用 Interpreter 模式设计算24的程序

摘要: 这两天学习设计模式,弄了一个算24的程序。 程序是这样的:任意给出4个1-10的数,加上+ - * / 四个运算符中选择三个进行排列组合。 按照逆波兰表达式 用 Interpreter 模式解析这个字符串序列,并且计算结果,如果等于24就打印出表达式。 其中排列组合采用了微软网站上的代码,其他部分都是原创。 这里提供c#项目源代码供大家参考 上下文类: public... 阅读全文

posted @ 2005-05-04 11:20 mahope 阅读(1826) 评论(4) 推荐(0) 编辑

2005年1月18日

如果需要对DataTable进行大批量Select查询,首先为表创建DataView

摘要: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconviewingdataindatatable.asp TipIf you will be performing a number of calls to the Select method of a DataTable, yo... 阅读全文

posted @ 2005-01-18 11:29 mahope 阅读(1047) 评论(0) 推荐(0) 编辑

2005年1月1日

System.Runtime.Serialization.SerializationException: 无法找到程序集!

摘要: 当Remoting客户端需要订阅Remoting服务的事件时,你可能会收到下面的异常: System.Runtime.Serialization.SerializationException: 无法找到程序集 TestServiceLibrary, Version=1.0.1827.29318, Culture=neutral, PublicKeyToken=null。 Server st... 阅读全文

posted @ 2005-01-01 16:49 mahope 阅读(11812) 评论(6) 推荐(0) 编辑

2004年12月10日

FIX: Socket Initialization Does Not Succeed if Your Computer Has More Than 50 Network Bound Protocols

摘要: SYMPTOMS If you use the Microsoft .NET Framework 1.1, and if your computer has more than 50 network bound protocols, you may receive the following error message: System.Net.Sockets.Socke... 阅读全文

posted @ 2004-12-10 13:04 mahope 阅读(826) 评论(0) 推荐(0) 编辑

2004年12月8日

对于此 appdomain 已禁用了程序集的 HTTP 下载

摘要: 从ASP.NET中使用Assembly.LoadFrom("http://...")时,会发生此异常。 可能安全性设置不允许从站点以外的位置下载程序集,但是尚未找到在什么地方可以修改此设置。 阅读全文

posted @ 2004-12-08 15:07 mahope 阅读(671) 评论(0) 推荐(0) 编辑

2004年11月30日

Expression Evaluator

摘要: In my last c# project, I need provide a special function, which isshowing some menu items whose caption are not constant values. For example, an menu item's caption may be "Today(nov. 30)'s new blog... 阅读全文

posted @ 2004-11-30 14:55 mahope 阅读(2403) 评论(3) 推荐(0) 编辑

2004年11月24日

MarshalByRefObject vs Serializable in Remoting scenario

摘要: What's defference between MarshalByRefObject and Serializable in Remoting scenario.Performance consideration... 阅读全文

posted @ 2004-11-24 21:10 mahope 阅读(963) 评论(1) 推荐(0) 编辑

2004年11月23日

Attribute.GetCustomAttribute Method (MemberInfo, Type, Boolean)不能返回继承类的特性?

摘要: Attribute.GetCustomAttribute Method (MemberInfo, Type, Boolean)不能返回继承类的特性 在MSDN文档里面,对这个方法的说明是:Retrieves a custom attribute of a specified type applied to a specified member of a class or optional... 阅读全文

posted @ 2004-11-23 16:37 mahope 阅读(1026) 评论(0) 推荐(0) 编辑

Usefull Attribute of c#

摘要: Usefull Attribute of c#Recently, I have finished a project of sms.The protocol of pdu is cmpp. There are a lot of handy source codes available for me. But I decided to build it from scratch.In th... 阅读全文

posted @ 2004-11-23 01:06 mahope 阅读(785) 评论(0) 推荐(0) 编辑