Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Method not found: 'Void Microsoft.PowerBI.Api.V2.PowerBIClient..ctor

I am using samle from App Owns Data sample https://github.com/Microsoft/PowerBI-Developer-Samples

 

When I run the application, I am getting error:

Method not found: 'Void Microsoft.PowerBI.Api.V2.PowerBIClient..ctor(System.Uri, Microsoft.Rest.ServiceClientCredentials, System.Net.Http.DelegatingHandler[])'.

 

I tried to resolve it by using solution provided at below link but I am still egtiing the same issue. I am using Visual studio 2017

https://community.powerbi.com/t5/Developer/Method-not-found-Void-Microsoft-PowerBI-Api-V1-PowerBICli...

Status: Needs Info
Comments
Anonymous
Not applicable

@Anonymous,


I make a test using the app owns data sample in Visual Studio 2017, everything works well. Could you please describe more details about what changes you make to the VS code? Do you only enter the following values in web.config file?

clientId 

groupId 

pbiUsername

pbiPassword



Regards,
Lydia

Anonymous
Not applicable
 
Anonymous
Not applicable

@Anonymous

 

Thanks for replying

 

I followed the steps give at:

https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers

 

and specified the details:

applicationId

workspaceId

reportId

pbiUsername

pbiPassword

Web Config file

 

After giving the details and running in VS 2017, this error is coming:

Capture.PNG

Anonymous
Not applicable

@Anonymous,

What is the target framework of your project? I am using .Net framework 4.6.1.

Regards,
Lydia

Anonymous
Not applicable

I am also using .net framework 4.6.1.

Capture.PNG

Anonymous
Not applicable

@Anonymous,


I would recommend you open a ticket in Power BI support site.Support Ticket.gif


Regards,
Lydia

Anonymous
Not applicable

 Hi,

 

I got the same issue.

Any solutions?

 

Thanks,

bern