Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9319
글쓴 사람
정성태 (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

... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
800정성태7/10/200712130.NET 3.5 : 27. IQueryable 구현 방법 [3]
799정성태7/6/200710233VS.NET IDE : 36. MSBee 를 이용한 .NET 1.1 용 프로젝트 빌드
798정성태7/4/200710933VS.NET IDE : 35. 업데이트 - Publish Website hotfix for VS 2005 SP1
797정성태7/3/200711129Debug : 21. Image File Execution Options 키 동작 방식 [1]
796정성태7/3/200712614.NET 3.5 : 26. WCF - WebServiceHost
795정성태6/29/200713136Windows Update "사용 약관 읽기" 화면 잘림 현상
794정성태6/29/200711936Visual C++ : 11. Orcas - 마샬링 라이브러리
793정성태6/28/200711908TFS : 109. Daily Build파일 다운로드1
792정성태6/28/200711367개발 환경 구성: 104. Internet Explorer - Local Intranet 판단 옵션
791정성태6/25/200711705TFS : 108. Orcas - Continuous Integration 지원 [1]
790정성태6/24/200711800개발 환경 구성: 103. Internet Explorer 와 관련된 각종 개발 도구들
789정성태6/23/200712299Vista : 47. 비스타에서만 사용가능한 Managed 기능들 (2)
788정성태6/21/200712412개발 환경 구성: 102. Windows환경에서의 OpenSSL설치파일 다운로드1
787정성태6/21/200712101개발 환경 구성: 101. HttpSimulator
786정성태6/21/200712091TFS : 107. Team Build 와 다중 프로젝트 빌드 설정
785정성태6/19/200712965Vista : 46. 탐색기에서의 네트워크 파일 복사가 느린 문제를 해결하는 방법
784정성태6/19/200712051Windows 2008 : 3. 주요 변화 10가지
783정성태6/18/200713397SDK : 10. IERefreshElevationPolicy Win32 API
782정성태6/17/200711729.NET : 60. 프로젝트에서 참조한 Unmanaged DLL 을 GAC 에 배포하는 방법
781정성태6/16/200713358.NET 3.5 : 25. LINQ 와 동적 쿼리
780정성태6/16/200712454개발 환경 구성: 100. Windows 2008 - 터미널 서비스 Drain 모드
779정성태6/15/200712144SDK : 9. Windows SDK 구분하기
778정성태6/13/200712080Web : 1. Silverlight - Programming HTML with C#
777정성태6/13/200711571TFS : 106. Microsoft eScrum Version 1.0
776정성태6/13/200711849.NET 3.0 : 21. WPF 실습 - Outlook 2007 스타일의 응용 프로그램 개발
775정성태6/11/200711963TFS : 105. Visual Studio Team Foundation Server ? Project Server 2007 Connector
... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...