随笔分类 - .Net
Visual Studio 2005/2008,WCF
摘要:对于运行多个.NET Framework 版本的ASP.NET来说,有一个铁律就是:You cannot run more than one version of the framework in the same application pool in IIS6.如果你不遵守,那么"Server Application Unavailable" 将会和一直相伴。--Running multipl...
阅读全文
摘要:1 Dictionary m_SessionList= new Dictionary();2 string contact="upzone";3 MSNSession session = null;4 session = m_SessionList[contact];5 session.LastDateTime=DateTime.Now;6 请问这时候m_SessionList里的对应ses...
阅读全文
摘要:When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class. If client code attempts to instantiate yo...
阅读全文
摘要:msdn上查到这个SmtpDeliveryMethod,邮件发送方式 SmtpDeliveryMethodCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1// Summary: 2// Specifies how email message...
阅读全文
摘要:.Net 1.1中发送邮件使用System.Web.Mail.而到.Net 2.0中发送邮件建议使用System.Net.Mail,不推荐使用System.Web.Mail,但是原来的还能用,今天将原来1.1发送程序改写成2.0,但是一直是发送失败,一直被诺顿拦截,很奇怪,而且把诺顿Internet Email Auto Protected关闭就能发送出去.原来1.1从来没有诺顿拦截现象.根据上面...
阅读全文
摘要:在做动态调用时碰到一个问题,The constructor to deserialize an object of type 'MSNException' was not found,其中MSNException 标记为Serializable tag,并且MSNException 从 Exception 继承,而且Exception本身已经实现ISerializable interface ,这...
阅读全文
摘要:(1)公共构造函数 共公的构造函数是最为常见的形式,允许类被使用者实例化。C#实例如下:1class myClass2{3 //Public Constructor4 public myClass(){};5}VB实例如下:Class myClassClass myClass{ public Sub new()sub new() end sub} (2)私有构...
阅读全文
摘要:...
阅读全文
浙公网安备 33010602011771号