自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (5)
  • 收藏
  • 关注

原创 Some WIX extension tags write rows to CreateFolder table which lead to Not-Uninstallable Patch

I found an issue in WIX extension implementation.Some WIX extension tags write rows to CreateFolder table, e.g., , . As the official MSI document says, a patch can beNot uninstallable if it co

2014-08-22 11:13:38 1211

原创 修复IIS:因ApplicationHost.config被破坏导致的崩溃

错误描述 有时候我们必须手动或用脚本修改applicationHost.config来满足我们的一些需求。这就存在破坏applicationHost.config的风险。而一旦applicationHost.config被破坏,IIS就会崩溃。即时我们后来修复了applicationHost.config中的错误并重启机器,IIS都可能无法恢复。解决方法 解决的办法是使用IIS提供的A

2013-08-03 10:11:09 9217

原创 WIX: 用XmlConfig修改ApplicationHost.config出错

错误描述我们的网站通过WIX生成的MSI安装到IIS上。为了在ApplicationHost.config中加入我们网站专用的Advanced Logging的配置信息,我们用了XmlConfig来修改ApplicationHost.config。结果MSI安装报错:需要修改的XML节点也就是不存在。分析 我们在调研中发现,WIX使用了一个deferred CA(Custom Acti

2013-08-03 09:57:57 1388

原创 Using WebSocket in .NET 4.5 (Part 4)

IntroductionPart 1 gives an overview of the WebSocket protocol and .NET WebSocket support. Part 2 demonstrates how to use WebSocket in traditional ASP.NET and MVC 4 web applications. Part 3 demons

2013-07-22 12:35:57 2341 1

原创 Using WebSocket in .NET 4.5 (Part 3)

IntroductionPart 1 gives an overview of the WebSocket protocol and .NET WebSocket support.Part 2 demonstrates how to use WebSocket in traditional ASP.NET and MVC 4 webapplications.In this articl

2013-07-12 09:51:29 1188

原创 Using WebSocket in .NET 4.5 (Part 2)

Introduction Part 1 gives an overview to WebSocket protocol and .NET WebSocket support. Inthis article, I will demonstrate how to host a WebSocket server in atraditionalASP.NET orMVC 4 web app

2013-07-09 23:34:42 1753

原创 Using WebSocket in .NET 4.5 (Part 1)

In this serial of articles, I will share some knowledge I leart recently in using WebSocket in .NET 4.5.The WebSocket protocol was standarlized by IETF as RFC 6455. We could find the introduction on

2013-07-08 15:54:30 3250 3

原创 IIS8排错:Could not load type ‘System.ServiceModel.Activation.HttpModule’

最近基于.NET 4.5的WebSocket开发了一个服务器应用部署到Windows Server 2012和IIS8上去。调试的时候,每次打开网页就会遇到一个异常:"Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly 'System.ServiceModel, Version=3.0.0.0,

2013-06-30 17:54:08 4760

原创 Solve IIS 8 Error: Could not load type ‘System.ServiceModel.Activation.HttpModule’

I met an error when I was deploying my WebSocket server application which targeted .NET 4.5 to Windows Server 2012 plus IIS 8. It was an exception shown in browser whenever I tried to open a web page.

2013-06-30 17:10:59 1840

原创 自定义ISAPI Filter中发现的一个与Keep-Alive相关的Bug

我曾经在IIS6和IIS7.5的Classic模式下实现了一个自定义ISAPI Filter,目的是实现我自己的Basic认证逻辑。这中间我遇到了ISAPI Filter中与Keep-Alive相关的一个bug。我的自定义ISAPI Filter在重载的CHttpFilter::OnPreprocHeaders方法中验证请求头中的用户信息 (Authorization: Basic ). 如果

2013-06-28 23:30:46 951

原创 A Bug in Custom ISAPI Filter Related to Keep-Alive

I once implemented my own Basic authentication logic in a custom ISAPI filter on IIS 6 and IIS 7.5 (classic mode). I met a bug related to keep-alive.The custom filter checked the credentials (Author

2013-06-28 22:46:47 754

原创 编写COM-Visible的Assembly的最佳实践(C#)

总结了一下最近工作中编写COM-visible的Assembly的最佳实践。1. 在AssemblyInfo.cs中, 我设置了两个Attribute:[assembly: ComVisible(false)][assembly: Guid("64729ced-7a8d-4c90-af7f-a41725cfe216")] 第一个Attribute表明我不希望Assembly中所有

2013-06-28 22:03:07 5179

原创 Best Practice in Writing a COM-Visible Assembly (C#)

I summarized some best practice rules in writing a COM-visible assembly according to my recent work.1. In AssemblyInfo.cs, I wrote two attributes:[assembly: ComVisible(false)][assembly: Guid("6

2013-06-27 00:25:00 1650

原创 Hello World!

This is my first CSDN blog.

2013-06-21 13:24:20 594

Ultra-Fast ASP.NET

如何设计和开发高性能和高扩展性的ASP.NET网站,作者以丰富的经验从架构,缓存,数据库和web服务器配置等方面给出了详细的解释。

2013-06-19

The Definitive Guide to Windows Installer

最经典的一本关于Windows Installer的书。详细地介绍了MSI,MSM,MSP等Installer Database的基本原理。内容涉及版本控制,升级,Custom Action等等。这些都是WIX和InstallShield进阶开发所必须掌握的知识。

2013-06-18

Beginning Silverlight 3

一本非常初级的silverlight入门书籍.

2010-10-20

Practical WPF Graphics Programming

一本关于在WPF中开发图形程序的不错的书, 2D和3D都讲得非常详细.

2010-10-20

WPF Data Binding Quick Reference

帮你快速查找WPF中data binding的语法和各种使用方式. 建议打印出来贴在工作台附近便于快速查找.

2010-10-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除