.NET 4.5は.NET 4と下位互換性があります。.NET 4.5とVS 11をインストールして新しいASPを作成しました。 NET MVC 4 Web APIプロジェクト。私は私のウェブAPIプロジェクトにCastle.ActiveRecord.dll(バージョン3.0.0.0)を参照すると、すべてのコントローラのアクションは、このエラーが発生します。Castle.ActiveRecord.dllはASP.NET MVC 4 Web APIと互換性がありません
[FileNotFoundException: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=45b1dda587cdc860' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
System.Reflection.RuntimeAssembly.GetExportedTypes() +49
System.Web.Http.Dispatcher.HttpControllerTypeCacheUtil.FilterTypesInAssemblies(IBuildManager buildManager, Predicate`1 predicate) +210
System.Web.Http.Dispatcher.HttpControllerTypeCache.InitializeCache() +119
System.Web.Http.Dispatcher.HttpControllerTypeCache..ctor(HttpConfiguration configuration) +69
System.Web.Http.Services.DefaultServiceResolver.<.ctor>b__0(HttpConfiguration config) +241
System.Web.Http.Services.DefaultServiceResolver.GetService(Type t) +80
System.Web.Http.DependencyResolverExtensions.GetService(DependencyResolver resolver) +201
System.Web.Http.DependencyResolverExtensions.GetServiceOrThrow(DependencyResolver resolver) +60
System.Web.Http.Dispatcher.HttpControllerDispatcher..ctor(HttpConfiguration configuration) +65
System.Web.Http.GlobalConfiguration.<.cctor>b__1() +64
System.Lazy`1.CreateValue() +13589652
System.Lazy`1.LazyInitValue() +476
System.Web.Http.WebHost.HttpControllerHandler.<.cctor>b__b() +53
System.Lazy`1.CreateValue() +455
System.Lazy`1.get_Value() +13590694
System.Web.Http.WebHost.HttpControllerHandler.BeginProcessRequest(HttpContextBase httpContextBase, AsyncCallback callback, Object state) +224
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +444
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +354
は、これは、私が読んだものから面白いです。バージョン2.3.1.3はLucene(Java)バージョンであり、Lucene.Netバージョンではありません。私は確かにNuGetをチェックし、Lucene.Netには2.3.1.3のバージョンはありません。
何がありますか?私は、ASP.NET MVCとWCF Web APIについて私が気に入っているものをブレンドするので、新しいASP.NET MVC 4 Web APIプロジェクトを使いたいと思っています。どのようにこの問題を回避するための任意のアイデアですか?
残念ながら、dllリンクは壊れています。 – Ernesto