Сужение ошибки FileLoadException в Azure

Я развертываю Suave приложение к Azure web app, Приложение не удалось с ошибкой ниже (найдено в eventlog.xml).

<Event>
    <System>
        <Provider Name=".NET Runtime"/>
        <EventID>1026</EventID>
        <Level>0</Level>
        <Task>0</Task>
        <Keywords>Keywords</Keywords>
        <TimeCreated SystemTime="2016-12-13T22:59:39Z"/>
        <EventRecordID>-2049111390</EventRecordID>
        <Channel>Application</Channel>
        <Computer></Computer>
        <Security/>
    </System>
    <EventData>
        <Data>
            Application: App.exe
            Framework Version: v4.0.30319
            Description: The process was terminated due to an unhandled exception.
            Exception Info: System.IO.FileLoadException

            Exception Info: System.IO.FileLoadException
               at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
               at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])
               at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])
               at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)
               at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)
               at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)
               at System.Reflection.RuntimeAssembly.GetCustomAttributes(System.Type, Boolean)
               at System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
               at System.AppDomain.GetTargetFrameworkName()
        </Data>
    </EventData>
</Event>

Как определить точный файл, который отсутствует, или причину этой проблемы, чтобы ее можно было исправить?

Благодарю.

1 ответ

Оказалось, что это был FSharp.Core пакет Nuget. Обновление с FSharp.Core.3.1.2.5 в FSharp.Core.4.0.0.1 решил это. Я думаю, что приложение искал FSharp 4.4.0.0 и эта ошибка была, потому что он нашел более старую версию.

Другие вопросы по тегам