Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9378
글쓴 사람
정성태 (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)
675정성태3/7/20079483Debug : 9. 실행 시 IL 코드 교체 프로파일러
674정성태3/7/200710006.NET 3.5 : 6. Orcas 3월 CTP 에 포함된 LINQ to Entities 예제 문제 수정
673정성태3/7/200710184VS.NET IDE : 22. XML 편집시 XSD 를 이용한 인텔리센스 제공
672정성태3/7/200710307개발 환경 구성: 84. Vista에서 ClickOnce 배포 환경 설정
671정성태3/6/200710319개발 환경 구성: 83. 지문 인식기 관련 프로그래밍
670정성태3/6/20079751개발 환경 구성: 82. Virtual PC 2007의 Vista에 대한 사운드 지원
669정성태3/6/20079813VS.NET IDE : 21. Orcas - 프로젝트 속성창 버그
668정성태3/6/20079721개발 환경 구성: 81. 소프트웨어적으로 Raid 0, 1, 5 구성하는 방법
667정성태3/6/20079622TFS : 86. Orcas에서 변화된 TFS Workspace 관리 방식 3가지
666정성태3/2/20079703VS.NET IDE : 20. Orcas - 스크립트 디버깅 기능 향상
665정성태3/1/200710172.NET 3.5 : 5. 새롭게 추가된 네트워킹 기능
664정성태3/1/20079900VS.NET IDE : 19. Visual Studio Code Metrics
663정성태3/1/200710048VS.NET IDE : 18. Orcas에 포함된 새로운 웹 폼 디자이너
662정성태3/1/200710861Office : 1. Visio 로 UI 프로토타입 설계
661정성태3/1/20079921TFS : 85. Visual Studio Team System Guidance
660정성태2/27/20079484.NET : 54. EntLib 3.0 의 새로운 AppBlock - Policy Injection
659정성태2/25/200710551개발 환경 구성: 80. 새로운 버전의 FxCop 을 빌드 과정에 포함
658정성태2/25/200710411TFS : 84. FxCop 사용자 정의 룰을 위한 단위 테스트 설정
657정성태2/23/200710479Vista : 39. 2초 내에 Resume이 되도록 환경 설정
656정성태2/21/200710615Vista : 38. 개발자를 위한 UAC 관련 문서
655정성태2/21/200710316개발 환경 구성: 79. MSSQL Reporting Service 구성
654정성태2/21/20079714.NET 3.0 : 14. System.IdentityModel.Selectors.CardSpaceSelector 클래스 소개
653정성태2/21/20079790TFS : 83. 팀 빌드 과정에 ClickOnce 빌드 포함
652정성태2/19/200710556개발 환경 구성: 78. FastCGI를 이용하여 Ruby on Rails 를 IIS 에서 구동
651정성태2/18/200710215Vista : 37. x64 - 바이오스 업데이트
650정성태2/17/200710044TFS : 82. ASP.NET - Team Build 후에 파일 복사
... 16  17  18  19  20  [21]  22  23  24  25  26  27  28  29  30  ...