我们目前将一个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多维数据集或提供解决方法?
答案 0 :(得分:2)
看起来Azure网站上没有安装OLAP提供程序。尝试使用Web角色或VM,因为这将允许您安装驱动程序或尝试配置XMLA HTTP访问
答案 1 :(得分:0)
JuneT建议尝试配置XMLA HTTP访问,这对我们的场景非常有效。
关于我们解决这个问题的其他一些细节。
OLAPDataProvider
属性设置为Xmla
。如果不这样做,网格仍将尝试使用MSOLAP提供程序。