c# - 从 Azure 网站连接到 SSAS 多维数据集

标签 c# asp.net azure devexpress

我们目前有一个 Web 应用程序设置为 Azure 网站,并在 Azure 虚拟机上安装了 SSAS 服务器。

在我们的 Web 应用程序中,我们使用 DevExpress ASP.NET Pivot Grid,并设置网格以使用以下格式的 MSOLAP 提供程序的 OLAP 连接字符串:

provider=MSOLAP.4;data source=VM;user id=VM\USER;password=PASSWORD.;initial catalog=CUBEDB;cube name=CUBENAME

连接字符串在我们的本地开发环境中有效,但在 Azure 中引发以下异常:

System.InvalidOperationException

The 'MSOLAP.4' provider is not registered on the local machine.

   at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OleDb.OleDbConnection.Open()
   at DevExpress.XtraPivotGrid.Data.OleConnection.DevExpress.XtraPivotGrid.Data.IOLAPConnection.Open()
   at DevExpress.PivotGrid.OLAP.OLAPMetadata.OpenConnection(IOLAPConnection connection)
   at DevExpress.PivotGrid.OLAP.OLAPMetadata.ConnectCore()

经过一个小时的搜索,我们找不到任何信息来解决此问题。

任何人都可以确认是否可以直接从 Azure 网站连接到 SSAS 多维数据集或提供解决方法吗?

最佳答案

Azure 网站上似乎未安装 OLAP 提供程序。尝试使用 Web 角色或 VM,因为这将允许您安装驱动程序或尝试配置 XMLA HTTP 访问

关于c# - 从 Azure 网站连接到 SSAS 多维数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21421090/

相关文章:

通过 AZURE JAVA SDK 访问 Azure 服务总线 SAS

node.js - 如何从Azure Function以二进制数据形式返回base64图像

c# - 正则表达式选择子字符串的模式

c# - 使用 LINQ 从 XML 中提取属性

c# - 如何生成[0,1]范围内的随机双数?

c# - 无法在 GridView 上设置单元格颜色

asp.net - 在 ASP.NET MVP 应用程序中的 Presenter 中注入(inject)较低层依赖项

php - JavaScript - 赋值 - 数组的数组

Azure服务总线: Can't add rules to a subscription under Topics with partitioning enabled?

c# - WPF 网格上的底部边框