Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

새로 설치한 Visual Studio 2010의 Team Explorer 실행시 비정상 종료가 된다면?


기존 TFS 2010 서버가 있는 상태에서 새롭게 Visual Studio 2010 + SP1을 설치하고 TFS를 등록했는데, 이후로 Team Explorer 만 띄우면 예외가 발생하면서 Visual Studio가 비정상 종료되었습니다.

이때 TFS 서버측 이벤트 로그에는 다음과 같은 항목이 남아 있고,

Log Name:      Application
Source:        System.ServiceModel 3.0.0.0
Date:          2013-01-08 오후 1:38:00
Event ID:      3
Task Category: WebHost
Level:         Error
Keywords:      Classic
User:          TESTPC\tfsuser
Computer:      tfs.testpc.com
Description:
WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/33711845
 Exception: System.ServiceModel.ServiceActivationException: The service '/SecurityTokenServiceApplication/securitytoken.svc' cannot be activated due to an exception during compilation.  The exception message is: Exception has been thrown by the target of an invocation.. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: certificate
   at System.IdentityModel.Tokens.X509SecurityToken..ctor(X509Certificate2 certificate, String id, Boolean clone, Boolean disposable)
   at System.IdentityModel.Tokens.X509SecurityToken..ctor(X509Certificate2 certificate)
   at Microsoft.IdentityModel.SecurityTokenService.X509SigningCredentials..ctor(X509Certificate2 certificate)
   at Microsoft.SharePoint.IdentityModel.SPSecurityTokenServiceConfiguration..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory.CreateSecurityTokenServiceConfiguration(String constructorString)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at Microsoft.SharePoint.IdentityModel.SPSecurityTokenServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   --- End of inner exception stack trace ---
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
 Process Name: w3wp
 Process ID: 2672

Visual Studio 가 설치된 컴퓨터의 이벤트 로그에는 다음과 같은 항목이 있습니다.

Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: devenv.exe
P2: 10.0.40219.1
P3: 4d5f2a73
P4: Microsoft.TeamFoundation.Common
P5: 10.0.40219.371
P6: 4ee75318
P7: 4b6
P8: 45
P9: System.MissingMethodException
P10: 

Attached files:

These files may be available here:
C:\Users\tfsuser\AppData\Local\Microsoft\Windows\WER\ReportArchive\Critical_devenv.exe_3eb42921c720f63f9463facd84ff6bd4490f6c8_03d6cd14

Analysis symbol: 
Rechecking for solution: 0
Report Id: a25e7b17-592b-11e2-93f5-00155d897502
Report Status: 2048
Hashed bucket: 

낯익은 System.MissingMethodException 이 발생했군요. 이를 통해 검색해 보면 다음의 글이 나옵니다.

TFS 2010 Explorer installed on TFS 2010 Server: works first time; never more....
; http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/d7bc385e-8b1f-4df4-b7e6-d0d0981ff394/

그래서 GDR 패치를 다운로드 받아서 설치하면 일단 이 문제가 해결됩니다.

Visual Studio 2010 SP1 Team Foundation Server 2012 Compatibility GDR
- Provides compatibility between all VS 2010 products that connect to Team Foundation Server 2012 or the Team Foundation Service Preview
; http://www.microsoft.com/en-us/download/details.aspx?id=29082

그런데 이상하긴 하군요. ^^ 제가 설치한 TFS는 2010 버전인데... 혹시 서버에도 이와 대응되는 패치가 설치된 것이 아닐까요? 그래서 TFS 서버가 설치된 PC 의 업데이트 목록을 "제어판" / "Programs and Features" / "Installed Updates" 에서 확인해 보니 "Hotfix for Microsoft Team Foundation Server 2010 - ENU (KB2643415)" 항목이 눈에 들어옵니다.

KB2643415 업데이트 설명을 보면,

Cumulative update package 2 for Visual Studio Team Foundation Server 2010 Service Pack 1
; http://support.microsoft.com/kb/2643415/en-us

"2581206 - FIX: A hotfix for Visual Studio 2010 SP1 is available to add compatibility support for Visual Studio Team Foundation Service Preview" 항목이 있습니다. "TFS Preview" 업데이트가 겹치는 것을 보니... 짐작이 갑니다.

