3

我正在将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>

如何确定丢失的确切文件或此问题的原因以便修复?

谢谢。

4

1 回答 1

1

原来是FSharp.Corenuget包。从升级FSharp.Core.3.1.2.5FSharp.Core.4.0.0.1解决它。我认为该应用程序正在搜索 FSharp 4.4.0.0,而此错误是因为它找到了旧版本。

于 2016-12-14T08:29:45.610 回答