Create a v2 http trigger locally
Azure Functions Core Tools (2.1.725) Function Runtime Version: 2.0.12134.0
Get credential and new a PowerBIClient to get related info.
Packages installed
Trigger function, error happens at this line
var client = new PowerBIClient(new Uri(apiUrl), tokenCredentials).
System.Private.CoreLib: Exception while executing function: Function2. Microsoft.Rest.ClientRuntime:
Could not load file or assembly 'System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. System.Private.CoreLib: Could not load the specified file.
Repro steps
Create a v2 http trigger locally
Azure Functions Core Tools (2.1.725) Function Runtime Version: 2.0.12134.0
Get credential and new a PowerBIClient to get related info. Packages installed
Trigger function, error happens at this line
var client = new PowerBIClient(new Uri(apiUrl), tokenCredentials)
.