Windows Identity Foundation - 运行 Identity Developer 培训工具包时出现问题
我已经下载了 WIF SDK 和培训套件(2010 年 6 月版),并且尝试在 Windows 7 Enterprise 64 位上使用 Visual Studio 2010(所有默认安装)运行第一个练习。
到目前为止,我所做的是在 WebSitesAndIdentity 实验室中运行 SetupLab.cmd,并尝试运行第一个实验室 (ClaimsEnabledWebSite)。然而,当我这样做时,我收到以下错误(来自 Chrome):
Error 102 (net::ERR_CONNECTION_REFUSED): Unknown error.
这是我得到的最详细的信息。 IE 和 Firefox 只会中止我的请求。请求正在发送到 https://localhost/ClaimsEnableWebSiteEx01/
如果我尝试请求 HTTP url,我会得到a 404。查看源代码,除了一个非常简单的页面之外,我没有看到任何其他内容。有人能给我一些运行这个东西的指示吗?
我已经尝试过这个解决方案在 stackoverflow 中制作 但我不断收到同样的错误。
I have downloaded the WIF SDK and training kit (June 2010 version), and I am trying to run the 1st exercise on my Windows 7 Enterprise 64 bit, with Visual Studio 2010 (all default installations).
What I have done so far was to run the SetupLab.cmd in the WebSitesAndIdentity lab, and tried to run the first lab (ClaimsEnabledWebSite). When I do so, however, I get the following error (from Chrome):
Error 102 (net::ERR_CONNECTION_REFUSED): Unknown error.
It is the most verbose information that I got. IE and Firefox will just abort my request. The request is being made to https://localhost/ClaimsEnableWebSiteEx01/
If I try to request to the HTTP url I get a 404. Looking at the source code I don't see anything other than a very simple page. Could anyone give me some pointers to run this thing?
I have already tried this solution made here in stackoverflow but I keep getting the same error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是想指出 2011 年 4 月版的 Identity Developer 培训套件Visual Studio 2010 已经过时了。这可能会给实验室带来问题。例如,我在练习 2 期间报告了以下问题:从活动目录联合服务 (ADFS) STS 接受令牌:
“名为“CN=ip-sts-01.federatedidentity.net”的服务器证书身份验证失败,因为其身份验证失败指纹(“DE74CFE7D20E8DC2B6E6E700E4D2A940CB08B268”)与端点标识(“50191FA07A8F79D4220E551DF4B97F31519D012D”)中指定的指纹不匹配。因此,当前 HTTPS 请求失败,请更新客户端使用的端点标识。服务器。 ”
与 Visual Studio 2010 开发人员的 Web 服务和身份相关的练习(最后更新时间为 2011 年 8 月 25 日,这很奇怪,已经过时了),要求学员在 WeatherStationClient 的 app.config 中插入以下几行
:该编码值中包含的证书自 2011 年 2 月 19 日起已过期。他们确实在服务器上放置了新证书,但忘记更新练习描述。
要使其正常工作,请使用:
这指的是托管在 ip-sts-01.federatedidentity.net 上的新服务器证书,而不是上面建议的代码片段。这对我来说很有效!
希望它能帮助你们中的一些人通过实验室,
Marco
Just want to put a remark that the April 2011 version of the Identity Developer training kit for Visual Studio 2010 is already out of date. This can give problems with the labs. For example, I had the following problem reported during EXERCISE 2: ACCEPTING TOKENS FROM AN ACTIVE DIRECTORY FEDERATION SERVICES (ADFS) STS:
"The server certificate with name 'CN=ip-sts-01.federatedidentity.net' failed identity verification because its thumbprint ('DE74CFE7D20E8DC2B6E6E700E4D2A940CB08B268') does not match the one specified in the endpoint identity ('50191FA07A8F79D4220E551DF4B97F31519D012D'). As a result, the current HTTPS request has failed. Please update the endpoint identity used on the client or the certificate used by the server."
The exercise related to Web Services and Identity for Visual Studio 2010 Developers (last updated 8/25/2011, which is weird then to be outdated), asks the trainee to insert the following lines in the app.config of the WeatherStationClient:
The problem is that the certificate that is contained in this encoded value has expired since 2/19/2011. They did put up a new certificate on the server but forgot to update the exercise description.
To get this to work, instead of the suggested snippet above, use:
This refers to the new server certificate hosted at ip-sts-01.federatedidentity.net. And that did the trick for me!
Hope it helps some of you getting through the labs,
Marco
有许多更新 - 请参见此处:
2011 年 2 月对身份培训套件和应用程序的更新Course
每个源文件夹都有两个子文件夹,即。开始和结束。 Begin 是练习的起点,End 是您应该(希望)得到的结果!
您是否尝试过构建并运行 Begin 项目? (即在进行任何更改之前)
您是否尝试过构建并运行 End 项目?
您是否尝试过将应用程序添加到 IIS 并从“普通”浏览器而不是 VS 内部浏览器运行?
您是否尝试过添加日志记录 - Windows Identity Foundation 示例 - 跟踪是您的朋友
您是否尝试过构建并运行默认的声明感知网站 - 文件/新建/网站/声明感知 ASP.NET 网站?
希望这能提供一些线索。
There have been a number of updates - see here:
February 2011 Updates to the Identity Training Kit & Course
Each Source folder has two sub folders viz. Begin and End. Begin is the start point for the exercise and End is what you should (hopefully) end up with!
Have you tried building and running the Begin project? (i.e. before making any changes)
Have you tried building and running the End project?
Have you tried adding the application to IIS and running from a "normal" browser rather than from the VS internal one?
Have you tried adding logging - Windows Identity Foundation Samples–Trace is Your Friend
Have you tried building and running a default claims-aware web site - File / New / Web Site / Claims-aware ASP.NET Web Site?
Hopefully, that should throw up some clues.