즉, KB2643415 패치가 된 TFS 2010 서버에 접속하려면 GDR 패치가 된 Visual Studio 2010 으로 해야 한다는 가정!




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 1/8/2013]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  9  10  11  12  13  [14]  15  ...
NoWriterDateCnt.TitleFile(s)
13294정성태3/22/20234483.NET Framework: 2105. LargeAddressAware 옵션이 적용된 닷넷 32비트 프로세스의 가용 메모리 - 두 번째
13293정성태3/22/20234524오류 유형: 853. dumpbin - warning LNK4048: Invalid format file; ignored
13292정성태3/21/20234691Windows: 232. C/C++ - 일반 창에도 사용 가능한 IsDialogMessage파일 다운로드1
13291정성태3/20/20235029.NET Framework: 2104. C# Windows Forms - WndProc 재정의와 IMessageFilter 사용 시의 차이점
13290정성태3/19/20234545.NET Framework: 2103. C# - 윈도우에서 기본 제공하는 FindText 대화창 사용법파일 다운로드1
13289정성태3/18/20233761Windows: 231. Win32 - 대화창 템플릿의 2진 리소스를 읽어들여 자식 윈도우를 생성하는 방법파일 다운로드1
13288정성태3/17/20233885Windows: 230. Win32 - 대화창의 DLU 단위를 pixel로 변경하는 방법파일 다운로드1
13287정성태3/16/20234047Windows: 229. Win32 - 대화창 템플릿의 2진 리소스를 읽어들여 윈도우를 직접 띄우는 방법파일 다운로드1
13286정성태3/15/20234518Windows: 228. Win32 - 리소스에 포함된 대화창 Template의 2진 코드 해석 방법
13285정성태3/14/20234055Windows: 227. Win32 C/C++ - Dialog Procedure를 재정의하는 방법파일 다운로드1
13284정성태3/13/20234302Windows: 226. Win32 C/C++ - Dialog에서 값을 반환하는 방법파일 다운로드1
13283정성태3/12/20233762오류 유형: 852. 파이썬 - TypeError: coercing to Unicode: need string or buffer, NoneType found
13282정성태3/12/20234080Linux: 58. WSL - nohup 옵션이 필요한 경우
13281정성태3/12/20234100Windows: 225. 윈도우 바탕화면의 아이콘들이 넓게 퍼지는 경우 [2]
13280정성태3/9/20234815개발 환경 구성: 670. WSL 2에서 호스팅 중인 TCP 서버를 외부에서 접근하는 방법
13279정성태3/9/20234300오류 유형: 851. 파이썬 ModuleNotFoundError: No module named '_cffi_backend'
13278정성태3/8/20234339개발 환경 구성: 669. WSL 2의 (init이 아닌) systemd 지원 [1]
13277정성태3/6/20235035개발 환경 구성: 668. 코드 사인용 인증서 신청 및 적용 방법(예: Digicert)
13276정성태3/5/20234696.NET Framework: 2102. C# 11 - ref struct/ref field를 위해 새롭게 도입된 scoped 예약어
13275정성태3/3/20234938.NET Framework: 2101. C# 11의 ref 필드 설명
13274정성태3/2/20234531.NET Framework: 2100. C# - ref 필드로 ref struct 타입을 허용하지 않는 이유
13273정성태2/28/20234306.NET Framework: 2099. C# - 관리 포인터로서의 ref 예약어 의미
13272정성태2/27/20234523오류 유형: 850. SSMS - mdf 파일을 Attach 시킬 때 Operating system error 5: "5(Access is denied.)" 에러
13271정성태2/25/20234486오류 유형: 849. Sql Server Configuration Manager가 시작 메뉴에 없는 경우
13270정성태2/24/20234014.NET Framework: 2098. dotnet build에 /p 옵션을 적용 시 유의점
13269정성태2/23/20234659스크립트: 46. 파이썬 - uvicorn의 콘솔 출력을 UDP로 전송
1  2  3  4  5  6  7  8  9  10  11  12  13  [14]  15  ...