0

何ヶ月も機能しているAzureクラウドサービスにMVC4アプリをデプロイしています。突然アプリが動作を停止し、匿名アクセスを許可するページに401エラーが表示されます。イベントログを掘り下げると、次のことがわかります。

<EventData>
 <Data>System.AppDomain/50824127</Data>
 <Data>System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. at System.Web.Hosting.ApplicationManager.GetUpdatedTotalCacheSize(Int64 sizeUpdate) at System.Web.Hosting.ObjectCacheHost.System.Runtime.Caching.Hosting.IMemoryCacheManager.UpdateCacheSize(Int64 size, MemoryCache memoryCache) at System.Runtime.Caching.CacheMemoryMonitor.GetCurrentPressure() at System.Runtime.Caching.MemoryMonitor.Update() at System.Runtime.Caching.MemoryCacheStatistics.CacheManagerThread(Int32 minPercent) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading._TimerCallback.PerformTimerCallback(Object state)</Data>
 <Data>w3wp</Data>
 <Data>2548</Data>
 </EventData>

何時間にもわたるトラブルシューティングと構成の検査の後、これが発生する理由を理解できません。アセンブリMicrosoft.IdentityModel3.5.0.0は、展開パッケージのbinフォルダーにあり、プロジェクトにはWIFnugetパッケージへの正しい参照があります。

さらに悪いことに、私のプロジェクトは1つのAzureクラウドサービスでは機能しますが、別のサービスでは機能しません(上記のように失敗します)。メンバー「Microsoft.IdentityModel.Claims.ClaimsPrincipal、Microsoft.IdentityModel」のタイプが解決されないなど、関連する質問の数は限られているようですが、これは開発者ワークステーションでのsitefinityの実行に関係しています。クラウドにあります。

何か案は?

4

1 に答える 1