Hi Everyone,
We are experiencing an exception while establishing connection with OfflineCube (.cub) by Microsoft.AnalysisServices.ADOMDClient assembly in following machine configuration.
Machine Configuration:
OS - Windows10 (64 bit)
VS Version VS2015
Installed Framework Version v4.0 to v4.6 (which is installed automatically while installing VS2015)
Code Snippet:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MASAC = Microsoft.AnalysisServices.AdomdClient; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MASAC.AdomdConnection adomdConnectionObjMain = null; adomdConnectionObjMain = new MASAC.AdomdConnection(@"Data Source=D:\OfflineCube\Adventure_Works_Ext.cub; Provider=MSOLAP;"); adomdConnectionObjMain.Open(); var temp11 = adomdConnectionObjMain; string temp3 = "SELECT NON EMPTY ({{Hierarchize({[Customer].[Customer Geography].[Country]})} * {[MEASURES].[Internet Sales Amount]}} ) ON COLUMNS, NON EMPTY ({{Hierarchize({[Date].[Fiscal].[Fiscal Year]})}} ) ON ROWS FROM [Adventure Works]"; Microsoft.AnalysisServices.AdomdClient.CellSet set = new Microsoft.AnalysisServices.AdomdClient.AdomdCommand(temp3, adomdConnectionObjMain).ExecuteCellSet(); Console.ReadLine(); adomdConnectionObjMain.Close(); } } }
Note: Method named Open() in AdomdConnection of ADOMDClient assembly throws the exception.
Exception Message:
MessageBox with following message:
Could you please any one help me to avod this exception without installing .NetFramework v3.5?
Thanks and Regards...