2015年12月30日 星期三

[VS/TFS] 連接TFS出現無法切換伺服器,忙碌中訊息/unable to switch server at this time, team explorer is busy

說明:
使用VS 2008安裝Team Explorer 2008與向上相容TFS 2010套件連接TFS 2010,在新增伺服器時,輸入TFS URL後,出現該錯誤訊息。


解法:
將輸入的URL最後的反斜線拿掉即可。例:http://[ServerName]:8080/tfs/,移除/
因為Team Explorer 2008比較舊,無法處理/,造成無法連線。
可參閱[1]:
Warning:  Although the Admin Console displays the URL with a final slash, "/", the older clients do not take handle the slash and will not connect.
It is possible to connect to the default Team Project Collection by providing the server name only. This method is limited, as it only allows connection to one of the Team Project Collections in a TFS Instance.


參考資料:
  1. http://blogs.msdn.com/b/team_foundation/archive/2010/04/13/compat-matrix-for-2010-rtm-team-foundation-server-to-team-explorer-2008-and-2005.aspx
  2. https://social.msdn.microsoft.com/Forums/zh-TW/7b912531-efee-470e-bcd1-0a3d44b814b5/unable-to-switch-servers-at-this-time-team-explorer-is-busy?forum=tfssetup
  3. http://blogs.msdn.com/b/jasonba/archive/2009/08/10/how-to-connect-to-a-tfs-2010-server-from-a-2008-team-explorer-client.aspx


[.NET/IIS] runtime修改ASP.NET專案的web.config,對request與session的影響?

說明:在Server上修改web.config或更改bin下的dll檔,對於request與session會有什麼影響?


參考如下:
會起新的Application Domain,Application Pool不動(working process不變)。

● app domain在卸除前,會處理完佇列中的request,新的request由新的app domain起來處理。
● in-process session會不見,因此建議將session存放於out-of-process,如session state server或DB。


參考資料:
https://blogs.msdn.microsoft.com/tess/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles/
http://huan-lin.blogspot.com/2010/11/app-pool-vs-app-domain.html
http://stackoverflow.com/questions/27705527/does-editing-a-web-config-file-trigger-an-overlapping-recycle-or-a-startstop-of