Isabella
---- I fell upon the thorn of life, I bleed.
posts - 18,  comments - 14,  trackbacks - 0
摘要: 当我们的服务依赖其他的服务才能启动时,我们需要给它添加依存关系。在你的serviceInstaller上点右键,选择属性, 设置ServicesDependedOn.当然你也可以在ProjectInstaller的InitializeComponent方法里添加代码,例子如下:this.serviceInstaller1.ServicesDependedOn = new string[] { "Eventlog", "WinMgmt","MMQ","Windows Management Instrumentation&quo阅读全文
posted @ 2012-01-12 14:08 李昀璟 阅读(3) 评论(0) 编辑
摘要: To check for a network connection in .NET 2.0 use this:System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()To monitor a change in IP address or a change in network availability, use the events from the NetworkChange class:System.Net.NetworkInformation.NetworkChange.NetworkAvailabil阅读全文
posted @ 2012-01-03 10:20 李昀璟 阅读(7) 评论(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;namespacetestWinForm{publicpartialclassForm2:Form{publicForm2(){InitializeComponent();SetClassLo阅读全文
posted @ 2011-12-29 10:47 李昀璟 阅读(25) 评论(0) 编辑
摘要: 如果在WindowService等其他非Web应用里提交一个httpRequest,用这个类比较方便:PostSubmitterpost=newPostSubmitter();post.Url="http://seeker.dice.com/jobsearch/servlet/JobSearch";post.PostItems.Add("op","100");post.PostItems.Add("rel_code","1102");post.PostItems.Add("FREE_T阅读全文
posted @ 2011-12-28 10:22 李昀璟 阅读(4) 评论(0) 编辑
摘要: 1.提示打不开或者找不到default.aspx文件.可能是因为扩展服务没有打开。解决: 输入inetmgr, 打开IIS Manager, 然后到Web Service Extensions, 设置ASP.NET v2.0.50727为Allow。如果没有发现这一项,就点击右侧窗口任务下的“添加一个新的Web服务扩展”,在弹出的窗口中,点击添加,然后找到x:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll(x为系统安装盘符,一盘为C),再点击确定按钮保存设置,最后再设置其状况为“允许”即可。2. Web应用程序总是不停退阅读全文
posted @ 2011-04-27 14:52 李昀璟 阅读(24) 评论(0) 编辑
摘要: 今天想办法研究让Oracle的DDL语句也能在MSDTC事务里一块执行。最后发现这是件不可能完成的任务。因为Oracle的DDL语句是死活得自动提交的,无论你是否设置SET AUTOCOMMIT OFF。Oracle在执行DDL语句前是会先执行一条Commit;语句的。然后再执行DDL语句。如果DDL语句成功就COMMIT;失败就回滚。后来,有人说可以写个存储过程远程执行DDL语句,不明白为什么要用存储过程来执行DDL语句,但是结果也是失败:错误信息:ORA-02089: COMMIT is not allowed in a subordinate sessionORA-06512: at "阅读全文
posted @ 2011-01-20 16:13 李昀璟 阅读(54) 评论(0) 编辑
摘要: RTOS(Real-time Operating System)CV(Curriculum Vitae)简历EAI(Enterprise appplication integration)Jr.(Junior)Sr.(Senior)ITO(IT开发外包)BPO(商务流程外包)JD(Job discription)PM(Product Manager)TM(Team Manager)PL(Proje...阅读全文
posted @ 2008-03-17 09:36 李昀璟 阅读(161) 评论(0) 编辑
摘要: 日本語国際センターHP  http://www.jpf.go.jp/j/urawa/j_rsorcs/textbook/jrs_04_02_05.html阅读全文
posted @ 2007-09-04 10:22 李昀璟 阅读(93) 评论(0) 编辑
摘要: (一)USE NorthwindselectOrderID,count(case when Quantity between 20 and 30 then ProductID end) as '20-30',count(case when Quantity between 30 and 40 then ProductID end) as '30-40',count(case when Quanti...阅读全文
posted @ 2007-06-06 15:06 李昀璟 阅读(167) 评论(0) 编辑
摘要: USE Northwinddeclare Order_cursor cursor forSELECT OrderID from Ordersopen Order_cursordeclare @OrderID as INTfetch next from Order_cursor into @OrderIDwhile(@@fetch_status =0)beginPRINT 'OrderID' + S...阅读全文
posted @ 2007-06-05 16:54 李昀璟 阅读(578) 评论(1) 编辑