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

... 31  32  33  34  35  36  37  38  39  40  41  42  43  [44]  45  ...
NoWriterDateCnt.TitleFile(s)
92정성태5/5/200510005XP SP2 방화벽에 대한 내용을 정라한 블로그 소개
91정성태5/5/200510622구글 맵 ( Microsoft MapPoint 수준 )
90정성태4/21/200510482Virtual Server 2005 SP1 beta
89정성태4/1/20051050464bit Windows 2003(x64) , 32bit Windows 2003 SP1 배포
88정성태3/31/200510038HTML to XHTML
87정성태3/31/200510768NewSID : Ghost / VPC 등으로 복제된 컴퓨터의 SID 를 변경
86정성태3/31/200510135Push and Run .NET Code on Remote Machine
84정성태3/25/20059557NET Framework v2 Beta 2 Obsolete APIs
83정성태3/25/200510065서버 운영체제 라이센싱 및 지원 비용 비교 보고서파일 다운로드1
80정성태3/22/200511035VS.NET 2005 가격정책
82정성태3/24/200510607    답변글 VS.NET 2005, SQL 2005 출시 연기
78정성태3/21/200511187ASP.NET
77정성태3/13/200510841Virtual Server : COM 개체로 다루기
75정성태3/9/20059908C# to Visual Basic.NET Translation Tool
79정성태3/22/200510310    답변글 PHP ompiler for .NET Framework
81정성태3/23/20059959    답변글 Microsoft Java Language Conversion Assistant 3.0 beta
85정성태3/27/200510496    답변글 Convert VBA Code to Visual Basic .NET When Migrating to Visual Studio 2005 Tools for Office
74정성태3/9/20059973Internet Explorer 7 곧 출시 예정
73정성태3/4/200510475Developing Solutions with Microsoft InfoPath - Companion Content
72정성태3/4/200510654레지스트리 Control Set 과 CurrentControlSet 의 의미.
71정성태3/4/20059611환경 변수를 등록 후에 시스템에 알리는 방법
70정성태3/4/200510805.NET Tools: Ten Must-Have Tools Every Developer Should Download Now [1]
69정성태3/3/20059650SQL Server 2005 - beta 3
67정성태4/1/200510858스마트 클라이언트 외부 자료 링크
66정성태2/19/20059705오라클 DB 를 Microsoft SQL Server 로 마이그레이션 하기파일 다운로드1
65정성태2/15/200510504Office 2003: XML Reference Schemas
... 31  32  33  34  35  36  37  38  39  40  41  42  43  [44]  45  ...