Azure WebJob 不再在门户中获取 Entity Framework 连接字符串设置

Azure WebJob no longer picking up Entity Framework connection string setting in portal

我有一个 Azure WebJob 运行ning 至少两年没有任何问题。 app.config 包含以下...

<connectionStrings>
    <add name="UniversalModelEntities" connectionString="dummy - the actual connection string is specified in the portal but for some reason we need this element here" providerName="System.Data.EntityClient" />  
</connectionStrings>

并且在门户的应用程序设置中我有...

这 运行 没有任何问题...直到今天早上我发现了错误

The connection string 'UniversalModelEntities' in the application's configuration file does not contain the required providerName attribute."

我在 Azure 门户中发现的关于 Entity Framework 连接字符串的所有内容都表明我应该将该下拉菜单设置为 Custom

那么问题是什么?

此外,我发现即使在app.config中声明了完整的连接字符串,我仍然得到相同的错误消息,这表明问题出在门户设置上。

我设法通过将连接字符串的 drop-down 选项设置为 SQLAzure...

来解决这个问题

...这显然会导致错误,然后将其改回 Custom...

现在 WebJob 可以正确获取连接字符串。