获取 Windows Identity Foundation“开发人员培训套件”工作示例
我下载了 Windows Identity Foundation 的“开发人员培训工具包”并将其安装在新设置的 Windows Server 2008 R2 虚拟机上。当我打开示例解决方案并按 F5 运行它们时,出现以下错误:
“无法在 Web 服务器上启动调试。底层连接已关闭:发送时发生意外错误。”
如果我尝试在不进行调试的情况下启动网页 (Ctrl-F5),我会在浏览器中收到“连接已重置”错误。什么都不起作用!
这里唯一不寻常的是,我看到本地计算机上的地址以 https 开头,而不是我在开发环境中习惯的 http 开头。这里有人能够运行这些代码示例吗?
I downloaded the "Developer Training Kit" for Windows Identity Foundation and installed it on a newly set up Windows Server 2008 R2 virtual machine. When I open up the example solutions and press F5 to run them, I get the following error:
"Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a send."
If I try to start the web page without debugging (Ctrl-F5), I get a "Connection was reset" error in the browser. Nothing works!
The only thing unusual here is that I see that the addresses on the local machine begin with https instead of http as I am used to in my development environment. Has anyone here been able to get these code samples to run?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了解决方案: Social.msdn.microsoft.com/...。
安装脚本中有一个错误。您必须打开脚本并使用文本编辑器进行更改。
要引用上面链接的站点(以防它消失),请对 SetupCertificates.cmd 进行以下更改。替换
@if ("%IsWinClient%" == "true") (
ECHO 使用本地主机证书在端口 443 设置 SSL...
netsh http add sslcert ipport=0.0.0.0:443 appid={00000000-0000-0000-0000 enable
) else (
ECHO 正在导入服务器证书并将 HTTP.SYS 指向它...
httpcfg.exe set ssl -i 0.0.0.0:443 -f 2 -h %CERTHASH%
)
-000000000000} certhash=%CERTHASH% clientcertnegotiation =
ECHO 使用本地主机证书在端口 443 设置 SSL...
netsh http add sslcert ipport=0.0.0.0:443 appid={00000000-0000-0000-0000-000000000000} certhash=%CERTHASH% clientcertnegotiation=enable
I found a solution to this here: social.msdn.microsoft.com/....
There is a bug in the installation script. You have to open the script and make changes with a text editor.
To quote from the site linked above ( in case it disappears ), make the following change to SetupCertificates.cmd. Replace
@if ("%IsWinClient%" == "true") (
ECHO Setting up SSL at port 443 using localhost certificate...
netsh http add sslcert ipport=0.0.0.0:443 appid={00000000-0000-0000-0000-000000000000} certhash=%CERTHASH% clientcertnegotiation=enable
) else (
ECHO Importing server certificate and point HTTP.SYS at it...
httpcfg.exe set ssl -i 0.0.0.0:443 -f 2 -h %CERTHASH%
)
With
ECHO Setting up SSL at port 443 using localhost certificate...
netsh http add sslcert ipport=0.0.0.0:443 appid={00000000-0000-0000-0000-000000000000} certhash=%CERTHASH% clientcertnegotiation=enable