Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9307
글쓴 사람
정성태 (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)
975정성태10/9/200810672.NET : 88. ClickOnce에서 .application 파일을 다운로드 하려고 할 때.
974정성태10/8/200810689TFS : 168. MSBuild Extension Pack
973정성태10/5/200812355.NET 3.5 : 42. WPF - Web Browser 및 Splash Control 추가
972정성태10/2/200810650TFS : 167. TFS Power Tools 다음 버전 소개
971정성태9/22/200810970TFS : 166. Index cards and Team System
970정성태9/16/200810955Vista : 53. 설치 디스크를 USB 로 만들기
968정성태9/11/200810560XML Conformance Level 에 Fragment 값이 쓰이는 경우.
967정성태9/8/200810689.NET : 87. CertEnroll 개체를 이용한 인증서 요청/반환/설치
966정성태9/2/200810741.NET : 86. .NET Framework 3.5 SP1 소스 코드 공개
965정성태9/2/200811694Vista : 52. SPI(Stateful Packet Inspection) 옵션 제거
964정성태8/18/200812692.NET 3.0 : 24. WPF DataGrid
969정성태9/16/200810965    답변글 .NET 3.0 : 24.1 Editing Tabular Data in WPF - Building a WPF Grid
963정성태7/25/200811753.NET : 85. VPL(Visual Programming Language)를 아세요?
962정성태7/24/200810812TFS : 165. WorkItem 에 대해 Full Text 검색
961정성태7/20/200810757.NET : 84. WCSF Application Architecture
960정성태7/14/200810580.NET : 83. Non Paged CLR Host
959정성태7/7/200811119.NET : 82. Composite Application Guidance for WPF
958정성태7/7/200812284.NET : 81. C# - 왜 모든 함수호출에서 callvirt 를 사용할까?
957정성태6/30/200811263GUID
956정성태6/27/200810778TFS : 164. 팀 프로젝트 간 WorkItem 이동 방법
955정성태6/26/200811290TFS : 163. 삭제된 항목을 소스 컨트롤 탐색기에서 보이도록 하는 방법
954정성태6/20/200810915Debug : 37. IDE 디자인 모드에서의 디버깅 기법
953정성태6/10/200811770.NET : 80. Unity Application Block 소개(?) [1]
952정성태4/28/200811034.NET : 79. IconHandler 2.0
951정성태4/28/200811443SDK : 14. STA / MTA 기원
950정성태4/24/200810542.NET : 78. Ajax View
1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...