惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS Blog

博客园 - gucs

《应用框架的设计与实现——.NET平台》书评 Tech Ed 2009,胡思乱想 Mac 双系统的时间设置问题 使用 gVim 遇到的第一个问题 Google notebook for Firefox 3.5 Fiddler & localhost 关于 TableLayoutPanel 的 Scroll bar Powerdesigner 12.5 对 SQL Server 2005 做反向工程时发生错误 VisualSVN Server 的 Apache 配置 ExplorerXP 在 Vista 下的设置 ReSharper 2.0.4 安装时的 1722 错误 禁用 Nero ShowTime 快捷键 使用 ModalPopupExtender 和 UpdatePanel 应注意的问题 NHibernate 和 ODP.NET 手动注册 DevExpress 8.2.3 控件到 Visual Studio 工具箱 PPStream caused an Access Violation (0xc0000005) in module VSFilter.dll at 001b:07610441. 隐藏 Windows Vista 的 Explorer 菜单栏 ReadOnly Controls do not post back properly 使用 ExtJs Extender Controls 遇到的第一个错误
《WCF Unleashed》的 AzRoles 演示代码
gucs · 2009-12-15 · via 博客园 - gucs

《WCF Unleashed》的 10.3 节《使用 XSI 运用基于声明的安全》的演示代码使用了 AzRoles,按照书上的步骤安装 Windows 2003 Serivce Pack 1 Administration Tools Pack 之后,程序仍抛出运行时异常。

修改 App.config,增加 <serviceDebug includeExceptionDetailInFaults="true" /> 配置后看到了错误信息:The authorization store component is not installed.

我的操作系统是 Windows XP + SP2,根据 How To: Use Authorization Manager (AzMan) with ASP.NET 2.0 这篇文章的说明,按照如下步骤:

  1. 安装 Windows 2003 Serivce Pack 1 Administration Tools Pack 
  2. 安装 Windows 2000 Authorization Manager Runtime (实际上就是解开压缩包)
  3. 将 Microsoft.Interop.Security.AzRoles.dll 注册到 GAC

正是因为 Windows 2003 Serivce Pack 1 Administration Tools Pack 不包含 Interop,我们不得不自己手动注册一下。通过以上的步骤,我终于看到了下面这个效果,呵呵

image