简体   繁体   English

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

[英]Connecting to SSAS cube from Azure website

We currently have a web application set up as an Azure web site and a SSAS server installed on an Azure virtual machine. 当前,我们已将Web应用程序设置为Azure网站,并在Azure虚拟机上安装了SSAS服务器。

In our web application, we are using the DevExpress ASP.NET Pivot Grid and have setup the grid to use an OLAP connection string with MSOLAP provider in the following format: 在我们的Web应用程序中,我们正在使用DevExpress ASP.NET数据透视表网格,并已设置网格以将OLAP连接字符串与MSOLAP提供程序一起使用,格式如下:

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

The connection string works in our local development environment but throws the following exception in Azure: 连接字符串在我们的本地开发环境中有效,但在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()

After searching for a hour now, we are unable find any information to resolve this issue. 现在搜索一个小时后,我们找不到任何信息来解决此问题。

Can anyone confirm whether it is possible to connect to SSAS cube directly from Azure web sites or provide an workaround? 谁能确认是否可以直接从Azure网站连接到SSAS多维数据集或提供解决方法?

looks like the OLAP provider is not installed on Azure Websites. 好像OLAP提供程序未安装在Azure网站上。 try using Web Role or VM since that would allow you to install the driver or try to configure XMLA HTTP access instead 请尝试使用Web角色或VM,因为这将允许您安装驱动程序或尝试配置XMLA HTTP访问

JuneT's suggestion to try configuring XMLA HTTP access works perfectly for our scenario. JuneT的尝试配置XMLA HTTP访问的建议非常适合我们的方案。

Some additional details on we go about solving this problem. 关于我们解决此问题的一些其他详细信息。

  1. Configured XMLA access based on these instructions: http://technet.microsoft.com/en-us/library/gg492140.aspx 根据以下说明配置的XMLA访问: http : //technet.microsoft.com/zh-cn/library/gg492140.aspx
  2. Set OLAPDataProvider property on the DevExpress PivotGrid to Xmla . 将DevExpress PivotGrid上的OLAPDataProvider属性设置为Xmla If you don't do this, the grid will still try to use the MSOLAP provider. 如果您不这样做,则网格仍将尝试使用MSOLAP提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM