You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing issue while creating search client though it worked perfectly fine when I run locally.
I get below same error When I run function after publishing to Azure at
var indexClient = new SearchIndexClient("xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxx",
new SearchCredentials("xxxxxxxxxxx"));
Error:
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.
I have tried all the version of azure search but still not working.
Current nuget version:
Microsoft.Azure.Search : 5.0.0
Microsoft.NET.Sdk.Functions : 1.0.13
The text was updated successfully, but these errors were encountered:
Unfortunately I don't find any way, I tried to work with PowerBIClient before, it leverages this assembly internally as well. The assembly can't even be loaded correctly in a simple .Net Core console app.
If it's supported by .NET Core 2.1 it should work in your function. However in this case it sounds like you are trying to leverage an assembly that isn't supported by .NET Core 2 which would be unsupported in v2 as it uses .NET Core to run. May be best to track the ask with the Azure Search SDK to provide a .NET Core compatible SDK, or use v1 for now.
I am facing issue while creating search client though it worked perfectly fine when I run locally.
I get below same error When I run function after publishing to Azure at
var indexClient = new SearchIndexClient("xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxx",
new SearchCredentials("xxxxxxxxxxx"));
Error:
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.
I have tried all the version of azure search but still not working.
Current nuget version:
Microsoft.Azure.Search : 5.0.0
Microsoft.NET.Sdk.Functions : 1.0.13
The text was updated successfully, but these errors were encountered: