question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google.Cloud.Dialogflow.V2 Could not load file or assembly Google.Protobuf

See original GitHub issue

I have created a new Azure functions projects using .net core 2.0

And when I try to reference this package it says the following:

Http Functions:

    Template: http://localhost:7071/api/Template

[2018-08-07 9:58:53 PM] Host started (1556ms) [2018-08-07 9:58:53 PM] Job host started [2018-08-07 9:58:53 PM] Host lock lease acquired by instance ID ‘0000000000000000000000007D34F7CB’. [2018-08-07 9:59:06 PM] Executing ‘Template’ (Reason=‘This function was programmatically called via the host APIs.’, Id=d2485387-4218-4fc9-8bc6-6599243eeb2b) [2018-08-07 9:59:06 PM] Executed ‘Template’ (Failed, Id=d2485387-4218-4fc9-8bc6-6599243eeb2b) [2018-08-07 9:59:06 PM] System.Private.CoreLib: Exception while executing function: Template. Project: Could not load file or assembly ‘Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604’. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly ‘Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604’.

The function that is giving me the problem:

        [FunctionName("Template")]
        public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post")]HttpRequest req, [Table("Template", Connection = "")]ICollector<Log> outTable)
        {
            var json= new StreamReader(req.Body).ReadToEnd();

            var request = JsonConvert.DeserializeObject<WebhookRequest>(json);

I have tried installing the Nuget package manually but that didn’t work. Should I go back to .Net framework meanwhile this gets fixed or is a solution for this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jskeetcommented, Aug 7, 2018

I’m just sorry I couldn’t give better news 😦

I’m hopeful that Azure Functions will get past this over time - it really needs to in order to work for modern NuGet realities.

0reactions
paulbatumcommented, Aug 15, 2018

@german95n thats great!

@jskeet Please reach out if you see any other users reporting problems loading these libraries in Azure Functions V2 so that we can investigate (unfortunately we do not have a good solution for users on V1)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Net Framework 4.6.1 app Error: Google.Protobuf Could not ...
FileNotFoundException HResult=0x80070002 Message=Could not load file or assembly 'Google.Protobuf, Version=3.21.9.0, Culture=neutral, ...
Read more >
.NET client library | Google Cloud
V2 is a.NET client library for the Google Cloud Dialogflow API. Note: This documentation is for version 4.11.0 of the library. Some samples...
Read more >
Interface IBufferMessage (3.23.0) | .NET client library
Interface for a Protocol Buffers message, supporting parsing from ParseContext and writing to WriteContext. Inherited Members.
Read more >
Integrating Google API: Assembly will not be loaded due to ...
I am have trouble specifically with adding Google's API dll file to Unity. I used NuGet for Unity to download Google's Api. Because...
Read more >
Download google-cloud-dialogflow JAR file with all ...
Download google-cloud-dialogflow JAR file ✓ With dependencies ✓ Documentation ✓ Source code. ... Java idiomatic client for Google Cloud Dialog Flow API.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found