Function App Blob Trigger not working after migrating to isolated model

Keijzer, Paul de 0 Reputation points
2024-11-09T23:37:35.53+00:00

After migrating my function app from in process (.NET 6) to isolated (.NET 8), I am encountering a runtime error related to the blob binding. I have migrated multiple function apps already, but for this one I am encountering a runtime exception on the BlobTrigger after deploying. The function works well locally, using Azurite.

Method signature:

[Function("AdnMessageHandler")]
public async Task Run([BlobTrigger("adn-input/{name}.xml", Connection = "saanlaragadn")] Stream blob, string name)

csproj



host.json

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    },
    "fileLoggingMode": "always",
    "logLevel": {
      "default": "Information"
    }
  }
}

Error:

Exception while executing function: Functions.AdnMessageHandler Exception binding parameter 'blob' Method not found: 'Void Microsoft.Azure.WebJobs.ParameterBindingData..ctor(System.String, System.String, System.BinaryData, System.String)'. 

Callstack:

Microsoft.Azure.WebJobs.Host.FunctionInvocationException:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,190 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,101 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 29,211 Reputation points Microsoft Employee
    2024-11-25T16:07:48.38+00:00

    Hey @Keijzer, Paul de

    I would double check your package references. I have a .NET 8 isolated function app and I'm using 6.3.0 of Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs and don't have any issues. My guess is that after upgrading the project. not all the package references got updated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.