2011-01-09 61 views
0

我已經下載了WIF SDK和培訓工具包(2010年6月版),並試圖在Windows 7 Enterprise 64位上使用Visual Studio 2010 (所有默認安裝)。Windows Identity Foundation - 運行Identity Developer培訓套件的問題

到目前爲止,我所做的是運行WebSitesAndIdentity實驗中的SetupLab.cmd,並嘗試運行第一個實驗(ClaimsEnabledWebSite)。但是,當我這樣做時,出現以下錯誤(來自Chrome):

Error 102 (net::ERR_CONNECTION_REFUSED): Unknown error. 

這是我得到的最詳細的信息。 IE和Firefox會放棄我的請求。請求正在向https://localhost/ClaimsEnableWebSiteEx01/

如果我嘗試請求HTTP網址,我得到了404。查看源代碼,除了非常簡單的頁面外,沒有看到任何東西。任何人都可以給我一些指示來運行這個東西?

我已經試過這個解決方案made here in stackoverflow但我不斷收到相同的錯誤。

+0

你在IIS證實,該網站是正確創建並正確綁定到HTTPS? – 2011-01-17 18:20:43

回答

0

已經有多項更新 - 在這裏看到:

February 2011 Updates to the Identity Training Kit & Course

每個源文件夾有兩個子文件夾,即:開始和結束。開始是練習的起點,End是你應該(希望)結束的!

您是否嘗試過構建並運行Begin項目? (即在進行任何更改之前)

您是否嘗試過構建和運行End項目?

您是否嘗試將應用程序添加到IIS,並從「普通」瀏覽器而不是從VS內部運行?

你試過添加日誌 - Windows Identity Foundation Samples–Trace is Your Friend

你試過構建和運行默認的聲明感知網站 - 文件/新建/網站/聲明感知ASP.NET網站?

希望這會引發一些線索。

1

只想提出一個說法,即Identity Developer training kit for Visual Studio 2010的2011年4月版已過期。這可能會給實驗室帶來問題。例如,我在執行練習2期間報告了以下問題:從主動目錄聯邦服務(ADFS)STS接收令牌:

「名稱爲'CN = ip-sts-01.federatedidentity.net'的服務器證書失敗因爲其指紋('DE74CFE7D20E8DC2B6E6E700E4D2A940CB08B268')與端點標識('50191FA07A8F79D4220E551DF4B97F31519D012D')中指定的指紋不匹配,導致當前的HTTPS請求失敗,請更新客戶端使用的端點標識或使用的證書由服務器「。

與Web服務和Identity for Visual Studio 2010開發人員相關的練習(上次更新時間爲2011年8月25日,這很奇怪,然後過時),要求學員在應用程序中插入以下行。所述WeatherStationClient的配置:

<issuer address="https://ip-sts-01.federatedidentity.net/adfs/services/trust/13/usernamemixed" 
bindingConfiguration= 
"https://ip-sts-01.federatedidentity.net/adfs/services/trust/13/usernamemixed" 
binding="ws2007HttpBinding"> 
<identity> 
<certificate encodedValue=" 
MIIGKjCCBRKgAwIBAgIKKwWMagAFAAF3hDANBgkqhkiG9w0BAQUFADCBizETMBEGCgmSJomT8ixkARkWA2NvbTEZMBcGCgmS 
JomT8ixkARkWCW1pY3Jvc29mdDEUMBIGCgmSJomT8ixkARkWBGNvcnAxFzAVBgoJkiaJk/IsZAEZFgdyZWRtb25kMSowKAYD 
VQQDEyFNaWNyb3NvZnQgU2VjdXJlIFNlcnZlciBBdXRob3JpdHkwHhcNMTAwMzI0MTcwNTI3WhcNMTEwMjE5MTgyNDUzWjB4 
MQswCQYDVQQGEwJVUzELMAkGA1UECBMCd2ExEDAOBgNVBAcTB3JlZG1vbmQxEjAQBgNVBAoTCW1pY3Jvc29mdDEMMAoGA1UE 
CxMDaWRhMSgwJgYDVQQDEx9pcC1zdHMtMDEuZmVkZXJhdGVkaWRlbnRpdHkubmV0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB 
iQKBgQCqQB1CIW67PoTYJPc5wgjF9qtyKHToKVesfMPgE5oNtg+d47DAHllO0vCGvhWmsaJhbimLXK1GzTno/pNMorvFqVQN 
V9Z9WUxw6tw6VLaUEDBaQ/Afd8SyoljDnaZuxn6tqLjGBR+QgX+SBFFyiQD9iZwVLc+7cblf9lRGoG9kfQIDAQABo4IDJDCC 
AyAwCwYDVR0PBAQDAgSwMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATB4BgkqhkiG9w0BCQ8EazBpMA4GCCqGSIb3 
DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwCwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBLTALBglghkgBZQM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ll07r8Ka7Zskb+4RGFnZDVP91zMq6aw7C63UHCMQCMv4K7a 
mKuq+dxJEEp+BCRyiMhbt0QQAY2Fv+IrEf/unLvV/TheZ7J5meKLV4tvZaAU4zFzHbfaZ1tGSr6ldhkL92Qqs8WF1nRfPyq3 
Jk+616KVZXyluBhDoK6sCGJdCzmP+CWhaOprCbPrM5GAFSig7TUTQymi87SNAM9H1dVaIfSysjc9BjhnhFm7HsINtj6S1g== 
" /> 
</identity> 
</issuer>  

