上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: win+R-> cmd –> 到\Inetpub\adminScripts目录-> adsutil.vbs create_vserv w3svc/i i默认为1(Default Web Site), 所以用的时候就写个>1的 然后到iis的GUI界面下去看看吧 阅读全文
posted @ 2009-02-03 00:44 new 维生素C.net() 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1: 2: 3: 做大网站,别再折腾web.config了,原因有2: 有些东西web.config搞不定 有些东西在web.config里配置起来麻烦 折腾machine.config吧。像上面那个例子,还配这么debug=true,batchcompile=true,直接就retail=true就得了。还有那些asp.net默认的一对module…用不着的就去了吧 up... 阅读全文
posted @ 2009-02-03 00:35 new 维生素C.net() 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1: // First create an instance of the call stack 2: StackTrace callStack = new StackTrace(); 3: 4: // Next select the frame we want... 5: // 0 : current frame for the current method 6:... 阅读全文
posted @ 2009-02-03 00:21 new 维生素C.net() 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Customizing the File Types IIS Compresses (IIS 6.0)http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5bce429d-c4a7-4f9e-a619-5972497b932a.mspx?mfr=true Using HTTP Compression ... 阅读全文
posted @ 2009-02-01 00:41 new 维生素C.net() 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 并不是所有的Exception都能按.net那种思路搞定,有些只能造假: 1: internal enum ExceptionMessageKind 2: { 3: OutOfMemory = 3, 4: ThreadAbort = 1, 5: ThreadInterrupted = 2 6: } Exception就是用一个叫HResult... 阅读全文
posted @ 2009-01-27 21:12 new 维生素C.net() 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1: using System; 2: using System.Web; 3: using System.Web.Util; 4: using System.Web.Hosting; 5: 6: public class SimpleVPP : VirtualPathProvider { 7: public static void AppInitial... 阅读全文
posted @ 2009-01-27 16:08 new 维生素C.net() 阅读(441) 评论(1) 推荐(0) 编辑
摘要: 1: 在web.config的http module里要配置这个. MD, 浪费了半天时间… 阅读全文
posted @ 2009-01-26 17:29 new 维生素C.net() 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 时间有限,简单说: 1.用Microsoft Application Request Routing for IIS7.0,这东西是基于http headers和server variables把http请求打到内容服务器上,并且内置负载均衡算法。 2.这个东西需要Microsoft URL Rewrite Module for IIS7.0。这个东西做的还算微软能拿的出手的。URL Rewrit... 阅读全文
posted @ 2009-01-25 01:22 new 维生素C.net() 阅读(608) 评论(0) 推荐(0) 编辑
摘要: IIS7方便到可以在web.config里可以控制更多的东西。这些不需要的东西在modules里就那么多,像session那样的需要开了就行。 handlers里如果要加自定义的,一定要在StaticFileModule前添加。 阅读全文
posted @ 2009-01-25 00:47 new 维生素C.net() 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: (1) 如果一个class里的method不需要调用实例数据(instance data)或者其他实例方法, 将其设计为static的。原因是这样会让编译器直接去emit非虚的call site,如此一来,可以防止在代码运行时每次call前都要去检查当前对象的指针是否为null。 (2)尽可能的避免抛出异常。异常对于GC的侵害是很严重的,异常发生时程序遇到一个break(就像街舞里的那种break... 阅读全文
posted @ 2009-01-23 00:08 new 维生素C.net() 阅读(247) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页