Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9314
글쓴 사람
정성태 (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)
875정성태11/9/200710355.NET : 66. 한 눈으로 확인하는 .NET 데이터 액세스 계층
874정성태11/6/200711391Debug : 30. OpenFileDialog 사용시 메모리 사용이 급격하게 올라가는 문제
873정성태11/6/200710471Debug : 29. WinDBG - 명령어 !IToldYouSo
872정성태11/3/200710573Debug : 28. Debugger Visualizer - DynamicMethod / MethodInfo [1]
871정성태10/31/200710793TFS : 141. VS.NET 2008 - 개선된 WorkItem 기능
870정성태10/31/200710458TFS : 140. TFS to TFS Migration Tool
869정성태10/31/200710605.NET : 65. ASP.NET 을 어셈블리 언어로.
868정성태10/30/200710826.NET 3.0 : 23. 카드 스페이스 - SSL 없이도 구현가능.
867정성태10/30/200710730.NET : 64. CAB(Composite Application Block) 에 접근하고 싶으세요?
866정성태10/28/200710664개발 환경 구성: 115. VPC 를 이용한 AD 네트워크 구성
865정성태10/27/200710828.NET : 63. Singleton 패턴 구현
864정성태10/23/200710852TFS : 139. 단위 테스트를 MTA로 실행하도록 설정 [1]
863정성태10/20/200710611VisualNDepend
862정성태10/20/200710115.NET : 62. CAB 성능 향상 팁
861정성태10/20/200710481Debug : 27. SOS 를 이용하여 .NET Finalizer 디버깅
860정성태10/18/200710474TFS : 138. 팀 규모에 따른 물리 서버의 용량
859정성태10/16/200711399개발 환경 구성: 114. Eric Gunnerson 의 WiX 관련 포스트들 [3]
858정성태10/16/200710711.NET : 61. 메서드 안에서 정의된 블록 내부의 변수에 대한 범위
857정성태10/9/200710335TFS : 137. 특정 버전의 소스로 팀 빌드하는 방법
856정성태10/8/200711717.NET 3.5 : 32. ReaderWriterLock 과 ReaderWriterLockSlim 의 성능 비교.
855정성태10/5/200710463개발 환경 구성: 113. Virtual PC - 처음 생성한 VHD 파일의 크기를 바꿀 수 있을까?
854정성태10/3/200710332TFS : 136. Operations Guidance for Team Foundation Server
853정성태10/2/200710721.NET 3.5 : 31. ToJSON 확장 메서드 구현
852정성태9/30/200711848IIS : 18. IIS 7.0 의 FTP 서비스를 위한 방화벽 설정
851정성태9/27/200710885TFS : 135. TFS 2008 용 빌드 알림 도구
850정성태9/26/200710162TFS : 134. Visual Studio Team System Web Access 2008 파워툴 CTP
1  2  3  4  5  6  7  8  9  10  11  12  [13]  14  15  ...