2011年11月15日
摘要: 当ASP.NET 运行于 Medium Trust 环境下,有两种情况:Context.GetSavedLicenseKey(type, null), 会有SecurityException 抛出,提示需要FileIOPermission;Context.GetSavedLicenseKey(type, assembly),但assembly不为null时,可以正常使用。怎样得到assembly, 大部分的时候都是通过Assembly.GetEntryAssembly() 获得。在ASP.NET环境下,Entry Assembly 一直是null.怎么办?可以在AppDomain.Curren 阅读全文
posted @ 2011-11-15 17:48 西西弗斯 阅读(312) 评论(0) 推荐(0) 编辑
  2011年11月14日
摘要: 封装一个MTA的WaitALLclass MtaWaitAllWrapper { readonly WaitHandle[] waitHandles; readonly int millisecondsTimeout; bool waitResult; Exception error; MtaWaitAllWrapper(int millisecondsTimeout, params WaitHandle[] waitHandles) { if (waitHandles == null) throw new ArgumentNullException(@"waitHandles&qu 阅读全文
posted @ 2011-11-14 09:59 西西弗斯 阅读(794) 评论(0) 推荐(0) 编辑
  2011年11月4日
摘要: Reflector:http://reflector.red-gate.com/Deblector:http://www.codeplex.com/deblectorReflexil: http://reflexil.net/ 阅读全文
posted @ 2011-11-04 15:01 西西弗斯 阅读(188) 评论(0) 推荐(0) 编辑
  2011年10月31日
摘要: 脚本:E:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe /i AssemblyBuiltUnderNETFX4.dll 错误信息:Failure adding assembly to the cache: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.解决方案:E:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4. 阅读全文
posted @ 2011-10-31 16:39 西西弗斯 阅读(720) 评论(0) 推荐(0) 编辑
  2011年9月20日
摘要: Recently I encountered a strange problem when I tried to install an MSI based setup on Windows Vista. I ran through the dialog sequence and clicked the “Install Now” button. The progress bar dialog was displayed as usual, and I left the computer to get a cup of coffee, expecting that the software w. 阅读全文
posted @ 2011-09-20 11:43 西西弗斯 阅读(781) 评论(0) 推荐(0) 编辑
  2011年4月6日
摘要: SET 用于设置临时环境变量 (批处理脚本中经常用到)SETX 则用于设置用户环境变量和系统环境变量 - SET UsrVariable abc (设置用户环境变量 记录在HKEY_CURRENT_USER ) - SET /M OSVariable abc (设置系统环境变量 记录在HKEY_LOCAL_MACHINE) 阅读全文
posted @ 2011-04-06 17:00 西西弗斯 阅读(3924) 评论(0) 推荐(2) 编辑
  2011年4月1日
摘要: Copyright (C) AAAA-BBBBCompany.inc.AAAA: Year when product was released for the first time. (year when Ver 1.0 was released)BBBB: Year when the first release of current version (Ver 5.0) is released. 阅读全文
posted @ 2011-04-01 15:00 西西弗斯 阅读(275) 评论(0) 推荐(0) 编辑
  2011年2月23日
该文被密码保护。 阅读全文
posted @ 2011-02-23 16:15 西西弗斯 阅读(2) 评论(0) 推荐(0) 编辑
  2011年1月26日
摘要: ILMergeis a utility that can be used to merge multiple .NET assemblies into a single assembly. It is freely available for use from theTools & Utilitiespage at theMicrosoft .NET Framework Developer Center.While using this tool, I encouter some problems, the tips are collected as following:1. Using IL 阅读全文
posted @ 2011-01-26 12:19 西西弗斯 阅读(242) 评论(0) 推荐(0) 编辑
  2011年1月19日
该文被密码保护。 阅读全文
posted @ 2011-01-19 09:49 西西弗斯 阅读(0) 评论(0) 推荐(0) 编辑