(AzureのActive Directoryの認証を使用するように)とgetOwinBuilder.GetAppStartupエラー "ファイルまたはアセンブリを読み込めませんでした" - アセンブリが呼び出された場所を見つける方法?私は既存のAsp.Net WebフォームプロジェクトにMicrosoft.Owin.Host.SystemWebを追加しました
[にFileNotFoundException:ファイルまたはアセンブリ をロードできませんでした「PostSharp .Sdk、Version = 2.1.0.0、Culture = neutral、 PublicKeyToken = b13fd38b8f9c99d7 'またはその依存関係の1つ。 システムは、指定されたファイルを見つけることができません。]
System.ModuleHandle.ResolveType(RuntimeModuleモジュールのInt32 typeToken、 のIntPtr * typeInstArgs、のInt32 typeInstCount、のIntPtr * methodInstArgs、 のInt32 methodInstCount、ObjectHandleOnStack型)+0
System.ModuleHandle .ResolveTypeHandleInternal(RuntimeModuleモジュール、 のInt32 typeToken、RuntimeTypeHandle [] typeInstantiationContext、 RuntimeTypeHandle [] methodInstantiationContext)191
System.Reflection.RuntimeModule.ResolveType(のInt32 metadataToken、 タイプ[] genericTypeArgumentsは、[] genericMethodArgumentsを入力)162
System.Reflectio n.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord、MetadataImportスコープ、アセンブリ& lastAptcaOkAssembly、 RuntimeModule decoratedModule、MetadataToken decoratedToken、 RuntimeType attributeFilterType、ブールmustBeInheritable、オブジェクト[] 属性、IListのderivedAttributes、RuntimeType &とattributeType、 IRuntimeMethodInfo & CTOR、ブール& ctorHasParameters、ブール& isVarArg)148
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule、のInt32 decoratedMetadataToken、のInt32 pcaCount、 RuntimeType attributeFilterType、ブールmustBeInheritable、IListの derivedAttributes、ブールisDecoratedTargetSecurityTransparent)604 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly アセンブリ、RuntimeType caType)144
Owin.Loader.DefaultLoader.SearchForStartupAttribute(文字列 フレンドリーネーム、のIList1 errors, Boolean& conflict) +189
1つのエラー)68
Owin.Loader.DefaultLoader.GetDefaultConfiguration(String friendlyName, IList
Owin.Loader.DefaultLoader.LoadImplementation(文字列startupName、 のIList1 errorDetails) +89 Owin.Loader.DefaultLoader.Load(String startupName, IList
1 errorDetails)+30
Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup()165
Microsoft.Owin.Host .SystemWeb.OwinHttpModule .InitializeBlueprint()37 System.Threading.LazyInitializer.EnsureInitializedCore(T &ターゲット、 ブール&を初期化、& syncLock、Func`1 ValueFactoryのオブジェクト)137
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(のHttpApplication コンテキスト)172
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(のIntPtr AppContextを、コンテキストのHttpContext、METHODINFO []ハンドラ)618
System.Web.HttpApplication.InitSpecial(HttpApplicationState状態、 METHODINFO []ハンドラのIntPtr AppContextを、HttpContext context)+172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext、HttpContextコンテキスト)+402
System.Web.Hosting.PipelineRuntime。InitializeApplication(のIntPtr AppContextを)343私はOwin.Loader.DefaultLoader.SearchForStartupAttributeは、リフレクションを使用して、いくつかの属性をロードできませんでし理解し、それはそれはスキャンして、それがどこに位置している属性を報告しませんので
。
私たちのプロジェクトでは、キャッシングとロギングにPostSharpを使用していますが、知っている限り私たちはversion = "4.3.21"を使用していますが、属性は "3.0.26.9"を参照していますが、私は "PostSharp.Sdk"のソースコードを検索しましたが、参照は見つかりませんでした。
JetBrainを使用した逆アセンブルのクイックルックDotPeekでは、PostSharp.Sdkへの参照も表示されませんでした。バージョン= 2.1は非常に古いことに注意してください。
http://support.sharpcrafters.com/discussions/problems/2275-postsharp-is-not-compatible-with-microsoftowinsecurity-latest-versionとissue with PostSharp cannot find assembly for system.web.mvc, version=3.0.0.0 when no projects reference itのような類似したリンクがありますが、逆の問題があります。PostSharpはMVCまたはOwinのDLLを解決できませんでした。
誰でもどの属性(およびどのクラス)がPostSharp.Sdkを参照しているかを特定する方法はありますか?
SearchForStartupAttributeはカスタムアトリビュートのためにアセンブリをスキャンし、見つかったものすべてをログに記録します。 これ以上の簡単なアイデアはありますか?オープンソースへ
ex.InnerExceptionの不運? – Zen