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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yuezhe-msft
Employee

@pankaj_gupta3,


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

v-yuezhe-msft
Employee
Status changed to: Needs Info
 
pankaj_gupta3
Regular Visitor

@v-yuezhe-msft

 

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

v-yuezhe-msft
Employee

@pankaj_gupta3,

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

Regards,
Lydia

pankaj_gupta3
Regular Visitor

I am also using .net framework 4.6.1.

Capture.PNG

v-yuezhe-msft
Employee

@pankaj_gupta3,


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