Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9318
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

출처: http://blogs.msdn.com/junfeng/archive/2004/07/22/190813.aspx
assembly not found에 대한 속도를 높이기 상당히 고심한 흔적이 엿보이네요. ^^

Whidbey breaking change --- Caching binding failures

This is one of the breaking change mentioned in gotdotnet.com's break change from .Net 1.1 to 2.0

Cache load failures in order to ensure that different app domains do not have different dependency loading success/failure characteristics in domain neutral sharing scenarios

 

http://www.gotdotnet.com/team/changeinfo/Backwards1.1to2.0/default.aspx#00000067

 

What does it mean?

 

Say  you call Assembly.Load(”Foo, version=1.0.0.0, culture=neutral, publicKeyToken=0123456789abcdef”), you get a FileNotFoundException. You realize that foo.dll should be in GAC but you forget to install it. So you install it (using gacutil.exe or some other mechanism) to GAC. Now you call Assembly.Load(“Foo, version=1.0.0.0, culture=neutral, publicKeyToken=0123456789abcdef“) again.

 

In v1.0/v1.1, the second load will succeed. In Whidbey, the second load will fail.

 

Installing to GAC is just an example. As long as the first bind failed, the second bind will fail with exactly the same exception.

 

The caching is done on per AppDomain basis. If you create a new AppDomain and call Assembly.Load() on that app domain, it will succeed.








[최초 등록일: ]
[최종 수정일: 4/14/2006]


비밀번호

댓글 작성자
 



2006-03-14 12시52분
이러한 binding failures 에 대한 캐쉬를 하지 못하도록 설정하는 방법이 configuration 에 제공되고 있습니다.

disableCachingBindingFailures
; http://blogs.msdn.com/junfeng/archive/2006/03/13/550877.aspx
kevin25

1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...
NoWriterDateCnt.TitleFile(s)
825정성태8/23/200710121개발 환경 구성: 110. AutoExNT 도구
824정성태8/16/200710814개발 환경 구성: 109. Code Project Browser Add-In for Visual Studio 2005
823정성태8/16/200713843IIS : 16. 인증서 검증 - CRL 체크 설정
822정성태8/16/200710760TFS : 124. VSTS - Architecture Edition Power Tools - 8월 CTP
821정성태8/15/20079777TFS : 123. TFS 2008의 팀 빌드 관련 소개
820정성태8/14/200711307.NET 3.5 : 28. 한번 더 생각해 보는 C# 3.0 의 개체 초기화 지정자(Object Initializers)
819정성태8/13/200710757TFS : 122. DB Professional - Power Tools 배포
818정성태8/13/200711174VS.NET IDE : 38. Visual Studio 2008 Shell 맛보기 [1]
817정성태8/10/200710903VS.NET IDE : 37. Customising WCF Proxy Generation in Visual Studio 2008
816정성태8/7/200711015TFS : 121. TFS 가이드 최종 버전
815정성태8/7/200710311TFS : 120. Rosario - 개선된 작업항목 추적 기능 [1]
814정성태8/6/200710531TFS : 119. MSBuild 를 이용한 위성 어셈블리 자동 빌드
813정성태7/31/200710677TFS : 118. TeamPlain 의 진화 : Team System Web Access Power Tool
812정성태7/31/200710227TFS : 117. Offline 모드 지원
811정성태7/31/200710668개발 환경 구성: 108. 문서 - AD 서버를 가상 머신으로 운영.
810정성태7/27/200710110TFS : 116. VS.NET 2008 TFS 설치 가이드 (베타)
809정성태7/27/200710679TFS : 115. 인터넷 연결 및 HTTPS 설정
808정성태7/19/200710655TFS : 114. MSF Process Guidance Generator Tool
807정성태7/19/200713930개발 환경 구성: 107. 터미널 서비스에서 꼭 알아야 할 기능 - shadow [1]
806정성태7/15/200710314TFS : 113. TFS 2008 - SharePoint 분리 및 통합 지원
805정성태7/15/200710396TFS : 112. MSBuild 프로젝트 이외의 프로젝트를 빌드
804정성태7/14/200711939TFS : 111. 팀 빌드에서 셋업 프로젝트 연결 [1]
803정성태7/14/200710381개발 환경 구성: 106. 롱혼 터미널 서비스에서의 콘솔 관리
802정성태7/13/200710665TFS : 110. 팀 빌드 - 테스트 결과를 알아내는 MSBuild Task
801정성태7/12/200710791개발 환경 구성: 105. 환경 설정 정보 암호화
800정성태7/10/200712130.NET 3.5 : 27. IQueryable 구현 방법 [3]
1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...