- 博客(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
1248
原创 修复IIS:因ApplicationHost.config被破坏导致的崩溃
错误描述 有时候我们必须手动或用脚本修改applicationHost.config来满足我们的一些需求。这就存在破坏applicationHost.config的风险。而一旦applicationHost.config被破坏,IIS就会崩溃。即时我们后来修复了applicationHost.config中的错误并重启机器,IIS都可能无法恢复。解决方法 解决的办法是使用IIS提供的A
2013-08-03 10:11:09
9626
原创 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
1449
原创 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
2470
原创 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
1264
原创 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
1836
原创 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
3403
原创 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
4890
原创 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
1921
原创 自定义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
991
原创 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
800
原创 编写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
5414
原创 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
1737
The Definitive Guide to Windows Installer
2013-06-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人