我正在学习Azure Analysis Services,我需要构建一个C#应用程序来查询Azure Analysis Services上的数据
我很难找到资源,大部分都是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
任何人都可以为“工作”示例提供如何连接以及如何查询的链接?!
我需要在没有弹出登录页面的情况下静默连接。
提前致谢..
答案 0 :(得分:0)
我在C中搜索dll:我自己驱动,将它们复制到bin目录并引用它们,它可以工作!!!
现在的问题是如何在不提示Microsoft帐户登录的情况下进行身份验证