我正在学习 Azure 分析服务,我需要构建一个 C# 应用程序来查询 Azure 分析服务上的数据
我很难找到资源,大部分都涵盖 SSAS 而没有应用于 AAS!
现在的最后一次尝试是:
Microsoft.AnalysisServices.Tabular.Server asSrv = new Microsoft.AnalysisServices.Tabular.Server();
asSrv.Connect(@"Password=<password>;Persist Security Info=True;User ID=<email>@hotmail.com;Data Source=asazure://westeurope.asazure.windows.net/<servername>");
例如,这是为了尝试处理数据,但我收到错误:
你调用的对象是空的。
(来源:Microsoft.AnalysisServices.Core)
堆栈跟踪:
at Microsoft.AnalysisServices.HttpStream.ImpersonateLogonIdentityAndExecute(Action action)
at Microsoft.AnalysisServices.HttpStream.GetResponseStream()
at Microsoft.AnalysisServices.HttpStream.GetResponseDataType()
at Microsoft.AnalysisServices.CompressedStream.GetResponseDataType()
at Microsoft.AnalysisServices.XmlaClient.EndRequest(Boolean useBinaryXml)
at Microsoft.AnalysisServices.XmlaClient.CreateSession(ListDictionary properties, Boolean sendNamespaceCompatibility, String sessionToken)
at Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.Core.Server.Connect(String connectionString, String sessionId, ObjectExpansion expansionType)
at Microsoft.AnalysisServices.Core.Server.Connect(String connectionString)
at ConnectToAAS.Form1.button4_Click(Object sender, EventArgs e) in D:\Projects\Azure Analysis Services\ConnectToAAS\ConnectToAAS\Form1.cs:line 150
谁能提供有关如何连接和如何查询的“工作”示例的链接?!
而且我需要在没有弹出登录页面的情况下静默连接。
提前致谢..