Forum Discussion
Anonymous
4 years agoNot applicable
Programatically connecting to power BI premium workspace using workspace url
Am trying to connect to a Power BI workspace by using the Workspace Connection URL. Below is the code: public static void ConnectToPowerBIAsUser() { string workspaceConnection = "powerbi://api.po...
ozhug
2 years agoAdvocate II
The key here is using the correct libraries
counter-intuitively do not use the Microsoft.AnalysisServices.Tabular library
you need to use these libraries based on your code base.
For .NET Core we need to install those two libraries:
Microsoft.AnalysisServices.NetCore.retail.amd64
Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64
For .NET Framework those two libraries:
Microsoft.AnalysisServices.retail.amd64
Microsoft.AnalysisServices.AdomdClient.retail.amd64