我已经通过Azure门户使用Function应用程序编写了一个手动触发器(在C#中)。 我正在尝试更新SSAS服务器(分析服务器)中的多维数据集。我使用了以下引用和名称空间:
#r "D:\home\site\wwwroot\bin\Microsoft.AnalysisServices.DLL"
#r "D:\home\site\wwwroot\bin\Microsoft.AnalysisServices.AzureClient.dll"
#r "D:\home\site\wwwroot\bin\Microsoft.AnalysisServices.Core.DLL"
using Microsoft.AnalysisServices.AzureClient;
现在从Azure门户运行此功能应用程序时,出现错误[Error]
Exception while executing function: Functions.CubeConnect. mscorlib:
Exception has been thrown by the target of an invocation. System.Data: The
'OLEDB' provider is not registered on the local machine.
当我从Visual Studio 2017中运行时,该c#代码段已成功执行。但是,当我在函数app中使用c#运行相同的代码时,收到此错误。 谁能指导我在这里解决该问题需要做什么?