Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9391
글쓴 사람
정성태 (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)
599정성태1/21/200710119Vista : 29. UAC 와 보안 데스크탑
598정성태1/21/20079393VS.NET IDE : 16. Orcas 2월 CTP 소식 - Sapphire 프로젝트
604정성태1/23/20079414    답변글 VS.NET IDE : 16.1 Sapphire가 결합된 Orcas 미리 보기
597정성태1/24/20079219.NET : 49. Enterprise Library 3.0 2007년 1월 CTP
596정성태1/20/20079927Visual C++ : 7. ATL Server 공유 소스 프로젝트로 공개(계획)
595정성태1/19/200711320Vista : 28. Windows Eventing 6.0과 관련된 토픽 모음 [2]
593정성태1/18/200710144개발 환경 구성: 68. Dotfuscator Stack trace decoding tool
592정성태1/18/200711069IIS : 8. 기본 문서 동작 방식
591정성태1/18/200710001.NET 3.5 : 2. Orcas CTP에서 소개되는 새로운 암호화 관련 클래스
590정성태1/17/200710267.NET 3.5 : 1. Orcas Jan CTP 에서 간단한 Linq 프로그램 시작
589정성태1/17/200710077Visual C++ : 6. VC 8.0 런타임 설치 여부
588정성태1/16/20079781Vista : 27. 비스타 용 응용 프로그램 개발 관련 문서
587정성태1/16/200710150Vista : 26. 시작 프로그램에 등록되는 응용 프로그램 마이그레이션
586정성태1/16/20079870TFS : 65. Areas, Iterations, and Subscriptions
585정성태1/16/20079538.NET : 48. Java 와 .NET 의 보안 측면을 비교한 문서 [2]
584정성태1/15/20079868.NET : 47. PInvoke 함수에 대한 적절한 보안 적용
583정성태1/10/20079429Debug : 6. MDbg 관련 자료 링크 모음
582정성태1/10/20079283.NET 3.0 : 11. Windows CardSpace Hads on Lab
581정성태1/10/20079328.NET : 46. Validation Application Block (Enterprise Library 3.0)
594정성태1/18/20079727    답변글 EntLib 3.0 1월 CTP - Validation Application Block
580정성태1/9/20079854TFS : 64. 명령행에서 프록시 서버 지정
579정성태1/9/20079534TFS : 63. Area 의 정의
578정성태1/8/200710078Vista : 25. 비스타 멀티 부트
577정성태1/5/20079761VS.NET IDE : 15. 사용팁 몇 가지
576정성태1/5/20079577.NET : 45. internal 접근자보다 더 안전하게 보호하는 방법
575정성태1/4/20079887TFS : 62. Doing an Incremental Get in Team Build
... 16  17  18  19  20  21  22  23  [24]  25  26  27  28  29  30  ...