tiechui

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  .net C#

摘要:1- could not find xml file where at C:\Windows\Microsoft.NET\Framework\v4.0.30128\Config\machine.configsolution: copy and rename v4.0.30319 as v4.0.30128(old and wrong)solution2: because vs2010 is RC version, so it has V4.0.30128, you can uninstall .net framework 4 and reinstall, but it may occur ag 阅读全文
posted @ 2011-02-15 10:02 tiechui 阅读(330) 评论(0) 推荐(0)

摘要:find:D:\Windows\Microsoft.NET\Frameworkleave:v4.0.30128back:v4.0.30319 (eg, old1-v4.0.30319)it will compile success. 阅读全文
posted @ 2011-02-01 09:57 tiechui 阅读(406) 评论(0) 推荐(0)

摘要:通过.Net FrameWork 2.0下提供的“System.Net.Mail”可以轻松的实现,本文列举了3种途径来发送:1.通过Localhost;2.通过普通SMTP;3.通过SSL的SMTP;下面一个一个来说:1.通过LocalHostpublic void SendMailLocalhost() { System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); msg.To.Add("a@a.com"); msg.To.Add("b@b.com"); /* * msg. 阅读全文
posted @ 2010-12-29 17:09 tiechui 阅读(257) 评论(0) 推荐(0)

摘要:Problem: The "GenerateResource" task failedunexpectedly.System.DllNotFoundException: Unable to load DLL 'FileTracker.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Microsoft.Build.Shared.NativeMethodsShared.InprocTracking.StartTrackingContext 阅读全文
posted @ 2010-12-29 09:23 tiechui 阅读(1454) 评论(0) 推荐(0)

摘要:1.download market software for PC first,2.http://social.zune.net/redirect?type=phoneApp&id=238a48f3-79d5-df11-a844-00237de2db9e 阅读全文
posted @ 2010-12-17 08:59 tiechui 阅读(133) 评论(0) 推荐(0)

摘要:xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"//need to set the header at the very end because you cannot remove items once the header is set pivProfile.Header = GetHeaderTxtFromString("Profile"); static TextBlock GetHeaderTxtFromString( 阅读全文
posted @ 2010-10-22 09:54 tiechui 阅读(486) 评论(0) 推荐(0)

摘要:C#: 一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。 二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点:1、不能实例化; 2、包含未实现的方法声明; 3、派生类必须实现未实现的方法,抽象类是抽象方法,接口则是所有成员(不仅是方法包括其他成员); 另外,接口有如下特性:接口除了可以包含方法之外,还可以包含属性、索引器、事件,而 阅读全文
posted @ 2010-10-21 11:17 tiechui 阅读(377) 评论(0) 推荐(0)

摘要:iis webservice 部署1. 在VS2008中 new->project->web->webservice2. 编译 运行, helloworld。3. 1)在iis中创建虚拟目录 设置project属性->web->Servers->Use Local IIS server Project Url: http://localhost/WebService1 Create virtual directory 2)create dir eg: service copy App_Data, bin,... 阅读全文
posted @ 2010-08-30 14:31 tiechui 阅读(2941) 评论(0) 推荐(0)