2012-05-30 2 views
2

타사 DLL을 사용하고 있습니다. DLL에 강력한 이름이 없어서 서명했습니다. 서명 한 DLL을 내 애플리케이션의 레이아웃 매핑 된 폴더에 붙여 넣고 참조를 추가했습니다. 런타임 동안 나는이 DLL에 대한 예외가 발견되지 않았습니다. fuslogvw를 사용하여 어셈블리 바인드 실패 로그를 추적했습니다. 나는 아래에 붙일 것이고 친절하게 나를 안내 할 것이다. 나는 초보자이다. 닷넷제 3 자 dll에 대한 어셈블리 바인딩 실패

*** Assembly Binder Log Entry (5/30/2012 @ 5:12:13 PM) *** 

The operation failed. 
Bind result: hr = 0x80070002. The system cannot find the file specified. 

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll 
Running under executable c:\windows\system32\inetsrv\w3wp.exe 
--- A detailed error log follows. 

=== Pre-bind state information === 
LOG: User = NT AUTHORITY\NETWORK SERVICE 
LOG: DisplayName = ExcelLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b182d73c05ed7959 
(Fully-specified) 
LOG: Appbase = file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/ 
LOG: Initial PrivatePath = C:\inetpub\wwwroot\wss\VirtualDirectories\2000\bin 
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4782bf2e 
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4782bf2e 
LOG: AppName = cf0ac865 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\inetpub\wwwroot\wss\VirtualDirectories\2000\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. 
LOG: GAC Lookup was unsuccessful. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary/ExcelLibrary.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary.EXE. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/4782bf2e/cf0ac865/ExcelLibrary/ExcelLibrary.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/bin/ExcelLibrary/ExcelLibrary.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/2000/_app_bin/ExcelLibrary/ExcelLibrary.EXE. 
LOG: All probing URLs attempted and failed. 

답변

1

64 비트 시스템에서 32 비트 타사 네이티브 DLL을 바인딩하려는 것처럼 보입니다. DLL의 x64 버전을 등록하거나 x86 대상에 맞게 컴파일 할 프로젝트를 변경하십시오.

+0

x64 버전의 DLL을 등록하는 방법을 알려주시겠습니까? –

+0

우선, 정확한 구성을 알려줘야합니다. "AnyCPU"대상 프로젝트를 구축하고 있습니까? 시스템이 64 비트입니까? 제 3 자 DLL에 대한 정보가 있습니까? CFFExplorer를 사용하여 32 비트인지 64 비트인지 확인하십시오. 더군다나 DLL 자체는 기본 라이브러리 또는 관리되는 어셈블리입니까? –

+0

"AnyCPU"를 구축 중이며 시스템이 64 비트입니다. 나는 제 3 자 dll을 많이 알지 못한다. 이 DLL은 http://code.google.com/p/excellibrary/를 사용하고 있습니다. –

관련 문제