从Visual Studio创建本地STS时出错
问题描述:
您好,
我尝试运行两个指南/培训套件:
- 在Windows Azure WebRoles上启用联合身份验证的指南...使用Windows身份基础
- Identity Developer Training Kit(2009年5月)
但是当我尝试使用以下错误消息创建本地STS时两者都失败了
"部分或全部身份引用无法转换"
刚创建了STS解决方案和WEB站点,但FederationMetadata.xml为空,在启动站点时导致空引用。
Per
答
您是否通过在管理员权限下运行VS来创建STS项目?您需要在管理员权限下运行VS,因为在VS中创建STS项目会在本地证书存储中安装默认的x.509证书。否则,FederationMetadata.xml文件将为空。
Did you create the STS project by running VS under admin rights? You need to run VS under admin rights cause creating an STS project in VS installs a default x.509 certificate in your local certificate store. Otherwise the FederationMetadata.xml file will be empty.