的問題是,由於2011年2月19日,其包含在該編碼值的證書已過期。他們確實在服務器上放了一個新的證書,但忘記更新練習描述。

爲了得到這個工作,而不是建議的片段上方,使用:

<issuer address="https://ip-sts-01.federatedidentity.net/adfs/services/trust/13/usernamemixed" 
bindingConfiguration=" 
https://ip-sts-01.federatedidentity.net/adfs/services/trust/13/usernamemixed" 
binding="ws2007HttpBinding"> 
<identity> 
<certificate 
encodedValue="MIIF5jCCBM6gAwIBAgIKTPVCpAAIAAH4kDANBgkqhkiG9w0BAQUFADCBizETMBEGCgmSJomT8ixkARkWA 
2NvbTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEUMBIGCgmSJomT8ixkARkWBGNvcnAxFzAVBgoJkiaJk/IsZAEZFgdy 
ZWRtb25kMSowKAYDVQQDEyFNaWNyb3NvZnQgU2VjdXJlIFNlcnZlciBBdXRob3JpdHkwHhcNMTEwMjI4MTgyNTU0WhcNMTM 
wMjI3MTgyNTU0WjAqMSgwJgYDVQQDEx9pcC1zdHMtMDEuZmVkZXJhdGVkaWRlbnRpdHkubmV0MIIBIjANBgkqhkiG9w0BAQ 
EFAAOCAQ8AMIIBCgKCAQEAxwHgRsl3Pk9blgHI/jBozplW740UU+tx9kp5qYlsSZ2JRSWXpkNBJGGn4VeF/evW/d2Vo5D9Z 
ZYOFoEh5x1G3RF+hEgRj3Na9P9GjfuJeB9CfL9HN5Z70tLgi/Swpd+zJxhOUrxBZFjzhwd9i17J9OAXnhoqdhPtPh4WIkCs 
uOr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UyMFNlY3VyZSUyMFNlcnZlciUyMEF1dGhvcml0eSg4KS5jcnQwDQYJKoZIhvcNAQEFBQADggEBAODoj1Oh3FYsizwaDPKs 
o3LGCGd9XTZtbDI/yB2QVWFWBN5OHVYMAhukXXZjtjGL9yNlPbl+ImP+BI//bAfQCuubavesBbf3wFtGJ7hpPpiKwhkKsLE 
KwldGrNAoSC2W6QFHCFhu0AjdO3GM8CQsqQ2cSAo6lWC+FNW1odZl0s6BqRTIsklFMHmqW7gmZwUbQCcjdiBx1KyzGttMt5 
4mcH21QWeuICKGM/2cQdLVZOG+XpsSW00m0+lcUQeN/ZJ+S7j66gntc4dj8bdMMMzr3+zuoSd75Dv4qjsSnEc9KeXYTeDqc 
3e14RUkA0q+MjB88BX3DtzmSpZBQ6txlwV8R+U=" /> 
</identity> 
</issuer> 

這是指在ip-sts-01.federatedidentity.net主持的新服務器證書。這對我來說就是訣竅!

希望它可以幫助一些你完成實驗室獲得,

馬爾科

相關問題