TFS Preview Issue TF30063, TF31003, TF205020, on 2012-05-01

今天當我嘗試開啟一個以TFS Preview 作為Source Control的程式時
我的Visual Studio 2010 彈出了一些錯誤信息..

TF30063: You are not authorized to access https://share.tfspreview.com/defaultcollection – to remove server returned an error (401) Unauthorized
TF30063: You are not authorized to access https://share.tfspreview.com/defaultcollection - te remove server returned an error (401) Unauthorized
之後我嘗試用Team Explorer 嘗試連接 TFS Preview 時卻出現以下錯誤

TF31003: Either you have not entered the necessary credentials or your user account does not have permission to connect to the Team Foundation Server… Click the Use different credentials link below, or ask your server administrator to add the appropriate permissions to your account.

當我按了”Retry“之後 “Sign-In to Team Foundation Server” 的對話方塊彈了出來.. 看來他是嘗試登入…但是最終都是失敗…這個動作重覆了2-3次… 之後還是彈出同個錯誤信息..
Sign-In to Team Foundation Server keep in refreshing
有些網友亦都有差不多的情況…
他們收到了以下的錯誤信息
TF205020: A connection could not be made to the following server: share.tfspreview.com\DefaultCollection. This server was used during your most recent session, but it might be offline, or network problems might be preventing the connection. Contact the administrator for Team Foundation Server to confirm that the server is available on the network. To attempt to connect to this server or a different server, open the Team menu, and click Connect to Team Foundation Server.

我以為是自己的TFS Preview帳號被人入侵了…之後嘗試使用Browser來連接TFS Preview Server... 結果是沒有問題…順利登入..和看到我在TFS Preview上的Project
但是在Visual Studio 上還是找不到解決的方法…
最後靜下來..想一想 終於找到解決方法了

解決方法:
問題的原因是因為TFS Preview應該我輸入的使用者出現問題..
由於我在VS2010的”Sign-In to Team Foundation Server” 選擇了”Stay Signed In” 這個選項
所以我覺得應該是和儲存了的資料/Cookies有關
所以我便嘗試開啟Internet Explorer (IE)..
之後按”Tools/工具“->”Internet Options/網絡選項
在”Browsing History/ 瀏覽記錄” Section上按一下”Delete../刪除..
Delete Internet Browsing History from Internet Explorer
在”Delete Browsing History/刪除瀏覽記錄“的對話方塊上一定要選擇”Cookies“和”Password/密碼
完成後按”OK

之後再次嘗試用Visual Studio連接TFS Preview..應該是可以連上的

如果大家有什麼的疑問和其他的解決方法歡迎大家留言和大家分享

Hope you find it useful

使用非 Hotmail/MSN/ Live 電郵..登入Windows Live ID 服務 ..建立你的Windows Live 登入證書

有沒有見過有些朋友的MSN的Email Address不是用
Windows Live E.G. live.com/ msn.com / hotmail.com 的呢?

最近安裝了Windows 8來試用..
其中登入的畫面有使用Windows Live Account來登入的選項…
使用Windows Live account來來登入的好處是
如果你有多過一台安裝了Windows 8的電腦…
他可以把你的個人設定同步到另其他的電腦上..
令你不要在多部電腦上重新再設定
在播放影和音樂時..亦都可以做到同步

E.G.
當你在你其中的一部電腦上看電影和到一半時關閉了電腦..
之後在另外一部電腦上登入..
便可以繼續播放了…
十分方便 =).

還有.. 如果是使用Windows Phone 的朋友..
亦都要用Windows Live Account來登入的

但是如果要特別為了使用Windows PhoneWindows 8的這個功能.. 要特別開一個Email Account感覺很像會有很多Email..可能會有點亂..
幸好..Microsoft 有一個服務叫”Microsoft Passport Network
可以在任何一個Email Address建立一個證書..令到這個電郵可以使用Windows Live Account的服務..
E.G. SkyDrive, MSN, 和其實要使用Windows Live ID的服務

建立證書的方法十分簡單

大家可以開啟Microsoft Passport Network 的網址.. 之後進行
www.passport.net

之後有多個選擇給你的
第一個是會開啟一個新旳MSN Hotmail 帳號, 可以免費得到一個Hotmail的電郵戶口

第二個是會幫你現有的電郵建立一個Windows Live證書

第三個選項是建立一個有限的帳戶..這個帳戶不會使用電郵戶口來連接Windows Live ID的

我們選擇第二個選項:

Microsoft Passport Network
數個步驟後我們便可以為我們現有的電郵建立一個Windows Live ID的證書了
步驟一:
輸入電郵地址和reset password的資料
Create Microsoft Passport Login
步驟二:
輸入電郵地址接受簽署合約
enter email address to accept term and conditions
按”接受” 後便會出現”認證已建立“的確認信息
說需要登入自己的電郵去確定電郵地址
Sucessfully created Microsoft Passport and Allow to login Winodws Live ID Website
之後你便會收到Email Confirmation去Verify 你的帳號…這便大功告成了
Email Confirmation

現在你可以使用這個電郵去登入需要使用Windows Live Account的 網頁..應該程式

Hope you find it useful