2011-12-14 2 views
2

기본 캐시 진단을 수행하기 위해 응용 프로그램에 ServerAppFabric.Client.1.0.2912를 포함 시켰습니다. 캐시 API를 사용하려고하면이 예외가 발생합니다.Nuget 패키지 ServerAppFabric.Client를 사용할 때 시스템에서 Microsoft.ApplicationServer.Caching.Core.resources.dll을 찾을 수 없습니다.

Caught unhandled exception: System.TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.ConfigManager' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35' or one of its 
dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\src\Frank\Mischief\bin\Microsoft.ApplicationServer.Caching.Core.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35.dll' or one of its dependencies. The system cannot find the file specified. 
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) 
    at System.Reflection.Assembly.LoadFrom(String assemblyFile) 
    at Habanero.Commands.AppFabric.CacheDirCommand.<>c__DisplayClass9.<GetResolverForPath>b__8(Object o, ResolveEventArgs args) in C:\src\Habanero\Habanero\Commands\AppFabric\CacheDirCommand.cs:line 84 
    at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) 

리소스 DLL을 찾는 데 도움이되는 방법에 대한 의견이 있으십니까? 그것의하지 nuget 패키지에 ...

내가 사용하고있어 nuget 패키지 (http://nuget.org/packages/ServerAppFabric.Client/1.0.2912) 다음 DLL을 함께 제공 :

Microsoft.ApplicationServer.Caching.Client.dll 
Microsoft.ApplicationServer.Caching.Core.dll 
Microsoft.WindowsFabric.Common.dll 
Microsoft.WindowsFabric.Data.Common.dll 
+0

ServerAppFabric.Client 어셈블리의 출처는 어디입니까? 그게 하바네로 일인가요? – PhilPursglove

+0

그 너겟 패키지, 직접 링크 : http://nuget.org/packages/ServerAppFabric.Client/1.0.2912. 질문에 포함 된 DLL을 나열 해 보겠습니다. –

+0

전에 Nuget 패키지를 보지 못했습니다. 감사합니다. AppFabric 1.1을 설치 했습니까? – PhilPursglove

답변

0

이 NuGet과 비슷한 문제가 있습니다. 이 패키지는 네 개의 DLL을 설치하지만 그들 중 상위 두 개의 참조 : enter image description here

MSBuild에서 아마 그들을 두 상단에 사용됩니다에서 종류를 감지하여, bin 폴더에 두 개의 다른 참조를 복사하지만, 다른 배포 도구 할 수 없다.

bin 폴더에 4 개의 참조가 모두 있는지 확인하십시오.

관련 문제