Azure功能:应用程序冻结 - 错误消息中的“UnableToLoadExpressionAssembly”

时间:2018-02-13 09:54:01

标签: azure-functions azure-functions-runtime

我有一个Azure Functions应用程序,偶尔会“冻结”并停止处理消息和定时事件。

当发生这种情况时,我在日志(AppInsight)中看不到太多,除了以下错误消息告诉我“UnableToLoadExpressionAssembly”:

timestamp [UTC]: 2018-02-13T09:18:19.609Z
message: UnableToLoadExpressionAssembly
severityLevel: 3
customDimensions:
    LogLevel: Error
    prop__{OriginalFormat}: UnableToLoadExpressionAssembly
    Category: Host.Startup
client_Type: PC
client_IP: 0.0.0.0
cloud_RoleName: (...)
cloud_RoleInstance: (...)
appId: (...)
appName: (...)
iKey: (...)
sdkVersion: azurefunctions: 1.0.11510.0
itemId: e5362c17-109e-11e8-93fc-0f54eb87135a
itemType: trace
itemCount: 1

这里出了什么问题?

1 个答案:

答案 0 :(得分:0)

问题是由于未使用启动触发器同步的部署机制引起的,这会阻止基础结构在需要时激活功能应用程序。

使用CI / CD集成,Visual Studio,MSDeploy或ZIP部署的部署将触发该同步,并确保在需要时激活您的功能应用程序。