Microsoft MVP성태의 닷넷 이야기
Whidbey breaking change --- Caching binding failures [링크 복사], [링크+제목 복사],
조회: 12496
글쓴 사람
정성태 (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)
296정성태5/27/200613451WWF 로 만든 Tetris
294정성태5/21/200613527Session State Uses a Reader-Writer Lock
293정성태5/21/200612199Microsoft Threat Analysis & Modeling v2.0 RC1
291정성태5/18/200613529Managed Stack Explorer
289정성태5/17/200614000Microsoft ASP.NET Providers - PDF 메뉴얼
288정성태5/17/200614380TFS Administration Tool 1.0 Released...with Shared Source!
287정성태5/17/200613440An Introduction to 64-bit Installers with Visual Studio 2005: Part 1
283정성태5/15/200613992Windows Workflow Foundation: Running Service Activated Workflows on Windows Vista and IIS7
284정성태5/15/200614188    답변글 Windows Workflow Foundation: Exposing Workflows as Services [1]
281정성태5/12/200612725Microsoft Compute Cluster Pack SDK
280정성태5/11/200616917C# 3.0 : One-Step Object Creation and Initialization
279정성태5/11/200614793Vista에서 제거되는 DHTML Editing Control
278정성태5/11/200613078LINQ CTP - May 2006
286정성태5/16/200612577    답변글 Using LINQ with ASP.NET (Part 1)
277정성태5/9/200612694Web Application Projects - 정식 릴리스
276정성태5/8/200613042SNK 파일 공유하기파일 다운로드1
275정성태5/8/200612813Building Security Awareness in .NET Assemblies
274정성태5/7/200612757QuickSYS파일 다운로드2
273정성태5/7/200613012Developing Firewalls for Windows 2000/XP파일 다운로드1
272정성태5/6/200614967Windows PowerShell [3]
292정성태5/19/200613122    답변글 Windows PowerShell - PowerShell Script to Create a WorkItem
271정성태5/6/200613370MSBee
282정성태5/15/200613188    답변글 MSBee will be on CodePlex
290정성태5/18/200613657    답변글 MSBuild Extras - Toolkit for .NET 1.1 "MSBee"
270정성태5/4/200613404ISO Recorder
269정성태5/4/200613342Visual Studio 2005 Team System Level 200 Course Material
... 31  32  33  34  35  [36]  37  38  39  40  41  42  43  44  45  ...