Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 9377
글쓴 사람
정성태 (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)
450정성태9/28/20069610.NET : 16. ADO.NET vNext Entity Data Model Designer Prototype, CTP
449정성태9/28/200610524TFS : 37. Team Foundation Server and Basic Authentication
448정성태9/28/200610090TFS : 36. Moving the Team Foundation Server Data Warehouse to a Separate Server
447정성태10/20/200610214Vista : 10. ASLR이 적용된 Vista
446정성태9/26/200610002개발환경 구성 : 31. Profiling Tool for .NET Developers
445정성태10/20/20069667Windows 2008 : 2. LHS Feature Of The Week #2 - Remote Differential Compression
444정성태10/20/200610228Windows 2008 : 1. LHS Feature Of The Week #1 - Transactional NTFS
443정성태9/23/200610117개발환경 구성 : 30. Tip/Trick: Optimizing ASP.NET 2.0 Web Project Build Performance with VS 2005
442정성태9/28/200610686TFS : 35. 설치 설명서 / 관리자 가이드 도움말 업데이트
441정성태9/21/200611172개발환경 구성 : 29. SQL Server Spec 비교
440정성태10/20/200610565.NET 3.0 : 3. WCF Workshops updated to Release Candidate 1
439정성태9/20/200610558개발환경 구성 : 28. Caml Viewer 2007 : released on Codeplex
438정성태9/20/200610329개발환경 구성 : 27. Enterprise Smart Card Deployment in the Microsoft® Windows® Smart Card Framework
437정성태9/19/200610265TFS : 34. Getting Started with TFS Integrator 파일 다운로드2
434정성태9/20/200610978개발환경 구성 : 26. Developing Web Applications on Windows Vista with Visual Studio 2005
433정성태10/20/200610422Vista : 9. Next Generation TCP/IP Stack
432정성태9/16/200610301TFS : 33. Now Available: Teamprise V2 Preview 2
431정성태9/16/20069943개발환경 구성 : 25. Announcing the Web Client Software Factory
430정성태9/15/200610290.NET : 15. ASP.NET 2.0 - A Preview of Web LINQ - BLINQ
429정성태9/15/20069872The True Cost of .NET Exceptions
428정성태9/15/200611663.NET : 14. IronPython 예제들
427정성태9/14/200611162개발환경 구성 : 24. Smart Start and Stop Service in VS.NET Build
426정성태9/13/200610588TFS : 32. Team Foundation Server Language Change Package
425정성태9/12/200610434TFS : 31. Team Foundation Administrator's Guide (TFSAdmin.chm)
424정성태9/12/200611107Visual C++ : 2. Managed Debugger Expression Evaluator - mcee_mc.dat
422정성태9/8/200611007.NET : 13. An Introduction to LINQ
... 16  17  18  19  20  21  22  23  24  25  26  27  28  29  [30]  ...